Index: tst_DGDrainPumpData/test.py =================================================================== diff -u -rcea779e4d5eb422603a9194f6b9a01ec7e268612 -r867655840cada2d79fa5028c8fab68516ea59673 --- tst_DGDrainPumpData/test.py (.../test.py) (revision cea779e4d5eb422603a9194f6b9a01ec7e268612) +++ tst_DGDrainPumpData/test.py (.../test.py) (revision 867655840cada2d79fa5028c8fab68516ea59673) @@ -23,9 +23,9 @@ test_values(0, 0) -def test_values(vSetPtRPM, vDACValue): - test.compare(str(waitForObjectExists(names.o_managerHome_DGDrainPumpData_SetPtRPM).text), "{:.0f}".format(vSetPtRPM)) - test.compare(str(waitForObjectExists(names.o_managerHome_DGDrainPumpData_DACValue).text), "{:.0f}".format(vDACValue)) +def test_values(vSetPtRPM, vDACValue): + test.compare(str(waitForObjectExists(utils.dict_update(names.o_managerHome_DGDrainPumpData_SetPtRPM, "text", "{:.0f}".format(vSetPtRPM))).text), "{:.0f}".format(vSetPtRPM)) + test.compare(str(waitForObjectExists(utils.dict_update(names.o_managerHome_DGDrainPumpData_DACValue, "text", "{:.0f}".format(vDACValue))).text), "{:.0f}".format(vDACValue)) def main(): @@ -39,17 +39,17 @@ step = 10 for i in range ( 10, 500, step): - HDSimulator.setDGDrainPumpData(i, i + step * 1) + HDSimulator.cmd_set_dg_drain_pump_data(i, i + step * 1) test_values (i, i + step * 1) - HDSimulator.setDGDrainPumpData(100, 200) + HDSimulator.cmd_set_dg_drain_pump_data(100, 200) test_values (100, 200) - HDSimulator.setDGDrainPumpData(100, 200) + HDSimulator.cmd_set_dg_drain_pump_data(100, 200) test_values (100, 200) # Coverage - HDSimulator.setDGDrainPumpData(0, 0) + HDSimulator.cmd_set_dg_drain_pump_data(0, 0) test_values (0, 0) utils.tstDone()