Index: suite_leahi/shared/scripts/configuration/strings.py =================================================================== diff -u --- suite_leahi/shared/scripts/configuration/strings.py (revision 0) +++ suite_leahi/shared/scripts/configuration/strings.py (revision df6668769f32a66a7a3ce7b5956726142b67cecf) @@ -0,0 +1,10 @@ +#Service Export Logs +DEVICE_SETTINGS_SCREEN_TITLE_TEXT = "Device Settings" +EXPORT_LOG_TEXT = "Export Logs" +EXPORT_LOGS_OPTIONS = ["Application", "Service", "Treatment"] +EXPORT_LOG_STATUS = "Application log export to USB is complete" +EXPORT_LOG_PROGRESS_STATUS = "Service log export to USB in progress ... " +SERVICE_SCREEN_TITLE_TEXT = "Service" + +#Headerbar_information_popup +INFORMATION_PARAMETERS = ["OS Version", "UI Version", "TD Version", "TD FPGA Version", "TD Serial Number", "DD Version", "DD FPGA Version", "DD Serial Number"] Index: suite_leahi/shared/scripts/configuration/utility.py =================================================================== diff -u --- suite_leahi/shared/scripts/configuration/utility.py (revision 0) +++ suite_leahi/shared/scripts/configuration/utility.py (revision df6668769f32a66a7a3ce7b5956726142b67cecf) @@ -0,0 +1,14 @@ +import squish +import test + +def get_object_from_names(names_dict, error_message = "Missing object", timeout_ms = 200): + """ + To get an object with try..except catching to prevent script errors when the object is not found on the GUI + @param names_dict - the dictionary element from the names.py file (ie: names.some_variable_name_of_element) + @returns the object with corresponding dictionary, otherwise "None" + """ + try: + return squish.waitForObject(names_dict, timeout_ms) + except LookupError: + test.fail("ERROR : " + error_message) + return None