Index: suite_leahi/shared/scripts/names.py =================================================================== diff -u -r17a6f169534356e32110542fb0221cf58d6a09f7 -re32200c7f7ab29391717233a88a2dc27ee8987f8 --- suite_leahi/shared/scripts/names.py (.../names.py) (revision 17a6f169534356e32110542fb0221cf58d6a09f7) +++ suite_leahi/shared/scripts/names.py (.../names.py) (revision e32200c7f7ab29391717233a88a2dc27ee8987f8) @@ -93,4 +93,5 @@ o_vitals_reading = {"container": mainTreatmentScreen, "type": "Text", "unnamed": 1 } keyboard_input = {"container": o_Overlay, "type": "Text", "unnamed": 1 } o_last_read = {"container": mainTreatmentScreen, "id":"_lastRecorded" , "type": "Text", "unnamed": 1 } +o_measureVitalsButton_TouchRect = {"container": o_Overlay, "id": "_measureVitalsButton", "type": "TouchRect", "unnamed": 1, "visible": True} Index: suite_leahi/suite.conf =================================================================== diff -u -re2c906a7b5fde31d48d168f097fe6a5a2ab0afea -re32200c7f7ab29391717233a88a2dc27ee8987f8 --- suite_leahi/suite.conf (.../suite.conf) (revision e2c906a7b5fde31d48d168f097fe6a5a2ab0afea) +++ suite_leahi/suite.conf (.../suite.conf) (revision e32200c7f7ab29391717233a88a2dc27ee8987f8) @@ -1,6 +1,6 @@ AUT=leahi LANGUAGE=Python OBJECTMAPSTYLE=script -TEST_CASES=tst_solution_infusion tst_main_treatment tst_service_export_logs +TEST_CASES=tst_solution_infusion tst_main_treatment tst_service_export_logs tst_patient_vitals VERSION=3 WRAPPERS=Qt Index: suite_leahi/tst_patient_vitals/test.py =================================================================== diff -u -r17a6f169534356e32110542fb0221cf58d6a09f7 -re32200c7f7ab29391717233a88a2dc27ee8987f8 --- suite_leahi/tst_patient_vitals/test.py (.../test.py) (revision 17a6f169534356e32110542fb0221cf58d6a09f7) +++ suite_leahi/tst_patient_vitals/test.py (.../test.py) (revision e32200c7f7ab29391717233a88a2dc27ee8987f8) @@ -114,7 +114,7 @@ mouseClick(input_field) #check the title - title = waitForObjectExists(utility.get_title_text_parameter(title_name)) + title = waitForObjectExists(utility.set_Object_Text(text = title_name,obj =names.o_title_Text)) test.compare(title_name, title.text, "Title text should be -> "+ str(title_name)) for text in expected_value: @@ -345,7 +345,19 @@ mouseClick(waitForObject(names.o_vitals_close_btn)) test.endSection() - test.startSection("Verify the vitals pop up opened automatically after interval time is elapsed") + test.startSection("Verify the vitals data send automatically populate on popup") + mouseClick(waitForObject(names.o_vitalsButton_VitalsButton)) + mouseClick(names.o_measureVitalsButton_TouchRect) + td.td_vitals( systolic = 70 , + diastolic = 50 , + heartRate = 120 ) + td.td_vitals_adjustment_response(vRejectionReason=0) + blood_pressure = waitForObjectExists(names.o_treatmentHome_bloodPressure_LabelValue).topText + test.compare(70+"/"+50, blood_pressure,"Blood pressure value should be ->"+str(70+"/"+50)) + heart_rate = waitForObjectExists(names.o_treatmentHome_heartBeat_LabelValue).topText + test.compare(120, heart_rate,"Heart Rate value should be ->"+str(120)) + + #With rejection reasom verify_interval_for_bpm() test.endSection() @@ -355,7 +367,7 @@ verify_valid_vitals_through_keypad(DIASTOLIC,names.o_bloodPressureDiastolic_TextEntry,MIN_DIASTOLIC,MIN_DIASTOLIC) verify_valid_vitals_through_keypad(HEARTRATE, names.o_heartRate_TextEntry, MIN_HEARTRATE, MIN_HEARTRATE) mouseClick(waitForObject(names.o_confirm_button)) - sys_time = utility.get_current_date_and_time(date_format="%Y/%b/%d - %H:%M:%S") + sys_time = utility.get_current_date_and_time(date_format="%Y/%b/%d - %H:%M:%S") last_read = waitForObjectExists(names.o_last_read).text lastdatetime = str(last_read).split(" ")[3] systime = sys_time.split("-")[1].strip()