Index: shared/scripts/configuration/strings.py =================================================================== diff -u -r27032e2875248b71ab1c36fd7df8fb81d8360c5d -r6bb28dbaadabd61c0ecff12d6a365184a982a5e5 --- shared/scripts/configuration/strings.py (.../strings.py) (revision 27032e2875248b71ab1c36fd7df8fb81d8360c5d) +++ shared/scripts/configuration/strings.py (.../strings.py) (revision 6bb28dbaadabd61c0ecff12d6a365184a982a5e5) @@ -96,6 +96,9 @@ COMPLETE_COLOR= '#4290ec' ENABLED_COLOR = '#fcfcfc' INCOMPLETE_COLOR = '#607a91' +PATIENT_ID_TEXT = "Patient ID" +PATIENT_ID = "demopatientid" +OPERATING_PARAMETERS_TEXT = "OPERATING PARAMETERS" BLOOD_FLOW_RATE = "Blood Flow Rate" DIALYSATE_FLOW_RATE = "Dialysate Flow Rate" DURATION = "Duration" Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rd5d976dfec8c5324cd779fb192b1a3e36032547d -r6bb28dbaadabd61c0ecff12d6a365184a982a5e5 --- shared/scripts/configuration/utility.py (.../utility.py) (revision d5d976dfec8c5324cd779fb192b1a3e36032547d) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 6bb28dbaadabd61c0ecff12d6a365184a982a5e5) @@ -78,7 +78,7 @@ "trying 100 times") -def page_step_indicator_verification(pre_treatment_step, pre_treatment_items_object): +def verify_page_step_indicator(pre_treatment_step, pre_treatment_items_object): """ Method to verify the Page Step indicators on top of the screen which indicates the steps passed, current, remained] @param pre_treatment_step :(int) indicates the Current pre-treatment step Index: tst_create_custom_treatment/test.py =================================================================== diff -u -rcb040b6766457858de6f41141e116fdb95010dbe -r6bb28dbaadabd61c0ecff12d6a365184a982a5e5 --- tst_create_custom_treatment/test.py (.../test.py) (revision cb040b6766457858de6f41141e116fdb95010dbe) +++ tst_create_custom_treatment/test.py (.../test.py) (revision 6bb28dbaadabd61c0ecff12d6a365184a982a5e5) @@ -360,7 +360,8 @@ """ test.startSection("Method to set create custom treatment slider based on positive slider buffer") test.compare(waitForObject(names.o_PreTreatmentCreate_Create_a_Custom_Treatment_Text).text, config.TREATMENT_TITLE, "Title text should be -> "+str(config.TREATMENT_TITLE)) - + + test.compare(waitForObject(names.o_PreTreatmentCreate_PRESCRIPTION_Text).text, config.PRESCRIPTION_TITLE, "Title text should be -> "+str(config.PRESCRIPTION_TITLE)) #set custom values for parameters test.startSection("verification of blood flow values") test.compare(waitForObject(names.o_PreTreatmentCreate_bloodFlowRate_SliderCreateTreatment).label, config.BLOOD_FLOW_RATE, "Parameter should be -> "+str(config.BLOOD_FLOW_RATE)) @@ -415,6 +416,8 @@ test_custom_treatment_slider(names.o_PreTreatmentCreate_salineBolusSlider_Slider, saline_bolus, config.CREATE_TREATMENT_SLIDER_VALUES["saline_bolus"], config.SALINE_BOLUS) test.endSection() + test.compare(waitForObject(names.o_PreTreatmentCreate_OPERATING_PARAMETERS_Text).text, config.OPERATING_PARAMETERS_TEXT, "Title text should be -> "+str(config.OPERATING_PARAMETERS_TEXT)) + #scroll the screen to the title acid concentrate type parameter_object = set_parameter_type(text = config.ACID_CONCENTRATE_TITLE) utility.scroll_to_zone(parameter_object, names.o_treatment_create_flickable) @@ -601,14 +604,15 @@ hd_simulator.cmd_send_hd_operation_mode(4, 0) test.log("Verification of page step indicator from patient id page") - utility.page_step_indicator_verification(PRE_TREATMENT_STEP, names.o_PreTreatmentBase_nextStepsBullet_StepBullet) + utility.verify_page_step_indicator(PRE_TREATMENT_STEP, names.o_PreTreatmentBase_nextStepsBullet_StepBullet) mouseClick(waitForObject(names.o_input_patient_id)) type(waitForObject(names.o_input_patient_id), config.PATIENT_ID) + test.compare(waitForObject(names.o_PreTreatmentBase_Patient_ID_Text).text, config.PATIENT_ID_TEXT, "Title text should be -> "+str(config.PATIENT_ID_TEXT)) mouseClick(waitForObject(names.o_confirm_button)) test.log("Verification of page step indicator from create custom treatment page") - utility.page_step_indicator_verification(PRE_TREATMENT_STEP, names.o_PreTreatmentCreate_nextStepsBullet_StepBullet) + utility.verify_page_step_indicator(PRE_TREATMENT_STEP, names.o_PreTreatmentCreate_nextStepsBullet_StepBullet) verify_create_custom_treatment_parameter()