Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r0cc92d3b75bfb96dc4ecafd760a9ce15e455033b -r7a2847fdd205e5af497cadec27c9f6d52429cf9e --- shared/scripts/configuration/utility.py (.../utility.py) (revision 0cc92d3b75bfb96dc4ecafd760a9ce15e455033b) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 7a2847fdd205e5af497cadec27c9f6d52429cf9e) @@ -12,12 +12,15 @@ # ############################################################################ - +import pytz import sys import test import squish + from configuration import config from builtins import int as pyInt +from datetime import datetime +from pytz import timezone def start_application(app_name): @@ -108,3 +111,19 @@ raise LookupError("zone object is not in view to the user after " + \ "trying 100 times") + + +def get_current_date_and_time(): + + date_format='%Y/%b/%d - %H:%M' + date = datetime.now() + + + device_timezone=pytz.timezone('US/Pacific') + + date = device_timezone.localize(date) + date = date.astimezone(device_timezone) + + return str(date.strftime(date_format)) + + Index: suite.conf =================================================================== diff -u -r8df6f936193bbd9127d3ec940562e62db0060bcb -r7a2847fdd205e5af497cadec27c9f6d52429cf9e --- suite.conf (.../suite.conf) (revision 8df6f936193bbd9127d3ec940562e62db0060bcb) +++ suite.conf (.../suite.conf) (revision 7a2847fdd205e5af497cadec27c9f6d52429cf9e) @@ -1,6 +1,9 @@ AUT=denaliSquish +ENVVARS=envvars +HOOK_SUB_PROCESSES=false +IMPLICITAUTSTART=0 LANGUAGE=Python OBJECTMAPSTYLE=script -TEST_CASES=tst_environment tst_post tst_standbymode tst_In_treatment +TEST_CASES=tst_environment tst_post tst_standbymode tst_In_treatment tst_main_treatment_vitals VERSION=3 WRAPPERS=Qt Index: tst_main_treatment_vitals/test.py =================================================================== diff -u --- tst_main_treatment_vitals/test.py (revision 0) +++ tst_main_treatment_vitals/test.py (revision 7a2847fdd205e5af497cadec27c9f6d52429cf9e) @@ -0,0 +1,37 @@ +# -*- 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_main_treatment_vitals +# date 2022/feb/11 +# author Papiya Mandal + + +import names + +from configuration.config import * +from configuration.utility import get_current_date_and_time, start_application +from dialin.ui import utils +from dialin.ui.hd_simulator import HDSimulator + +hd = HDSimulator() + +def main(): + + utils.tstStart(__file__) +# startApplication("denaliSquish") + start_application(AUT_NAME) + + hd.cmd_send_power_on_self_test_version_request() + hd._handler_ui_first_check_in(message = None) + + hd.cmd_send_hd_operation_mode(6, 0) + + current_date_time = get_current_date_and_time() + test.log(current_date_time) +