Index: tst_Treatment_Adjustment_Duration/test.py =================================================================== diff -u -r7b3e5d5ca42caaf50fc24bc9ea6710d99681ea3f -re46e6d38f84be51966f96ce6c76c00b36b4f2654 --- tst_Treatment_Adjustment_Duration/test.py (.../test.py) (revision 7b3e5d5ca42caaf50fc24bc9ea6710d99681ea3f) +++ tst_Treatment_Adjustment_Duration/test.py (.../test.py) (revision e46e6d38f84be51966f96ce6c76c00b36b4f2654) @@ -37,18 +37,17 @@ durationMax = 60 * 3 # 3h durationElapsed = 10 # 10m - denaliMessages.setTreatmentTime(durationMax, durationElapsed) + denaliMessages.setTreatmentTime(durationMax * 60 , durationElapsed* 60 ) - test.compare(str(waitForObjectExists(names.o_treatmentStart_TimeText_TimeText ).time), "00:02:50") - test.compare(str(waitForObjectExists(names.o_treatmentStart_TimeText_hour_Text ).text), "00") - test.compare(str(waitForObjectExists(names.o_treatmentStart_TimeText_minute_Text).text), "02") - test.compare(str(waitForObjectExists(names.o_treatmentStart_TimeText_second_Text).text), "50") + test.compare(str(waitForObjectExists(names.o_treatmentStart_TimeText_TimeText ).time), "02:50:00") + test.compare(str(waitForObjectExists(names.o_treatmentStart_TimeText_hour_Text ).text), "02") + test.compare(str(waitForObjectExists(names.o_treatmentStart_TimeText_minute_Text).text), "50") + test.compare(str(waitForObjectExists(names.o_treatmentStart_TimeText_second_Text).text), "00") gotoScreenNTest_Adjustment() utils.waitForGUI(1) denaliMessages.setTreatmentParamRanges(durationMin, durationMax, 0, 0, 0, 0) - test.compare(waitForObjectExists(names.o_durationSlider_Slider).minimum, durationMin) test.compare(waitForObjectExists(names.o_durationSlider_Slider).maximum, durationMax) @@ -59,10 +58,10 @@ test.compare(waitForObjectExists(names.o_durationSlider_Slider).maximum, durationMax) # the duration dialog should use the same value as the Treatment time - test.compare(str(waitForObjectExists(names.o_TimeText_TimeText).time), "00:02:50") - test.compare(str(waitForObjectExists(names.o_TimeText_hour_Text).text), "00") - test.compare(str(waitForObjectExists(names.o_TimeText_minute_Text).text), "02") - test.compare(str(waitForObjectExists(names.o_TimeText_second_Text).text), "50") + test.compare(str(waitForObjectExists(names.o_TimeText_TimeText ).time), "02:50:00") + test.compare(str(waitForObjectExists(names.o_TimeText_hour_Text ).text), "02") + test.compare(str(waitForObjectExists(names.o_TimeText_minute_Text).text), "50") + test.compare(str(waitForObjectExists(names.o_TimeText_second_Text).text), "00") # touch on the middle of the slider mouseClick(waitForObject(names.o_durationSlider_Slider), waitForObjectExists(names.o_durationSlider_Slider).width / 2, 5, Qt.LeftButton)