Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rb3524cb74d96f70808818d97e2e84957aa11e684 -r7cd0c21e76de3964af8178655467e82ff99ae98d --- shared/scripts/configuration/utility.py (.../utility.py) (revision b3524cb74d96f70808818d97e2e84957aa11e684) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 7cd0c21e76de3964af8178655467e82ff99ae98d) @@ -13,25 +13,20 @@ ############################################################################ + import sys import test import squish -import names -from configuration import config - from builtins import int as pyInt -from builtins import str as pyStr from builtins import float as pyFloat -from unicodedata import bidirectional 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 + @param app_name : (str) - Name of the executable application. @return: handle for the application if the application is in running state, or error (exist the application) """ @@ -40,28 +35,28 @@ try: counter += 1 test.log("Starting {}".format(app_name)) - squish.startApplication(config.APPLICATION_NAME) + squish.startApplication(app_name) if counter == 1: - test.log(f"Application launched at the {counter}'st try.") + test.log("Application launched at the "+str(counter)+" st try.") elif counter == 2: - test.log(f"Application launched at the {counter}'nd try.") + test.log("Application launched at the "+str(counter)+" nd try.") elif counter == 3: - test.log(f"Application launched at the {counter}'rd try.") + test.log("Application launched at the "+str(counter)+" rd try.") else: - test.log(f"Application launched at the {counter}'th try.") + test.log("Application launched at the "+str(counter)+" th try.") break except RuntimeError: if counter == 1: - test.log(f"Application failed to launch after {counter} try - Please refer logs") + test.log("Application failed to launch after "+str(counter)+" try - Please refer logs") elif counter == 20: - test.log(f"Exiting after {counter} tries..") + test.log("Exiting after "+str(counter)+ " tries..") sys.exit(1) else: - test.log(f"Application failed to launch after {counter} tries - Please refer logs") + test.log("Application failed to launch after "+str(counter)+ " tries - Please refer logs") except: logErrorDetails("Failed to start the application") sys.exit(1) - + def check_if_object_is_within_the_container(obj=None, container=None): """