Index: suite_leahi/shared/scripts/configuration/config.py =================================================================== diff -u -r8f9df8e70510cbd35fcefa54812b16bf0ee0e3ff -rf7c5babf0cceeac7cacd155523b3fca43ac25a95 --- suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision 8f9df8e70510cbd35fcefa54812b16bf0ee0e3ff) +++ suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision f7c5babf0cceeac7cacd155523b3fca43ac25a95) @@ -29,6 +29,7 @@ ] SERIVCES_TITLE = "Service" WATER_PARAMETERS = ["Water Configuration", "Water Input"] + # General Alarm Requirements Instruction NUM_OF_ALARM_PRIORITIES = 4 # Total number of alarm priorities ALARM_MUTE_FLAG = 0B0000001000000000 @@ -39,24 +40,28 @@ 2 : 'ALARM_PRIORITY_MEDIUM', 3 : 'ALARM_PRIORITY_HIGH', } +MUTE = "Mute" +UMMUTE = "UnMute" +IMAGE_BELLOFF_STATE = "/images/iBellOff" +IMAGE_BELLON_STATE = "/images/iBellOn" +ALARMS_COLORS_HEADER = { + "ALARM_PRIORITY_NONE" : "#438feb", + "ALARM_PRIORITY_LOW" : "#db8f00", + "ALARM_PRIORITY_MEDIUM" : "#db8f00", + "ALARM_PRIORITY_HIGH" : "#c53b33" +} +ALARM_REJECT_NOTIFICATION_TEMPLATE = "No Active Alarm List [{}]" #HeaderBar WiFi WIFI_POPUP_TEXT = "WiFi Connection Error" +WIFI_IMAGE = "/images/iWifi" # Device Settings WiFi WIFI_TEXT = "Wi-Fi" WIFI_PARAMETERS_TEXTS = ["SSID", "IP Address", "Gateway", "Subnet Mask", "DNS"] WIFI_SCREEN_SCAN_BUTTON_TEXT = "SCAN" DISABLED = False -ALARMS_COLORS_HEADER = { - "ALARM_PRIORITY_NONE" : "#438feb", - "ALARM_PRIORITY_LOW" : "#db8f00", - "ALARM_PRIORITY_MEDIUM" : "#db8f00", - "ALARM_PRIORITY_HIGH" : "#c53b33" -} -ALARM_REJECT_NOTIFICATION_TEMPLATE = "No Active Alarm List [{}]" - #Create Rx ACID_CONCENTRATE = ["1.0 K, 2.50 Ca, 1 Mg","2.0 K, 2.50 Ca, 1 Mg","3.0 K, 2.50 Ca, 1 Mg"] DIALYZER_TYPE = ["Diacap Pro 13H","Diacap Pro 16H", "Diacap Pro 19H", "Optiflux F160NRe", "Optiflux F180NRe", "Optiflux F200NRe","Optiflux F250NRe"] @@ -91,8 +96,32 @@ SERVICE_SCREEN_TITLE_TEXT = "Service" ADVANCED_MODES_SCREEN_TITLE_TEXT = "Advanced Mode" DATE_AND_TIME_SCREEN_TITLE_TEXT = "Date and Time" +TIME = "Time" DATE_AND_TIME_PARAMETERS_TEXTS = ["NTP", "(Network Time Protocol)", "Time", "(HH:mm:ss)", "Date", "(MM/dd/yyyy)"] ENABLE_ROOT_SSH_SCREEN_TITLE_TEXT = "Enable Root SSH" ENABLE_ROOT_SSH_PARAMETERS_TEXTS = ["Enable SSH Login", "Enable Root Login"] FACTORY_RESET_SCREEN_TITLE_TEXT = "Factory Reset" -FACTORY_RESET_SCREEN_TEXT = "Do you want to perform the factory reset?" \ No newline at end of file +FACTORY_RESET_SCREEN_TEXT = "Do you want to perform the factory reset?" +SET_PASSWORD = "Set Password" + +#Device Settings Options +DEVICE_SETTINGS = "Device Settings" +ADVANCED_MODE = "Advanced Mode" +DEVICE_INFORMATION = "Device Information" +WI_FI = "Wi-Fi" +DEVICE_CLEANING = "Device Cleaning" +SERVICE = "Service" +EXPORT_LOGS = "Export Logs" +VOLUME_AND_BRIGHTNESS = "Volume And Brightness" +FEATURE_CONFIGURATIONS = "Feature Configurations" +ADVANCED_INSTITUTIONAL_SETTINGS = "Advanced Institutional Settings" +FACTORY_RESET = "Factory Reset" +ENABLE_ROOT_SSH = "Enable Root SSH" +INSTITUTIONAL_CONFIGURATIONS = "Institutional Configurations" +DATE_AND_TIME = "Date and Time" +LANGUAGE = "Language" + +#Menu Bar +PRESCRIPTIONS = "Prescriptions" +TREATMENT = "Treatment" +SETTINGS = "Settings" \ No newline at end of file Index: suite_leahi/shared/scripts/configuration/navigation.py =================================================================== diff -u -r8f9df8e70510cbd35fcefa54812b16bf0ee0e3ff -rf7c5babf0cceeac7cacd155523b3fca43ac25a95 --- suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 8f9df8e70510cbd35fcefa54812b16bf0ee0e3ff) +++ suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision f7c5babf0cceeac7cacd155523b3fca43ac25a95) @@ -14,14 +14,14 @@ td_simulator.td_operation_mode(TDOpModes.MODE_STAN.value, 0) headerbar_container = squish.waitForObject(names.o_mainMenu_MainMenu, 2000) settings_menu_object = utility.findChildByText( - headerbar_container, "Settings" + headerbar_container, config.SETTINGS ) if settings_menu_object is not None: squish.mouseClick(settings_menu_object) headerbar_container = squish.waitForObject(names.o_headerBar_HeaderBar, 2000) device_setting_screen_headerbar_title_text = utility.findChildByText( - headerbar_container, "Device Settings" + headerbar_container, config.DEVICE_SETTINGS ) if device_setting_screen_headerbar_title_text is not None: test.compare( @@ -44,7 +44,7 @@ """ test.startSection("Method to navigation in the pretreatment page ") stepId = squish.waitForObjectExists(names.o_preTreatmentStack_stepIndicator_StepIndicator) - values = utility.findAllObjectsById(stepId, "_text") + values = utility.findAllChildrenById(stepId, "_text") for index, input_field in enumerate(values[2:]): test.log(str(index)); test.log(str(input_field.text)) Index: suite_leahi/shared/scripts/configuration/utility.py =================================================================== diff -u -r733e6e27c1d88e9615ab0d2ac422d8e5d87de89e -rf7c5babf0cceeac7cacd155523b3fca43ac25a95 --- suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision 733e6e27c1d88e9615ab0d2ac422d8e5d87de89e) +++ suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision f7c5babf0cceeac7cacd155523b3fca43ac25a95) @@ -14,6 +14,51 @@ """ Joins the executable name and argument into a single command string +* Options: + * -h, --help Displays help on commandline options. + * --help-all Displays help including Qt specific + * options. + * -v, --version Displays version information. + * -c, --canOut Show the Can Frame Output + * -m, --msgOut Show the Message Output + * -l, --logOut Show the Logs Output + * -0, --enable-keep-awake Enable send low priority, empty message + * on the CANBus just to keep UI board CAN + * driver awake + * -i, --fake-interval Test fake message interval(ms) + * -f, --fake-message Test fake message data + * will use default sequenced long fake + * message if set to 00(default) + * will used only if correct integer value + * assigned for interval option + * -b, --fake-message-seq-at-begin Test fake message sequence at the + * beginning of the frame + * -u, --disable-unhandled-report Disable unhandled messages report as an + * error in the log + * -d, --disable-dialin-unhandled Disable the Dialin messages logged as + * unhandled + * -q, --disable-timeout Disables communication timeout + * -a, --disable-alarm-no-minimize Disables alarm no minimize + * -S, --disable-sd-card-fail-log-stop disable-sd-card-fail-log-stop + * -C, --disable-cloudsync-fail-stop disable-cloudsync-fail-stop + * -k, --disable-check-in-log Disables Check-In Log + * -K, --disable-acknow-log Disables Acknowledgment Log + * -D, --enable-dry-demo Enables Dry-Demo Mode + * -A, --active-can-bus Sets the Active CANBus [Shall start with + * 'can' or 'vcan] + * -E, --enable-manufacturing Enables the manufacturing mode to + * configure the system for the first time. + * -R, --use-root-home In case the application is not in + * Manufacturing Setup but needs to use root + * home folder for configurations. + * -U, --enable-update-mode Enables the update mode to update only + * necessary files during the update and + * keep the rest. + * -x, --use-log-long-name Use the log long file name format + * _