Index: suite_leahi/tst_main_tx_hdf/test.py =================================================================== diff -u -r1a4814f410e4daf456275fc0af67eb0f411bafea -rd81970a622b05f60b65d6980db89698695adcdce --- suite_leahi/tst_main_tx_hdf/test.py (.../test.py) (revision 1a4814f410e4daf456275fc0af67eb0f411bafea) +++ suite_leahi/tst_main_tx_hdf/test.py (.../test.py) (revision d81970a622b05f60b65d6980db89698695adcdce) @@ -38,9 +38,10 @@ utils.tstStart(__file__) startApplication(utility.aut("-q")) - test.startSection("Navigate to the HDF Page") + test.startSection("Navigate to the HDF Page and check the graph") + td.td_operation_mode(TDOpModes.MODE_STAN.value) + test.verify(waitForObjectExists(names.o_standByScreen_MainHome), "In Standby") td.td_operation_mode(TDOpModes.MODE_TREA.value) - utils.waitForGUI(2) td.td_tx_state( TDTreatmentStates.TREATMENT_BLOOD_PRIME_STATE.value, 0 , 0 , @@ -52,6 +53,7 @@ 0 , 0) + test.verify(waitForObject(names.o_TreatmentBloodPrime_flowRateValue_Text, 2000), "In Blood prime state") td.td_tx_state( TDTreatmentStates.TREATMENT_DIALYSIS_STATE.value, 0 , 0 , @@ -65,6 +67,7 @@ waitForObject(names.o_listView_Item,1000) hdf = utility.setObjectText(text="HDF", obj=names.o_listView_Item) mouseClick(waitForObject(hdf)) + td.td_pressure(H2_arterial_pressure = 160, H14_venous_pressure = 440 , limit_state = 0, @@ -87,13 +90,13 @@ mouseClick(waitForObject(names.o_vitals_close_btn)) 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, - reason=0, - accepted=1, - is_pure_data = False, - has_parameters = True, - parameters_payload= payload) - snooze(120) + td.cmd_send_general_response(message_id = MsgIds.MSG_ID_TD_PRESSURE_LIMITS_CHANGE_RESPONSE.value, + reason = 0, + accepted = 1, + is_pure_data = False, + has_parameters = True, + parameters_payload = payload) + snooze(60) parent = waitForObject(names.o_treatmentHDF_currentDataRow_Row) time = utility.findObjectById(parent,"_timeText") test.log(str(time.text)) @@ -111,5 +114,6 @@ prescribed_fluid_volume = waitForObject(names.o_treatmentHDF_prescribedFluidVolume_LabelUnitValueAdjuster,1000) prescribed_fluid_volume_value = round(prescribed_fluid_volume.value,1) test.compare(prescribed_fluid_volume_value, float(1.1), "Prescribed Fluid volume should be"+str(prescribed_fluid_volume_value)) + test.endSection() utils.tstDone()