Index: tst_environment/test.py =================================================================== diff -u -r8df6f936193bbd9127d3ec940562e62db0060bcb -r316fd2f51b0fa89c0f69949d79ef246e1e4bc4ed --- tst_environment/test.py (.../test.py) (revision 8df6f936193bbd9127d3ec940562e62db0060bcb) +++ tst_environment/test.py (.../test.py) (revision 316fd2f51b0fa89c0f69949d79ef246e1e4bc4ed) @@ -1,31 +1,51 @@ # -*- coding: utf-8 -*- - -## -# Copyright (c) 2019-2020 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_case_environment -# date 2022/01/24 -# author1 Akshay Rajaram Dhawan +# Copyright (c) 2022-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) Behrouz NematiPour +# @date (last) 07-Jun-2024 +# @author (original) Behrouz NematiPour +# @date (original) 28-Jan-2022 +# +############################################################################ -import names - +from configuration import config from dialin.ui import utils from dialin.ui import unittests +from numpy.core.defchararray import endswith +def verify_hd_communication_timeout(aut_name): + """ + Method to verify hd communication timeout pop up on application + @param: (str) - aut_name - application name + @return: None + """ + if aut_name.endswith('h'): + utils.waitForGUI(7) + test.verify(findObject(names.o_alarm_text).visible) + if aut_name.endswith('-q'): + utils.waitForGUI(7) + test.log("Application started using disable-timeout") + def main(): utils.tstStart(__file__) - - try: - startApplication(names.AUT_NAME) - test.passes("start application") - except RuntimeError as err: - test.fail(str(err)) - + test.log("Launching application denaliSquish") + aut_name = config.AUT_NAME + startApplication(aut_name) + verify_hd_communication_timeout(aut_name) + + test.log("Launching application denaliSquish with disable timeout -q") + aut_name = config.AUT_NAME+(' -q') + startApplication(aut_name) + verify_hd_communication_timeout(aut_name) + unittests.test_python_version() unittests.test_crc8() unittests.test_can0()