Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r8329a51c87e52328d6d8b58dd12b3c1aa7fcdc6f -r0fdeffb58000cb41173dbe68e18d2cffc9f708fa --- shared/scripts/configuration/utility.py (.../utility.py) (revision 8329a51c87e52328d6d8b58dd12b3c1aa7fcdc6f) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 0fdeffb58000cb41173dbe68e18d2cffc9f708fa) @@ -30,45 +30,7 @@ hd = 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(f"Application launched at the {counter}'st try.") - elif counter == 2: - test.log(f"Application launched at the {counter}'nd try.") - elif counter == 3: - test.log(f"Application launched at the {counter}'rd try.") - else: - test.log(f"Application launched at the {counter}'th try.") - break - except RuntimeError: - if counter == 1: - test.log(f"Application failed to launch after {counter} try - Please refer logs") - elif counter == 20: - test.log(f"Exiting after {counter} tries..") - sys.exit(1) - else: - test.log(f"Application failed to launch after {counter} tries - Please refer logs") - except: - logErrorDetails("Failed to start the application") - sys.exit(1) - - + def color_verification(exp_val = "Red", act_val = "#c53b33"): """ Function to verify item color verification @@ -106,8 +68,7 @@ return False - - + def scroll_to_zone(zone=None, screen_object=None): """ scroll to the numeric if object is hidden