Index: suite_leahi/shared/scripts/configuration/config.py =================================================================== diff -u -r0b9e1c4d2429e9ad58420f00a52adf8ec800ef35 -r5ec9199221372a1b055d8009193262ae74e62980 --- suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision 0b9e1c4d2429e9ad58420f00a52adf8ec800ef35) +++ suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision 5ec9199221372a1b055d8009193262ae74e62980) @@ -114,6 +114,7 @@ #Blood Set Auto Load BLOOD_SET_AUTO_LOAD_REJECTION = "[1] Request is not allowed in the current operating mode" BLOOD_SET_AUTO_EJECT_REJECTION = "[1] Request is not allowed in the current operating mode" +CONTINUE = "Continue" #Feature Options FEATURE_CONFIGURATIONS_SCREEN_TITLE_TEXT = "Feature Configurations" Index: suite_leahi/tst_blood_set_auto/test.py =================================================================== diff -u -r34c323eff3ef9a472dfc6dc83bd1b2015fb3fcc2 -r5ec9199221372a1b055d8009193262ae74e62980 --- suite_leahi/tst_blood_set_auto/test.py (.../test.py) (revision 34c323eff3ef9a472dfc6dc83bd1b2015fb3fcc2) +++ suite_leahi/tst_blood_set_auto/test.py (.../test.py) (revision 5ec9199221372a1b055d8009193262ae74e62980) @@ -71,7 +71,7 @@ startApplication(utility.aut("-q")) td_simulator.td_operation_mode(TDOpModes.MODE_STAN.value) td_simulator.td_operation_mode(TDOpModes.MODE_PRET.value) - + pre_treatment = waitForObjectExists( names.o_preTreatmentStack_PreTreatmentStack, 3000 ) @@ -88,15 +88,15 @@ ) auto_load_reject_notification_text = str(auto_load_reject_notification.text) digit = re.sub(r"^.*?\[(\d+)\].*$", r"\1", auto_load_reject_notification_text) - + if digit: digit_int = int(float(digit)) test.compare(1, digit_int, f"Rejection reason number comparison for reason {1}") test.log(f"Rejection reason text is {auto_load_reject_notification_text}") td_simulator.td_blood_set_auto_load_response(0) - + stepcount = waitForObjectExists(names.o_preTreatmentStack_repeater_Repeater) - + td_simulator.td_blood_set_auto_load_response(0) stepId = waitForObjectExists(names.o_preTreatmentStack_stepIndicator_StepIndicator) values = utility.findAllObjectsById(stepId, "_text") @@ -120,15 +120,15 @@ mouseClick( waitForObject(names.o_PreTreatmentSampleStack_button_TouchRect) ) - + if str(input_field.text) == config.CREATERX: break else: Nextbutton = utility.setObjectText( obj=names.o_preTreatmentStack_Text, text=config.NEXT ) mouseClick(Nextbutton) - + mouseClick(waitForObject(names.o_PreTreatmentCreate_pretreatmentPatientIDEntry_TextEntry)) waitForObject(names.o_PreTreatmentCreate_pretreatmentPatientIDEntry_TextEntry).text ="1234" parent_obj = waitForObject(names.o_PreTreatmentCreate_leftColumn_Column, 3000) @@ -168,10 +168,12 @@ TDTreatmentStates.TREATMENT_DIALYSIS_STATE.value, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) td_simulator.td_operation_mode(TDOpModes.MODE_POST.value, 0) - + td_simulator.td_patient_disconnect_confirm_response(1,0) post_treatment = waitForObjectExists( names.o_PostTreatmentStack_PostTreatmentStack, 3000 ) + mouseClick(waitForObject(utility.findChildByText(post_treatment, config.CONTINUE), 3000)) + mouseClick(waitForObject(utility.findChildByText(post_treatment, config.AUTO_EJECT), 3000)) test.verify( waitFor(lambda: bloodSetAutoEject == True, 10000), "Testing UI -> TD message Auto Eject"