Index: suite_leahi/shared/scripts/names.py =================================================================== diff -u -r327c6aede61276371b4887783508e56be75fd792 -rc33c89216f02adf37edddeb74953666aaf9da666 --- suite_leahi/shared/scripts/names.py (.../names.py) (revision 327c6aede61276371b4887783508e56be75fd792) +++ suite_leahi/shared/scripts/names.py (.../names.py) (revision c33c89216f02adf37edddeb74953666aaf9da666) @@ -388,6 +388,10 @@ o_numRect_Rectangle = {"container": o_Overlay, "id": "_numRect", "type": "Rectangle", "unnamed": 1 } o_Vitals_Popup_CloseButton = {"container": o_Overlay, "id": "_closeButton", "type": "CloseButton", "unnamed": 1 } o_vitals_Interval_TitleText = {"container": o_Overlay, "type": "TitleText", "unnamed": 1 } +o_Overlay_lastRecordedText = {"container": o_Overlay, "id": "_lastRecordedText", "type": "Text", "unnamed": 1 } +o_bloodPressure_LabelValue = {"container": o_Overlay, "id": "_bloodPressure", "type": "LabelValue", "unnamed": 1 } +o_heartBeat_LabelValue = {"container": o_Overlay, "id": "_heartBeat", "type": "LabelValue", "unnamed": 1 } + #Isolated UF o_isolatedUfButton_TouchRect = {"container": o_Overlay, "objectName": "_isolatedUfButton", "type": "TouchRect" } o_valueAdjuster_ValueAdjuster = {"container": o_Overlay, "objectName": "_valueAdjuster", "type": "ValueAdjuster" } @@ -437,5 +441,3 @@ o_notification_bar = {"container": o_Overlay, "objectName": "NotificationBar", "type": "NotificationBarSmall" } o_last_read = {"container": mainTreatmentScreen, "id":"_lastRecorded" , "type": "Text", "unnamed": 1 } o_vitalCountdown_Text = {"container": o_Gui_MainView, "objectName": "_vitalCountdown", "type": "Text" } -o_PreTreatmentCreate_prescriptionDotMenu_BaseComboBox = {"container": o_preTreatmentStack_PreTreatmentCreate_PreTreatmentCreate, "id": "_prescriptionDotMenu", "type": "BaseComboBox", "unnamed": 1, "visible": True} -o_preTreatmentStack_PreTreatmentBase_PreTreatmentBase_2 = {"container": o_preTreatmentStack_PreTreatmentStack, "objectName": "_PreTreatmentBase", "occurrence": 7, "type": "PreTreatmentBase", "visible": False} 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()