Index: tst_time_duration/test.py =================================================================== diff -u -r890bc526cefea044d6900937daf51903a985ab9e -r8db9a04a6e9964f69b0fd1b079328a0cc60a6a73 --- tst_time_duration/test.py (.../test.py) (revision 890bc526cefea044d6900937daf51903a985ab9e) +++ tst_time_duration/test.py (.../test.py) (revision 8db9a04a6e9964f69b0fd1b079328a0cc60a6a73) @@ -16,6 +16,7 @@ from dialin.ui.hd_simulator import HDSimulator from configuration import config from random import randint +from dialin.ui.utils import waitForGUI MIN_TIME_RANGE = 60 MAX_TIME_RANGE = 480 @@ -83,7 +84,14 @@ 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) + #treatment_time_verification(60) + start_treatment_time_verification(300) + for duration in range(301): + hd_simulator.cmd_set_treatment_parameter_ranges(min_treatment_duration = duration, max_treatment_duration = 301, + min_uf_volume = 0.0, max_uf_volume = 0.0, + min_dialysate_flow_rate = 0, max_dialysate_flow_rate = 0) + waitForGUI(0.1) + 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") @@ -101,22 +109,25 @@ #Calculating total seconds into minutes and passing to treatment time verification - total_time_list = total_time() - for value in total_time_list: - treatment_time_verification(value*60) +# total_time_list = total_time() +# for value in total_time_list: +# treatment_time_verification(value) +# +# #Give treatment stop response to pause remain time +# hd_simulator.cmd_set_treatment_states_data(sub_mode= 0, uf_state= 0, saline_state=0, heparin_state= 0, +# rinseback_state= 0, recirculate_state= 0, blood_prime_state= 0, +# treatment_end_state=0, treatment_stop_state=1, dialysis_state=0) +# #verify treatment pause state +# verify_pause_treatment_text() +# +# #Send treatment start response after pause state +# hd_simulator.cmd_set_treatment_states_data(sub_mode= 2, uf_state= 0, saline_state=0, heparin_state= 0, +# rinseback_state= 0, recirculate_state= 0, blood_prime_state= 0, +# treatment_end_state=0, treatment_stop_state= 0, dialysis_state=0) +# + + - #Give treatment stop response to pause remain time - hd_simulator.cmd_set_treatment_states_data(sub_mode= 0, uf_state= 0, saline_state=0, heparin_state= 0, - rinseback_state= 0, recirculate_state= 0, blood_prime_state= 0, - treatment_end_state=0, treatment_stop_state=1, dialysis_state=0) - #verify treatment pause state - verify_pause_treatment_text() - - #Send treatment start response after pause state - hd_simulator.cmd_set_treatment_states_data(sub_mode= 2, uf_state= 0, saline_state=0, heparin_state= 0, - rinseback_state= 0, recirculate_state= 0, blood_prime_state= 0, - treatment_end_state=0, treatment_stop_state= 0, dialysis_state=0) - verify_pop_up()