Index: tst_ServiceShutdown/test.py =================================================================== diff -u -rcb8d48033154f4b36a6a05b6f31bd10390e84ac7 -rcea6eac6a05f57e3317b45762a470eb18b314ab3 --- tst_ServiceShutdown/test.py (.../test.py) (revision cb8d48033154f4b36a6a05b6f31bd10390e84ac7) +++ tst_ServiceShutdown/test.py (.../test.py) (revision cea6eac6a05f57e3317b45762a470eb18b314ab3) @@ -15,7 +15,7 @@ import names from dialin.ui import globals, HDSimulator from dialin.ui import utils -HDSimulator = HDSimulator() +hd_sim = HDSimulator() ################################################################################ # This test need to be changed when the Service screen has been implemented # @@ -39,16 +39,16 @@ test.compare(waitForObjectExists(names.o_treatmentHome).visible, True, utils.SRSUI(vSRSUI)) def showNtest_PowerOffDialog(vSRSUI=""): - HDSimulator.cmd_show_poweroff_dialog() + hd_sim.cmd_show_poweroff_dialog() test_PowerOffDialog(vSRSUI) def hideNtest_PowerOffDialog(vSRSUI=""): - HDSimulator.cmd_hide_poweroff_dialog() + hd_sim.cmd_hide_poweroff_dialog() test_PowerOffButton(vSRSUI) def showNtest_PowerOffNotificationDialog(vSRSUI=""): mSRSUI = globals.SRSUI(vSRSUI) - HDSimulator.cmd_show_poweroff_notification_dialog() + hd_sim.cmd_show_poweroff_notification_dialog() test.compare(str(waitForObjectExists(names.o_poweroff_notification).baseUrl.path), "/dialogs/AutoHideInfo.qml", mSRSUI + " - Dialog") constantPartOfTheMessage = "System is shutting down" test.compare(str(waitForObjectExists(names.o_poweroff_notification).text)[0:len(constantPartOfTheMessage)], constantPartOfTheMessage, mSRSUI + " - Message Text") @@ -57,7 +57,7 @@ def showNtest_PowerOffRejectionDialog(vSRSUI=""): mSRSUI = globals.SRSUI(vSRSUI) - HDSimulator.cmd_show_poweroff_rejection_dialog() + hd_sim.cmd_show_poweroff_rejection_dialog() test.compare(str(waitForObjectExists(names.o_poweroff_rejection).baseUrl.path), "/dialogs/AutoHideInfo.qml", mSRSUI + " - Dialog") constantPartOfTheMessage = "Cannot shutdown during " # there might be the reason, concatenated at the end of the string. test.compare(str(waitForObjectExists(names.o_poweroff_rejection).text)[0:len(constantPartOfTheMessage)], constantPartOfTheMessage, mSRSUI + " - Message Text")