Index: suite_leahi/tst_patient_vitals/test.py =================================================================== diff -u -ra774225d7e3f88892d90e0dda307b8c17b18899c -r525a83f4f0a858c74d9b475e3760f1921ac1052f --- suite_leahi/tst_patient_vitals/test.py (.../test.py) (revision a774225d7e3f88892d90e0dda307b8c17b18899c) +++ suite_leahi/tst_patient_vitals/test.py (.../test.py) (revision 525a83f4f0a858c74d9b475e3760f1921ac1052f) @@ -194,10 +194,10 @@ def verify_automatic_vitals_noRejection_Reason(): - MAX_WAIT = 5 * 60 * 1000 # 5 minutes in seconds + MAX_WAIT = 10 * 60 * 1000 # 5 minutes in seconds - test.verify(waitFor( lambda: vitalsrequest == True, MAX_WAIT), "UI Sending the request to FW") td.td_vitals_adjustment_response(vRejectionReason=0) + test.verify(waitFor( lambda: vitalsrequest == True, MAX_WAIT), "UI Sending the request to FW") td.td_vitals(systolic = 80, diastolic = 60, heartRate = 140 ) @@ -352,14 +352,17 @@ can_interface.register_receiving_publication_function(channel_id, message_id, handle_patient_vitals_request) - startApplication(config.AUT_NAME) + startApplication(utility.aut("-q")) check_bp_cuff_enabled() td.td_operation_mode(TDOpModes.MODE_STAN.value) # verify Standby screen test.verify(waitForObjectExists(names.o_standByScreen_MainHome), "In Standby") - mouseClick(waitForObject(names.o_createTreatmentRect_TouchRect)) + 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, 0) @@ -423,8 +426,8 @@ #check the title text in the popup vitals_titleText = waitForObjectExists(names.o_vitals_Interval_TitleText).text test.compare("Vitals Interval", vitals_titleText, "Vitals Interval popup text should be ->"+str("Vitals Interval")) - set_value_based_on_target_patientvitals(names.o_bpMeasurementIntervalControl_ValueAdjusterCustom, 10) - mouseClick(waitForObject(names.o_vitals_close_btn)) + set_value_based_on_target_patientvitals(names.o_bpMeasurementIntervalControl_ValueAdjusterCustom, 5) + mouseClick(waitForObject(names.o_confirm_button)) test.endSection() test.startSection("Verify the vitals data send automatically populate on popup")