Index: tst_standbymode/test.py =================================================================== diff -u -r353c3f31d770db01cd2a37421dffef5166d6c20a -r50a76caec4a97fcdeb026d0ea7ec9c2d3c38bfeb --- tst_standbymode/test.py (.../test.py) (revision 353c3f31d770db01cd2a37421dffef5166d6c20a) +++ tst_standbymode/test.py (.../test.py) (revision 50a76caec4a97fcdeb026d0ea7ec9c2d3c38bfeb) @@ -35,10 +35,8 @@ Tests to get current time. @return: current time in seconds """ - now = datetime.datetime.now() - current_time = now.strftime("%H:%M:%S") - hours = current_time.split(':')[0] - return hours + current_time = utility.get_current_date_and_time("%H") + return current_time def verify_create_treatment_text(): """ @@ -80,8 +78,8 @@ def main(): - utils.tstStart("tst_standbymode") - utility.start_application(config.AUT_NAME) + utils.tstStart(__file__) + startApplication(config.AUT_NAME) hd_simulator.cmd_send_power_on_self_test_version_request() hd_simulator.cmd_send_hd_operation_mode(HDOpModes.MODE_STAN.value)