Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rb10a9da7dfcb6fbe4b56b0786fea8442779c4728 -re3d34569087834bc6a6e1758480b425819d72408 --- shared/scripts/configuration/utility.py (.../utility.py) (revision b10a9da7dfcb6fbe4b56b0786fea8442779c4728) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision e3d34569087834bc6a6e1758480b425819d72408) @@ -39,7 +39,7 @@ 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.") elif counter == 2: @@ -61,27 +61,13 @@ logErrorDetails("Failed to start the application") sys.exit(1) - -def color_verification(exp_val = "Red", act_val = "#c53b33"): - """ - Function to verify item color verification - Argument: - exp_val - Expected required value - act_val - Color displayed on UI - Return: - handle the application for log - """ - test.compare(config.COLOR_CODES[color_name],(act_val.color[name])) - - + def check_if_object_is_within_the_container(obj=None, container=None): """ check if an object is inside a container - Arguments: - obj - child UI object - container - container UI object - Return: - bool + @param obj - child UI object + @param container - container UI object + Return: boolean True/False """ container = squish.findObject(container) containerPos = container.mapToGlobal(squish.QPoint(0, 0)) @@ -103,11 +89,9 @@ def scroll_to_zone(zone=None, screen_object=None): """ scroll to the numeric if object is hidden - Arguments: - zone - UI object - screen_object - UI object (UI Home screen = waveforms + numerics) - Return: - bool + @param zone - UI object + @param screen_object - UI object + Return: boolean True/False """ counter = 0 while counter <= 100: