Index: shared/scripts/names.py =================================================================== diff -u -rd49d17524813333d2c450eee1711ee8cc430831e -rfe2316beecd0214df0d905448533ee2b1ba04375 --- shared/scripts/names.py (.../names.py) (revision d49d17524813333d2c450eee1711ee8cc430831e) +++ shared/scripts/names.py (.../names.py) (revision fe2316beecd0214df0d905448533ee2b1ba04375) @@ -1025,6 +1025,8 @@ o_SettingsBase_usbFolderRectangle_Rectangle = {"container": o_SettingsBase_SettingsBase, "gradient": 0, "id": "_usbFolderRectangle", "type": "Rectangle", "unnamed": 1, "visible": True} o_SettingsBase_progressCircle_ProgressCircle_2 = {"container": o_SettingsBase_SettingsBase, "id": "_progressCircle", "occurrence": 2, "type": "ProgressCircle", "unnamed": 1, "visible": True} o_SettingsBase_image_Image = {"container": o_SettingsBase_SettingsBase, "id": "_image", "source": "qrc:/images/iEject", "type": "Image", "unnamed": 1, "visible": True} +o_shutdownRect_TouchRect = {"container": o_Overlay, "id": "_shutdownRect", "type": "TouchRect", "unnamed": 1, "visible": True} +o_cancelTouch_TouchRect = {"container": o_Overlay, "id": "_cancelTouch", "type": "TouchRect", "unnamed": 1, "visible": True} ##Below set of objects are belongs to Disinfection-it is the combination of Heat,Flush and chemical disinfection. Index: tst_service_screen/test.py =================================================================== diff -u -rbe56781bcef08e658c8f2a6df53f326916087465 -rfe2316beecd0214df0d905448533ee2b1ba04375 --- tst_service_screen/test.py (.../test.py) (revision be56781bcef08e658c8f2a6df53f326916087465) +++ tst_service_screen/test.py (.../test.py) (revision fe2316beecd0214df0d905448533ee2b1ba04375) @@ -135,13 +135,24 @@ test.compare(waitForObjectExists(names.o_keyboard_object).text, config.SHUTDOWN_BUTTON_TEXT, "User should able to click {}".format(config.SHUTDOWN_BUTTON_TEXT)) utils.waitForGUI(1) mouseClick(waitForObjectExists(names.o_SettingsHome_service_confirmButton_TouchRect)) + + #Power + #0x0100 + hd_simulator.cmd_send_poweroff_button_pressed() + mouseClick(waitForObjectExists(names.o_cancelTouch_TouchRect)) + hd_simulator.cmd_send_poweroff_button_pressed() + mouseClick(waitForObjectExists(names.o_shutdownRect_TouchRect)) + #0x0E00 + #0x0E00 + hd_simulator.cmd_send_broadcast_poweroff_imminent() + utils.waitForGUI(2) test.endSection() def main(): utils.tstStart(__file__) - startApplication(config.AUT_NAME+ "-l") + startApplication(config.AUT_NAME+ " -l") navigate_to_settings_screen() verify_export_logs_screen()