Index: suite_leahi/tst_edit_parameters/test.py =================================================================== diff -u -r3b1585c8cf24c14498f1ebd55f571d09f55e472e -r861179f9b370bbbf286228837d52489d184231dc --- suite_leahi/tst_edit_parameters/test.py (.../test.py) (revision 3b1585c8cf24c14498f1ebd55f571d09f55e472e) +++ suite_leahi/tst_edit_parameters/test.py (.../test.py) (revision 861179f9b370bbbf286228837d52489d184231dc) @@ -193,8 +193,10 @@ H2_arterial_long = 0 , H14_venous_long = 0 , tmp_pressure = 43 , + tmp_long = 0.0 , tmp_min = -640 , - tmp_max = 210) + tmp_max = 210, + barometric = 0.0 ) pressureEdit = waitForObject(names.o_treatmentHome_treatmentPressures_TreatmentPressures) pressureEditButton = utility.findObjectById(pressureEdit, "_editButton") @@ -208,11 +210,11 @@ tmpwindow_value = waitForObject(names.o_tmpWindow_LabelUnitValueAdjuster) tmp_value =tmpwindow_value.value test.log(str(tmp_value)) - utility.set_value_based_on_target(names.o_arterialWindow_LabelUnitValueAdjuster,80) + utility.set_value_based_on_target(names.o_arterialWindow_LabelUnitValueAdjuster,200) arterialwindow_value = waitForObject(names.o_arterialWindow_LabelUnitValueAdjuster) change_arterialwindow_value =arterialwindow_value.value test.log(str(change_arterialwindow_value)) - utility.set_value_based_on_target(names.o_venousWindow_LabelUnitValueAdjuster,60) + utility.set_value_based_on_target(names.o_venousWindow_LabelUnitValueAdjuster,140) venouswindow_value = waitForObject(names.o_venousWindow_LabelUnitValueAdjuster) change_venouswindow_value =venouswindow_value.value test.log(str(change_venouswindow_value)) @@ -225,21 +227,22 @@ payload = conversions.integer_to_bytearray(0) payload += conversions.integer_to_bytearray(1) td.cmd_send_general_response(message_id =MsgIds.MSG_ID_TD_PRESSURE_LIMITS_CHANGE_RESPONSE.value, - reason=0, + reason=1, accepted=1, is_pure_data = False, has_parameters = True, parameters_payload= payload) - rejectionReason = utility.get_object_from_names(names.o_notification_bar) - test.compare(rejectionReason.text, "[1] Request is not allowed in the current operating mode", "Rejection Reason text should be :" + str("[1] Request is not allowed in the current operating mode")) - + mouseClick(waitForObject(names.o_vitals_close_btn)) + rejectionReason = waitForObject(names.o_notification_bar).text + test.compare(rejectionReason, "[1] Request is not allowed in the current operating mode", "Rejection Reason text should be :" + str("[1] Request is not allowed in the current operating mode")) + mouseClick(pressureEditButton) # handle sent messages from UI mouseClick(waitForObject(names.o_confirmButton_TouchRect)) #rejection reason 0 payload = conversions.integer_to_bytearray(1) payload += conversions.integer_to_bytearray(0) - td.cmd_send_general_response(message_id =MsgIds.MSG_ID_TD_PRESSURE_LIMITS_CHANGE_RESPONSE.value, + td.cmd_send_general_response(message_id =MsgIds.MSG_ID_TD_PRESSURE_LIMIT_WIDEN_RESPONSE.value, reason=0, accepted=1, is_pure_data = False, @@ -636,7 +639,9 @@ utils.tstStart(__file__) startApplication(config.AUT_NAME) td.td_operation_mode(TDOpModes.MODE_STAN.value) - mouseClick(waitForObject(names.o_createTreatmentRect_TouchRect)) + hemodialysis = waitForObject(names.o_createHDTreatment_TouchRect) + hemodialysis_btn = utility.findChildByText(hemodialysis, "Hemodialysis") + mouseClick(hemodialysis_btn) td.td_operation_mode(TDOpModes.MODE_PRET.value) utility.verify_create_treatment_parameters() check_pressure_edit_maintreatment()