Index: tst_DGROPumpData/test.py =================================================================== diff -u -r393fd43e9a1cbf6b25a0f107928a051a622b2be2 -r40314c67874695eefc506c3a6a33896495953edd --- tst_DGROPumpData/test.py (.../test.py) (revision 393fd43e9a1cbf6b25a0f107928a051a622b2be2) +++ tst_DGROPumpData/test.py (.../test.py) (revision 40314c67874695eefc506c3a6a33896495953edd) @@ -13,42 +13,49 @@ # import names -from dialin.squish import utils, denaliMessages +from dialin.ui import utils +from configuration import config, utility - def gotoScreenNtest_Contains_DGROPumpData(): - mouseClick(waitForObject(names.o_mainMenu_manager)) + mainMenuManager = utility.get_object_from_names(names.o_mainMenu_manager, "names.o_mainMenu_manager object is missing") + if mainMenuManager is not None: + mouseClick(waitForObject(names.o_mainMenu_manager)) test_values(0, 0, 0) def test_values(vSetPtPressure, vFlowRate, vPWM): + test.fail(f"TODO need to update the test_value({vSetPtPressure}, {vFlowRate}, {vPWM}) function..return") + return + test.compare(str(waitForObjectExists(names.o_managerHome_DGROPumpData_SetPtPressure).text), "{:.0f}".format(vSetPtPressure)) test.compare(str(waitForObjectExists(names.o_managerHome_DGROPumpData_FlowRate ).text), "{:.2f}".format(vFlowRate )) test.compare(str(waitForObjectExists(names.o_managerHome_DGROPumpData_PWM ).text), "{:.2f}".format(vPWM )) +def setDGROPumpData(vValue1, vValue2, vValue3): + test.fail(f"TODO need to populate the body, used to be denaliMessages.setDGROPumpData({vValue1}, {vValue2}, {vValue3})") def main(): utils.tstStart(__file__) - startApplication(names.AUT_NAME) + startApplication(config.AUT_NAME) utils.waitForGUI(1) gotoScreenNtest_Contains_DGROPumpData() utils.waitForGUI(1) step = 10 for i in range ( 10, 500, step): - denaliMessages.setDGROPumpData(i, i + step * 1, i + step * 2) + setDGROPumpData(i, i + step * 1, i + step * 2) test_values (i, i + step * 1, i + step * 2) - denaliMessages.setDGROPumpData(100, 200, 300) + setDGROPumpData(100, 200, 300) test_values (100, 200, 300) - denaliMessages.setDGROPumpData(100, 200, 300) + setDGROPumpData(100, 200, 300) test_values (100, 200, 300) # Coverage - denaliMessages.setDGROPumpData(0, 0, 0) + setDGROPumpData(0, 0, 0) test_values (0, 0, 0) utils.tstDone()