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