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(): """