Index: tst_Treatment_Adjustment_Pressures/test.py =================================================================== diff -u -rd09e02adbf3cca427ae7b3462e18c16253cda062 -r91e0fc7ff1a05af0ba299e45ef7dae1a79b45bc1 --- tst_Treatment_Adjustment_Pressures/test.py (.../test.py) (revision d09e02adbf3cca427ae7b3462e18c16253cda062) +++ tst_Treatment_Adjustment_Pressures/test.py (.../test.py) (revision 91e0fc7ff1a05af0ba299e45ef7dae1a79b45bc1) @@ -13,10 +13,11 @@ # from dialin.common import Ranges -from dialin.squish import utils, denaliMessages - +from dialin.ui import utils, HDSimulator import names +HDSimulator = HDSimulator() + inrangeColor = "#ffffff" def gotoScreenNtest_Contains_PressuresSection(): @@ -62,7 +63,7 @@ """ Checks the Pressures Values on each parameter change passed to the function """ - denaliMessages.setPressureOcclusionData(vArterial, vVenous, 0, 0, 0) + HDSimulator.cmd_set_pressure_occlusion_data(vArterial, vVenous, 0, 0, 0) arterial_value = waitForObjectExists(names.o_arterial_marker ).value venous_value = waitForObjectExists(names.o_venous_marker ).value @@ -118,7 +119,7 @@ # arterial constants shall never change regarding the PRS # it has to be set to reject otherwise the dialog is closed. # the accept and dialog close has been tested somewhere else. - denaliMessages.sendTreatmentAdjustPressuresLimitsResponse(False, 0, vArterialLow, vArterialHigh, vVenousLow, vVenousHigh) + HDSimulator.sendTreatmentAdjustPressuresLimitsResponse(False, 0, vArterialLow, vArterialHigh, vVenousLow, vVenousHigh) test_pressure_limits(vArterialLow, vArterialHigh, vVenousLow, vVenousHigh) @@ -131,7 +132,7 @@ venousLow = Ranges.VENOUS_PRESSURE_LOW_DEF venousHigh = Ranges.VENOUS_PRESSURE_HIGH_DEF test.compare(waitForObjectExists(names.o_treatmentAdjustmentPressures_Screen).visible, True) - denaliMessages.sendTreatmentAdjustPressuresLimitsResponse( + HDSimulator.sendTreatmentAdjustPressuresLimitsResponse( True, 0, arterialLow , arterialHigh ,