Index: shared/scripts/configuration/utility.py =================================================================== diff -u -reb8d2a1024d7639201b600eefb85a410761d7e55 -rc7b85cd6de64cdd4c730624e5321b723c4ff0ee7 --- shared/scripts/configuration/utility.py (.../utility.py) (revision eb8d2a1024d7639201b600eefb85a410761d7e55) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision c7b85cd6de64cdd4c730624e5321b723c4ff0ee7) @@ -79,6 +79,20 @@ names.o_alarm_message["text"] = msg return names.o_alarm_message +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 @@ -101,5 +115,4 @@ screenHeight = pyInt(ScreenObj.height) screenWidth = pyInt(ScreenObj.width) squish.mouseWheel(ScreenObj, screenWidth//2, screenHeight//2, 0, -50, squish.Qt.NoModifier) - raise LookupError("value object is not in view to the user after trying 100 times") - \ No newline at end of file + raise LookupError("value object is not in view to the user after trying 100 times") \ No newline at end of file