Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r42338c93628db9a3837ab3b6c49a3e3d1e0f0975 -r6b8f0f06784bac5f015688ba42a8929ed9321b44 --- shared/scripts/configuration/utility.py (.../utility.py) (revision 42338c93628db9a3837ab3b6c49a3e3d1e0f0975) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 6b8f0f06784bac5f015688ba42a8929ed9321b44) @@ -1072,6 +1072,21 @@ utils.waitForGUI(0.1) test.endSection() +def get_extracted_alarm_mapping_file(): + """ + This function is the handler for getting error file from service folder. + + Application log file is automatically created on '/home/denali/Desktop/sd-card/service/ {current_date}_denaliSquish.err ' + + @return latest_file - (string) returns latest file that append on log folder from service + """ + try: + latest_file = config.ALARM_MAPPING_CPP_FILE_LOCATION + return latest_file + except: + return False + + def scroll_to_value_on_pop_up(value=None, container=None): """ scroll to the to the value if object is hidden @@ -1111,4 +1126,6 @@ return latest_file except: return False - \ No newline at end of file + + raise LookupError("value object is not in view to the user after trying 100 times") +