Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r8e76ad5057589233097d238af2c14aa27864d6d4 -r4d66e02dce6ed8c33da954937c892dde409f98e5 --- shared/scripts/configuration/utility.py (.../utility.py) (revision 8e76ad5057589233097d238af2c14aa27864d6d4) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 4d66e02dce6ed8c33da954937c892dde409f98e5) @@ -34,7 +34,6 @@ from dialin.protocols import DenaliMessage, DenaliCanMessenger, DenaliChannels from datetime import datetime - LOG_LOCATION = "/home/denali/Desktop/sd-card/log/*.log" def color_verification(exp_val = "Red", act_val = "#c53b33"): @@ -186,7 +185,6 @@ names.o_alarm_message["text"] = msg return names.o_alarm_message - def rejection_msg(text): names.o_rejection_msg["text"] = text return names.o_rejection_msg @@ -275,7 +273,6 @@ test.compare(arterial_min, art_low, "Actual Arterial range minimum value: {} is equal to Expected value: {}".format(arterial_min, art_low)) test.endSection() - def set_arterial_ranges_max_val(art_high): """ Method to set the Arterial range maximum value to user expected value @@ -327,7 +324,6 @@ "Actual Arterial range maximum value: {} is equal to Expected value: {}".format(arterial_max, art_high)) test.endSection() - def set_venous_ranges_max_val(ven_high): """ Method to set the Venous range maximum value to user expected value @@ -378,7 +374,6 @@ test.compare(ven_max, ven_high, "Actual Venous range maximum value: {} is equal to Expected value: {}".format(ven_max, ven_high)) test.endSection() - #Methods for create custom treatment def set_venous_ranges_min_val(ven_low): """ @@ -455,12 +450,10 @@ 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") - def expected_heparin_value(val): names.o_heparin_value["text"] = val return names.o_heparin_value - def msg(string): """ Added ### at the right side of the string to make sure that it is a message. @@ -470,7 +463,6 @@ padded_str = "###"+string return padded_str - def navigate_to_pretreatment_screen(mode): """ Method to navigate to sub mode under pre-treatment screen @@ -482,12 +474,10 @@ installation_state=0, dry_self_test_state=0, prime_state=0, recirculate_state=0, patient_connection_state=0) - def self_test_dry_check_list_text(text): names.o_self_test_dry_check_list_text["text"] = text return names.o_self_test_dry_check_list_text - def get_time(screen_title): """ Method to return the current count down @@ -510,7 +500,6 @@ time_text = progress_circle_children[1] return time_text.time - def verify_countdown(screen_title, time_out, hd_simulator, dg_simulator): """ Method to verify the count down @@ -536,7 +525,6 @@ verify_the_progress(count_down, screen_title, time_out) test.endSection() - def verify_the_progress(count_down, screen_title, time_out): """ Method to verify the current progress @@ -556,7 +544,6 @@ test.compare(current_progress, expected_progress, "{} should be the current progress".format(expected_progress)) test.endSection() - def verify_page_step_indicator(screen_obj, treatment_step, treatment_screens): """ Method to verify the Page Step indicators [the object on top of the screen which indicates the steps passed, current, remained] @@ -594,7 +581,6 @@ test.compare(bullet_border_color, config.INCOMPLETE_COLOR) test.endSection() - def verify_missing_object(object_to_check): """ Method to verify the given object is invisible or is not present on the screen @@ -609,7 +595,6 @@ squish.testSettings.objectNotFoundDebugging = True - def verify_color_of_entry(entry, vital_parameter, input_field): """ Method to verify the color of entry @@ -638,7 +623,6 @@ test.compare(input_field_color, config.IN_RANGE_COLOR, "Heart Rate value {} is in range of {} and {}".format(entry, config.HEART_RATE_LOWER_LIMIT, config.HEART_RATE_UPPER_LIMIT)) test.endSection() - def keypad_input(key_value): """ Method to enter values using application UI keyboard @@ -651,7 +635,6 @@ test.log("Invalid text for object.") names.o_keypad_input["text"] = None - def enter_keypad_value(entry): """ Method to enter user desired @@ -664,7 +647,6 @@ squish.mouseClick(squish.waitForObject(keypad_input(value))) test.endSection() - def is_float(num): """ This function checks the value is adaptable for float conversion. @@ -678,7 +660,6 @@ except ValueError: return False - def is_intiger(num): """ This function checks the value is adaptable for integer conversion. @@ -691,7 +672,6 @@ except ValueError: return False - def get_extracted_file(): """ This function is the handler for getting file from log folder. @@ -707,7 +687,6 @@ except: return False - def get_message_from_log(file_name, message_text): """ @@ -751,7 +730,6 @@ except: test.fail("Log file is not created or log file is not created based on standard log naming format.") - def get_ack_request_details(file_name, message_text): """ This method intended to extract acknowledgement request status, negative requested acknowledgement @@ -791,7 +769,6 @@ except: test.fail("Log file is not created or log file is not created based on standard log naming format.") - def get_bak_request_details(file_name, ack_bak_value): """ This method intended to extract the acknowledgement back status from application log. @@ -820,7 +797,6 @@ except: test.fail("Log file is not created or log file is not created based on standard log naming format.") - def get_current_log_details(message_ack = False, message_text = None): """ This function is capable to perform data analysis from application log folder. @@ -845,12 +821,10 @@ content_record.append(ack_bak_status) return content_record - def vitals_interval_obj(interval): names.o_time_interval_obj["text"] = interval return names.o_time_interval_obj - def get_extracted_error_file(): """ This function is the handler for getting error file from service folder. @@ -864,12 +838,10 @@ except: return False - def keyboard_input(key_value): names.o_keyboard_object["text"] = key_value return names.o_keyboard_object - def enter_keyboard_numeric_value(entry): """ Method to enter user desired @@ -887,7 +859,6 @@ utils.waitForGUI(0.1) test.endSection() - def convert_seconds_into_min_and_sec(seconds, time_format="%M:%S"): """ Method to convert seconds into minute format. @@ -899,7 +870,6 @@ min_and_sec = time.strftime(time_format, time.gmtime(seconds)) return min_and_sec - def verify_parameter_from_post_treatment_log(msg_text): """ To obtain the details of parameter from post treatment log file. @@ -924,7 +894,6 @@ except: test.fail("Log file is not created or log file is not created based on standard log naming format.") - def get_extracted_file_from_post_treatment(): """ This function is the handler for getting file from log folder.