Index: suite_leahi/tst_patient_vitals/test.py =================================================================== diff -u -r773bdca9f28d573177bb59389312e1a24b2f138c -rc33c89216f02adf37edddeb74953666aaf9da666 --- suite_leahi/tst_patient_vitals/test.py (.../test.py) (revision 773bdca9f28d573177bb59389312e1a24b2f138c) +++ suite_leahi/tst_patient_vitals/test.py (.../test.py) (revision c33c89216f02adf37edddeb74953666aaf9da666) @@ -11,7 +11,7 @@ # - Verify the vitals popup is opened automatically once the BPM interval time is elapsed when the rejection reason is 1 # - Verify the confirm button is disabled when user enters out of range values in the systolic, diastolic and heart rate parameters # - Verify the vitals interval time with current system time - +# - Request a Measure Vitals, Respond with Vitals Data and Confirm data is correct on Vitals dialog # Python import os import can @@ -474,7 +474,28 @@ mouseClick(waitForObject(names.o_confirm_button,1000)) mouseClick(waitForObject(names.o_vitals_close_btn)) validate_time_interval(names.o_vitalCountdown_Text,5) + test.endSection() + test.startSection("Request a Measure Vitals, Respond with Vitals Data and Confirm data is correct on Vitals dialog") + mouseClick(utility.get_object_from_names(names.o_vitalsButton_VitalsButton)) + mouseClick(utility.get_object_from_names(names.o_measureVitalsButton_TouchRect)) + test.verify(waitFor( lambda: vitalsrequest == True, 3000), "Measure Vitals UI Sending the request to FW") + td.td_vitals( + systolic = 121, + diastolic = 81, + heartRate = 76 + ) + vitals_sent_time = utility.get_current_date_and_time(date_format="%m/%d/%Y %H:%M:%S") + mouseClick(utility.get_object_from_names(names.o_vitalsButton_VitalsButton)) + vitals_popup_last_read_time = utility.get_object_text(names.o_Overlay_lastRecordedText) + test.compare(vitals_sent_time, vitals_popup_last_read_time, "Vitals popup Last read time") + popup_blood_pressure = utility.get_object_from_names(names.o_bloodPressure_LabelValue) + blood_pressure = utility.findObjectById(popup_blood_pressure, "_topText") + test.compare(blood_pressure.text, '121/81', "Vitals Popup Blood Pressure Data") + popup_heart_beat = utility.get_object_from_names(names.o_heartBeat_LabelValue) + heart_beat = utility.findObjectById(popup_heart_beat, "_topText") + test.compare(str(heart_beat.text), '76', "Vitals Popup Heart Beat Data") + test.endSection() utils.tstDone()