Index: suite_leahi/tst_end_of_treatment/test.py =================================================================== diff -u -ra41aef5f49d9aed41b1d846a4c388459a7c5eed1 -r7fa3503b0eeaf8e05f4f885d7af4ea2947d90e0a --- suite_leahi/tst_end_of_treatment/test.py (.../test.py) (revision a41aef5f49d9aed41b1d846a4c388459a7c5eed1) +++ suite_leahi/tst_end_of_treatment/test.py (.../test.py) (revision 7fa3503b0eeaf8e05f4f885d7af4ea2947d90e0a) @@ -117,7 +117,7 @@ test.compare(config.MIN_SYSTOLIC+"/"+config.MIN_DIASTOLIC, blood_pressure,"Blood pressure value should be ->"+str(config.MIN_SYSTOLIC+"/"+config.MIN_DIASTOLIC)) heart_rate = waitForObjectExists(names.o_treatmentHome_heartBeat_LabelValue).topText test.compare(config.MIN_HEARTRATE, heart_rate,"Heart Rate value should be ->"+str(config.MIN_HEARTRATE)) - ultrafiltration_edit =waitForObjectExists(names.o_editButton_ultrafiltration_IconButton) + ultrafiltration_edit = waitForObjectExists(names.o_editButton_ultrafiltration_IconButton) test.compare(ultrafiltration_edit.enabled,True,"Ultrafiltration edit button is enabled") mouseClick(waitForObject(names.o_editButton_ultrafiltration_IconButton)) #check isolated,pause uf and edit uf button state @@ -148,19 +148,22 @@ # handle sent messages from UI if can_interface is not None: - channel_id = CAN.DenaliChannels.ui_to_td_ch_id + channel_id = CAN.CanChannels.ui_to_td_ch_id message_id = MsgIds.MSG_ID_TD_END_TREATMENT_REQUEST.value can_interface.register_receiving_publication_function(channel_id, message_id, handle_end_of_treatment_request) - startApplication(config.AUT_NAME) - td.td_operation_mode(TDOpModes.MODE_STAN.value) + startApplication(utility.aut("-q")) # verify Standby screen test.verify(waitForObjectExists(names.o_standByScreen_MainHome), "In Standby") - mouseClick(waitForObject(names.o_createTreatmentRect_TouchRect)) + td.td_operation_mode(TDOpModes.MODE_STAN.value) + hemodialysis = waitForObject(names.o_createHDTreatment_TouchRect) + hemodialysis_btn = utility.findChildByText(hemodialysis, "Hemodialysis") + mouseClick(hemodialysis_btn) + td.td_Treatment_Parameters_CreateRx(vRejectionReason =0) td.td_operation_mode(TDOpModes.MODE_PRET.value) utility.verify_create_treatment_parameters() change_treatmentstates(TDTreatmentStates.TREATMENT_DIALYSIS_STATE.value)