Index: suite_leahi/tst_patient_vitals/test.py =================================================================== diff -u -r525a83f4f0a858c74d9b475e3760f1921ac1052f -r3632c7e3a8337b6cb6c8088bf5bce929118824ae --- suite_leahi/tst_patient_vitals/test.py (.../test.py) (revision 525a83f4f0a858c74d9b475e3760f1921ac1052f) +++ suite_leahi/tst_patient_vitals/test.py (.../test.py) (revision 3632c7e3a8337b6cb6c8088bf5bce929118824ae) @@ -193,15 +193,18 @@ vitalsrequest = True def verify_automatic_vitals_noRejection_Reason(): - - MAX_WAIT = 10 * 60 * 1000 # 5 minutes in seconds + # vitalsrequest = False + MAX_WAIT = 5 * 60 * 1000 # 5 minutes in seconds + + 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 ) - + + test.verify(waitFor( lambda: vitalsrequest == True, 3000), "UI Sending the request to FW") blood_pressure = waitForObjectExists(names.o_treatmentHome_bloodPressure_LabelValue).topText test.compare("80"+"/"+"60", blood_pressure,"Blood pressure value should be ->"+str("80"+"/"+"60")) @@ -427,7 +430,7 @@ 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, 5) - mouseClick(waitForObject(names.o_confirm_button)) + mouseClick(waitForObject(names.o_vitals_close_btn)) test.endSection() test.startSection("Verify the vitals data send automatically populate on popup")