Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rf8943fd4831755c59de02301e92eed5e2dc6eee5 -rfab7cab2b75d46cd086437027099192a06d98f46 --- shared/scripts/configuration/utility.py (.../utility.py) (revision f8943fd4831755c59de02301e92eed5e2dc6eee5) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision fab7cab2b75d46cd086437027099192a06d98f46) @@ -19,49 +19,9 @@ import squish import test -from squish import * - from builtins import int as pyInt from configuration import config from dialin.ui.hd_simulator import HDSimulator - - -def start_application(app_name): - """ - Function to start application and verify application status [running] - If application does not start or running status is false, test stops - Argument: - @param app_name : (str) - Name of the application - @param app_executable : (str) - Actual application - @return: handle for the application if the application is in running state, - or error (exist the application) - """ - counter = 0 - while True: - try: - counter += 1 - test.log("Starting {}".format(app_name)) - squish.startApplication(app_name) - if counter == 1: - test.log("Application launched at the "+str(counter)+" st try.") - elif counter == 2: - test.log("Application launched at the "+str(counter)+" nd try.") - elif counter == 3: - test.log("Application launched at the "+str(counter)+" rd try.") - else: - test.log("Application launched at the "+str(counter)+" th try.") - break - except RuntimeError: - if counter == 1: - test.log("Application failed to launch after "+str(counter)+" try - Please refer logs") - elif counter == 20: - test.log("Exiting after "+str(counter)+ " tries..") - sys.exit(1) - else: - test.log("Application failed to launch after "+str(counter)+ " tries - Please refer logs") - except: - test.log("Failed to start the application") - sys.exit(1) def check_if_object_is_within_the_container(obj=None, container=None): """ @@ -89,8 +49,8 @@ def scroll_to_zone(zone=None, screen_object=None): """ scroll to the zone if object is hidden - @param zone - UI object - @param screen_object - UI object + @param zone - (obj) UI object + @param screen_object - (obj) UI object @return boolean true and false """ counter = 0