Index: shared/scripts/names.py =================================================================== diff -u -r24baad86c6fce6c0875821cde956337b6fb673fe -r890bc526cefea044d6900937daf51903a985ab9e --- shared/scripts/names.py (.../names.py) (revision 24baad86c6fce6c0875821cde956337b6fb673fe) +++ shared/scripts/names.py (.../names.py) (revision 890bc526cefea044d6900937daf51903a985ab9e) @@ -54,11 +54,11 @@ o_treatmentHome = {"container": o_QQuickView , "id": "_treatmentHome" , "type": "TreatmentHome", "unnamed": 1, "visible": True} o_Treatment_Paused = {"container": o_treatmentHome, "text": "Treatment Paused", "type": "Text", "unnamed": 1, "visible": True} o_Overlay = {"container": o_Gui_MainView, "type": "Overlay", "unnamed": 1, "visible": True} -o_confirm_Text = {"container": o_Overlay, "text": "CONFIRM", "type": "Text", "unnamed": 1, "visible": True} +o_confirm_button = {"container": o_Overlay, "text": "CONFIRM", "type": "Text", "unnamed": 1, "visible": True} o_treatmentHome_Time_Remaining_Text = {"container": o_treatmentHome, "text": "Time Remaining", "type": "Text", "unnamed": 1, "visible": True} o_treatment_duration = {"container": o_treatmentHome, "objectName": "TreatmentTime", "type": "TreatmentTime", "visible": True} +o_pop_up_close_button = {"container": o_Overlay, "id": "_image", "source": "qrc:/images/iClose", "type": "Image", "unnamed": 1, "visible": True} - Index: tst_time_duration/test.py =================================================================== diff -u -r5b9c9c2ce073186fb8dd537f10ccb95c8ac9fdcf -r890bc526cefea044d6900937daf51903a985ab9e --- tst_time_duration/test.py (.../test.py) (revision 5b9c9c2ce073186fb8dd537f10ccb95c8ac9fdcf) +++ tst_time_duration/test.py (.../test.py) (revision 890bc526cefea044d6900937daf51903a985ab9e) @@ -79,6 +79,16 @@ test.log("Selected time are {}".format(totaltime_list)) return totaltime_list +def verify_pop_up(): + test.log("Pop up of time duration") + mouseClick(waitForObject(names.o_treatmentHome_Time_Remaining_Text)) + #FIXME: If we not use specified value then it will take minimum one and maximum 8 hours. + treatment_time_verification(60) + test.verify(waitForObjectExists(names.o_confirm_button).enabled, "'Confirm' button should be enabled") + mouseClick(waitForObjectExists(names.o_confirm_button)) + test.log("Confirm button is clicked") + mouseClick(waitForObjectExists(names.o_pop_up_close_button)) + test.log("Pop up of time duration is verified and closed") def main(): utils.tstStart(__file__) @@ -89,7 +99,6 @@ rinseback_state= 0, recirculate_state= 0, blood_prime_state= 0, treatment_end_state=0, treatment_stop_state= 0, dialysis_state=0) -# hd_simulator.cmd_set_treatment_start_state() #Calculating total seconds into minutes and passing to treatment time verification total_time_list = total_time() @@ -108,14 +117,11 @@ rinseback_state= 0, recirculate_state= 0, blood_prime_state= 0, treatment_end_state=0, treatment_stop_state= 0, dialysis_state=0) - #Again start treatment for time verification - mouseClick(waitForObject(names.o_treatmentHome_Time_Remaining_Text)) - test.verify(waitForObjectExists(names.o_confirm_Text).enabled, "'Confirm' button should be enabled") + verify_pop_up() - #FIXME: If we not use specified value then it will take minimum one and maximum 8 hours. - treatment_time_verification(60) + utils.tstDone() \ No newline at end of file