Index: shared/scripts/configuration/config.py =================================================================== diff -u -r0a0888fc791879460c80bb1544959c9d813ed5b6 -r7445a9ec1bbaa8dc1ae54ea51d03e74e8f48e62e --- shared/scripts/configuration/config.py (.../config.py) (revision 0a0888fc791879460c80bb1544959c9d813ed5b6) +++ shared/scripts/configuration/config.py (.../config.py) (revision 7445a9ec1bbaa8dc1ae54ea51d03e74e8f48e62e) @@ -31,5 +31,3 @@ GOODEVENING_START_TIME_SEC = 43200 - - Index: shared/scripts/configuration/strings.py =================================================================== diff -u -r0a0888fc791879460c80bb1544959c9d813ed5b6 -r7445a9ec1bbaa8dc1ae54ea51d03e74e8f48e62e --- shared/scripts/configuration/strings.py (.../strings.py) (revision 0a0888fc791879460c80bb1544959c9d813ed5b6) +++ shared/scripts/configuration/strings.py (.../strings.py) (revision 7445a9ec1bbaa8dc1ae54ea51d03e74e8f48e62e) @@ -9,14 +9,9 @@ # @file strings.py # # @author (last) LTTS -# @date (last) 18-Jan-2022 +# @date (last) 16-Jun-2022 # ############################################################################ -#Time_Duration TREATMENT_PAUSED_TEXT = "Treatment Paused" -BLOOD_PRIMING_TEXT = "Blood Priming" -SALINE_UNIT = "mL" -BLOOD_PRIMING_DEFAULT_VALUE = "0 mL" - - \ No newline at end of file + Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r2d0ac4cb02178ab7da2e01f75087f4d87599cce9 -r7445a9ec1bbaa8dc1ae54ea51d03e74e8f48e62e --- shared/scripts/configuration/utility.py (.../utility.py) (revision 2d0ac4cb02178ab7da2e01f75087f4d87599cce9) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 7445a9ec1bbaa8dc1ae54ea51d03e74e8f48e62e) @@ -12,13 +12,8 @@ # ############################################################################ - -import sys import time -import test import squish -from configuration import config -from builtins import int as pyInt def check_if_object_is_within_the_container(obj=None, container=None): """ @@ -65,11 +60,9 @@ ScreenObj = squish.waitForObject(screen_object) screenHeight = pyInt(ScreenObj.height) screenWidth = pyInt(ScreenObj.width) - squish.mouseWheel(ScreenObj, screenWidth-1000, - screenHeight-10, 0, -50, squish.Qt.NoModifier) + squish.mouseWheel(ScreenObj, screenWidth-1000, screenHeight-10, 0, -50, squish.Qt.NoModifier) - raise LookupError("zone object is not in view to the user after " + \ - "trying 100 times") + raise LookupError("zone object is not in view to the user after trying 100 times") def convert_seconds_into_min_and_sec(seconds, format="%M:%S"): Index: tst_time_duration/test.py =================================================================== diff -u -rf697f1851b81d3ae67b167e89877d2e7561505ae -r7445a9ec1bbaa8dc1ae54ea51d03e74e8f48e62e --- tst_time_duration/test.py (.../test.py) (revision f697f1851b81d3ae67b167e89877d2e7561505ae) +++ tst_time_duration/test.py (.../test.py) (revision 7445a9ec1bbaa8dc1ae54ea51d03e74e8f48e62e) @@ -1,3 +1,4 @@ + # -*- coding: utf-8 -*-" # Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. # copyright @@ -20,7 +21,7 @@ MIN_TIME_RANGE = 60 MAX_TIME_RANGE = 480 -#For reducing Test Execution time we are passing two specific seconds values for verification +#FTo optimize the Test Execution time we are passing two specific seconds values for verification total_time_list = [90,120] hd_simulator = HDSimulator() @@ -32,11 +33,11 @@ @param vTotal: (int) Total time in seconds """ - for i in range(0,vTotal+1): + for count in range(0,vTotal+1): - hd_simulator.cmd_set_treatment_time(vTotal, i, vTotal - i) - test.compare(waitForObjectExists(names.o_treatment_duration).progressValue, i, "progress value should be {}".format(i)) - test.compare(waitForObjectExists(names.o_treatment_duration).timeTextValue, vTotal - i, "Expected Time on UI should be in seconds {}".format(vTotal - i)) + hd_simulator.cmd_set_treatment_time(vTotal, count, vTotal - count) + test.compare(waitForObjectExists(names.o_treatment_duration).progressValue, count, "progress value should be {}".format(count)) + test.compare(waitForObjectExists(names.o_treatment_duration).timeTextValue, vTotal - count, "Expected Time on UI should be in seconds {}".format(vTotal - count)) def get_slider_time_obj(): """