Index: tst_standbymode/test.py =================================================================== diff -u -rc6274593f3f5a607595b95f0243313a6cf32d599 -r7a5b9be3631dca85dee5c71e1f3581db4d7db342 --- tst_standbymode/test.py (.../test.py) (revision c6274593f3f5a607595b95f0243313a6cf32d599) +++ tst_standbymode/test.py (.../test.py) (revision 7a5b9be3631dca85dee5c71e1f3581db4d7db342) @@ -1,20 +1,13 @@ import names -import squish -import math import datetime -import test -import sys + +from builtins import int as pyInt +from configuration import config from time import sleep from dialin.ui import utils -from dialin.ui import unittests - from dialin.ui.hd_simulator import HDSimulator -from builtins import str as pyStr -from builtins import int as pyInt -# from dialin.ui.dg_simulator import DGSimulator -# from dialin.ui.hd_simulator_alarms import HDAlarmsSimulator GOODMORNING_START_TIME_SEC = 0 GOODEVENING_START_TIME_SEC = 43200 @@ -41,7 +34,7 @@ @return: N/A """ - standby_text = waitForObject(names.standby_page) + standby_text = waitForObject(names.o_standby_page) create_treatment = object.children(standby_text)[1] child = object.children(create_treatment)[1] test.compare(child.text, "CREATE TREATMENT") @@ -53,7 +46,7 @@ @return: current time in seconds """ - standby_text = waitForObject(names.standby_page) + standby_text = waitForObject(names.o_standby_page) child = object.children(standby_text)[0] if current_time >= GOODMORNING_START_TIME_SEC and \ current_time <= GOODEVENING_START_TIME_SEC: @@ -64,11 +57,11 @@ def main(): - utils.tstStart("demo") - startApplication("denaliSquish") + utils.tstStart(__file__) + startApplication(config.AUT_NAME) hd = HDSimulator() - #dg = DGSimulator() + hd.cmd_send_power_on_self_test_version_request() hd.cmd_send_hd_operation_mode(3)