Index: tst_service_protected_menu/test.py =================================================================== diff -u -re3f67a6e78d267bb99596ba1ce439c6fe7d89a25 -r316fd2f51b0fa89c0f69949d79ef246e1e4bc4ed --- tst_service_protected_menu/test.py (.../test.py) (revision e3f67a6e78d267bb99596ba1ce439c6fe7d89a25) +++ tst_service_protected_menu/test.py (.../test.py) (revision 316fd2f51b0fa89c0f69949d79ef246e1e4bc4ed) @@ -1,19 +1,19 @@ -# -*- coding: utf-8 -*-" -## -# Copyright (c) 2019-2023 Diality Inc. - All Rights Reserved. -# copyright -# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, -# IN PART OR IN WHOLE, -# WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +########################################################################### # -# file tst_settings_information -# date 10/07/2023 -# author Vy Duong +# Copyright (c) 2023-2025 Diality Inc. - All Rights Reserved. +# +# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +# WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +# +# @file test.py +# +# @author (last) Vy +# @date (last) 01-Dec-2023 +# @author (original) Vy +# @date (original) 12-Oct-2023 +# +############################################################################ -### -## Tests for the service menu section that is password protected -### - import builtins import names @@ -318,7 +318,12 @@ hd_simulator.cmd_send_poweroff_timeout() utils.waitForGUI(2) hd_simulator.cmd_send_poweroff_imminent() + utils.waitForGUI(0.5) + shutdownTextObject = utility.get_object_from_names(names.system_is_shutting_down_TitleText, "Shutting down text object missing") + if shutdownTextObject is not None: + test.compare(shutdownTextObject.text, "System is shutting down", "Expecting message to be 'System is shutting down'") utils.waitForGUI(6) + currentApplicationContext().detach() def main(): utils.tstStart(__file__)