Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rd6518e26df89b43f269338a95d45b708cc37ec3a -r441bbd17451e0afba3c3fe9e22b3afe2f7a9d5e0 --- shared/scripts/configuration/utility.py (.../utility.py) (revision d6518e26df89b43f269338a95d45b708cc37ec3a) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 441bbd17451e0afba3c3fe9e22b3afe2f7a9d5e0) @@ -183,13 +183,23 @@ def convert_seconds_into_min_and_sec(seconds, time_format="%M:%S"): + """ + Method to convert seconds into minute format. + @param seconds - time in seconds. + @param time_format (str) - time format. + @return (int) - minute time + """ seconds = builtins.int(seconds) min_and_sec = time.strftime(time_format, time.gmtime(seconds)) return min_and_sec - def verify_parameter_from_post_treatment_log(msg_text): + """ + To obtain the details of parameter from post treatment log file. + @param msg_text: parameter to be extracted. + @returns message value and message unit + """ try: log_location = str(get_extracted_file()) with open(log_location, 'r') as csv_file: @@ -279,10 +289,12 @@ squish.testSettings.objectNotFoundDebugging = True + def verify_page_step_indicator_post_treatment(screen_obj, post_treatment_step): """ Method to verify the Page Step indicators [the object on top of the screen which indicates the steps passed, current, remained] @param post_treatment_step : (int) indicates the Current post-treatment step + """ test.startSection("verification of page step indicators") for page in range(len(config.POST_TREATMENT_SCREENS)): @@ -312,3 +324,5 @@ test.compare(bullet_circle_color,config.CURRENT_COLOR) test.compare(bullet_border_color,config.INCOMPLETE_COLOR) test.endSection() + +