Index: suite_leahi/shared/scripts/configuration/utility.py =================================================================== diff -u -rb0ef2e099ea10d4ec265b06bd6c0325630f69a58 -r279e768763ca90eadc690f1c922889f8969e5e6f --- suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision b0ef2e099ea10d4ec265b06bd6c0325630f69a58) +++ suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision 279e768763ca90eadc690f1c922889f8969e5e6f) @@ -216,10 +216,6 @@ return results - - - - def set_value_with_slider(value_field_obj, slider_obj,parameter): """ Opens the slider and moves it gradually to the target value (step of 10). @@ -288,9 +284,10 @@ """ try: return squish.waitForObject(names_dict, timeout_ms).color.name + except LookupError: test.fail("ERROR : " + error_message) - return None + def get_object_source_path(names_dict, error_message = "Missing object source path", timeout_ms = 2000): """ To get an object source path with try..except catching to prevent script errors when the object is not found on the GUI @@ -299,9 +296,9 @@ """ try: return squish.waitForObject(names_dict, timeout_ms).source.path - except LookupError: - return None + except LookupError: test.fail("ERROR : " + error_message) + return None def get_object_text(names_dict, error_message = "Missing object text", timeout_ms = 2000): """