Index: tst_Treatment_Adjustment_Duration/test.py =================================================================== diff -u -rcea779e4d5eb422603a9194f6b9a01ec7e268612 -r867655840cada2d79fa5028c8fab68516ea59673 --- tst_Treatment_Adjustment_Duration/test.py (.../test.py) (revision cea779e4d5eb422603a9194f6b9a01ec7e268612) +++ tst_Treatment_Adjustment_Duration/test.py (.../test.py) (revision 867655840cada2d79fa5028c8fab68516ea59673) @@ -35,13 +35,13 @@ gotoScreenNtest_Contains_DurationSection() utils.waitForGUI(1) - HDSimulator.setTreatmentStartState() + HDSimulator.cmd_set_treatment_start_state() durationMin = 0 durationMax = 60 * 3 # 3h durationElapsed = 10 # 10m - HDSimulator.setTreatmentTime(durationMax * 60, durationElapsed * 60) + HDSimulator.cmd_set_treatment_time(durationMax * 60, durationElapsed * 60) 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") @@ -51,13 +51,13 @@ gotoScreenNTest_Adjustment() utils.waitForGUI(1) - HDSimulator.setTreatmentParamRanges(durationMin, durationMax, 0, 0, 0, 0) + HDSimulator.cmd_set_treatment_parameter_ranges(durationMin, durationMax, 0, 0, 0, 0) test.compare(waitForObjectExists(names.o_durationSlider_Slider).minimum, durationMin) test.compare(waitForObjectExists(names.o_durationSlider_Slider).maximum, durationMax) durationMin = 10 # 10m durationMax = 60 * 2 # 2h - HDSimulator.setTreatmentParamRanges(durationMin, durationMax, 0, 0, 0, 0) + HDSimulator.cmd_set_treatment_parameter_ranges(durationMin, durationMax, 0, 0, 0, 0) test.compare(waitForObjectExists(names.o_durationSlider_Slider).minimum, durationMin) test.compare(waitForObjectExists(names.o_durationSlider_Slider).maximum, durationMax) @@ -75,20 +75,20 @@ mouseClick(waitForObjectExists(names.o_confirmButton)) # rejected 65, revert to 75 - HDSimulator.sendTreatmentAdjustDurationResponse(0, 4, 75, 0) + HDSimulator.cmd_send_treatment_adjust_duration_response(0, 4, 75, 0) test.compare(str(waitForObjectExists(names.o_TimeText_hour_Text_2 ).text), "01") test.compare(str(waitForObjectExists(names.o_TimeText_minute_Text_2).text), "15") # rejected 65, revert to 75 # let's see if we got twice with no change do we still act the same - HDSimulator.sendTreatmentAdjustDurationResponse(0, 4, 75, 0) + HDSimulator.cmd_send_treatment_adjust_duration_response(0, 4, 75, 0) test.compare(str(waitForObjectExists(names.o_TimeText_hour_Text_2 ).text), "01") test.compare(str(waitForObjectExists(names.o_TimeText_minute_Text_2).text), "15") test.compare(waitForObjectExists(names.o_modalDialog).visible, True) # accepted - HDSimulator.sendTreatmentAdjustDurationResponse(1, 0, 45, 1000) + HDSimulator.cmd_send_treatment_adjust_duration_response(1, 0, 45, 1000) test.compare(waitForObjectExists(names.o_treatmentStart_shape_Shape).visible, True) utils.tstDone()