Index: suite_leahi/shared/scripts/configuration/config.py =================================================================== diff -u -r5242b0f3bde261dff5670b39bdb263f084d237b6 -rc091cb2bd9bd4b20538496aa27435e8c8cf39e7a --- suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision 5242b0f3bde261dff5670b39bdb263f084d237b6) +++ suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision c091cb2bd9bd4b20538496aa27435e8c8cf39e7a) @@ -90,19 +90,11 @@ ACTIVE = 'Active' RESUME = 'Resume' COMPLETE = 'Complete' -HEPARIN = 'Heparin' -CREATERX = 'Rx' -VALIDATE = 'VALIDATE' -CONFIRM = 'CONFIRM' -NEXT = 'Next' -AUTO_LOAD = 'Auto Load' -WATER_SAMPLE = 'Water Sample' -START = 'Start' -AUTO_EJECT = 'Auto Eject' -ISOLATED_UF_VOLUME_REMOVED = "Isolated UF Volume Removed" -ISOLATED_UF_VOLUME_GOAL ="Isolated UF Volume Goal" -ULTRAFILTRATION_PAUSED_STATE = "Ultrafiltration Paused" -ULTRAFILTRATION_COMPLETE_STATE = "Ultrafiltration Complete" +HEPARIN = "Heparin" +CREATERX = "Rx" +VALIDATE = "VALIDATE" +CONFIRM = "CONFIRM" +NEXT ="Next" SYSTOLIC = "Systolic" DIASTOLIC = "Diastolic" Index: suite_leahi/shared/scripts/configuration/navigation.py =================================================================== diff -u -r8bfb02b2b8e50dccd822549c11d340df033744c7 -rc091cb2bd9bd4b20538496aa27435e8c8cf39e7a --- suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 8bfb02b2b8e50dccd822549c11d340df033744c7) +++ suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision c091cb2bd9bd4b20538496aa27435e8c8cf39e7a) @@ -30,38 +30,6 @@ ), ) -def navigate_to_device_settings_using_service_password(): - td_simulator.td_operation_mode(TDOpModes.MODE_STAN.value, 0) - main_menu_container = squish.waitForObject(names.o_mainMenu_MainMenu, 2000) - squish.mouseClick(utility.findChildByText(main_menu_container, config.SETTINGS)) - - td_simulator.td_operation_mode(TDOpModes.MODE_SERV.value, 0) - grid_container = squish.waitForObject(names.o_DeviceSettingsGrid) - squish.mouseClick(utility.findChildByText(grid_container, config.SERVICE)) - - input_field = squish.waitForObject(names.o_userConfirmation_TextInput, 1000) - - squish.type(input_field, config.DEFAULT_SERVICE_PASSWORD_RAW) - confirm_button = squish.waitForObject(names.o_userConfirmation_ConfirmButton, 1000) - squish.mouseClick(confirm_button) - -def get_ini_value(conf_path: str , section: str, key: str): - """ - Method to get the advanced option from the System.conf file - """ - path = Path(conf_path) - if not path.exists(): - raise FileNotFoundError(f"Not found: {path}") - parser = ConfigParser() - # Preserve case if needed: - # parser.optionxform = str - parser.read(path, encoding="utf-8") - if not parser.has_section(section): - raise KeyError(f"Section [{section}] not found in {path}") - if not parser.has_option(section, key): - raise KeyError(f"Key '{key}' not found in section [{section}]") - return parser.get(section, key) - def navigation_pageIndicator_step(vStep_name): """ Navigate to the specified page using the step indicator component. @@ -73,20 +41,10 @@ """ test.startSection("Method to navigation in the pretreatment page ") - stepId = squish.waitForObjectExists(names.o_preTreatmentStack_stepIndicator_StepIndicator) - stepnames = utility.findAllObjectsById(stepId, "_text") - SYSTEM_PATH = application_init.configuration_folder_path() + "Settings/System.conf" - value = get_ini_value(SYSTEM_PATH, section ="AdvancedMode", key ="AdvancedMode") - standard = stepnames[1:] - if value == "0": - standard = stepnames[3:] - Nextbutton = utility.setObjectText(obj =names.o_preTreatmentStack_Text, text =config.NEXT) - squish.mouseClick(squish.waitForObject(Nextbutton)) - - autoLoadbutton = utility.setObjectText(obj =names.o_preTreatmentStack_Text, text ="Auto Load") - squish.mouseClick(squish.waitForObject(autoLoadbutton)) - td_simulator.td_blood_set_auto_load_response(vRejectionReason = 0) - for input_field in standard: + stepId = squish.waitForObjectExists(names.o_preTreatmentStack_stepIndicator_StepIndicator) + values = utility.findAllObjectsById(stepId, "_text") + for index, input_field in enumerate(values[2:]): + test.log(str(index)); test.log(str(input_field.text)) if str(input_field.text) == "Water Sample": squish.mouseClick(squish.waitForObject(names.o_PreTreatmentSampleStack_button_TouchRect)) @@ -98,3 +56,4 @@ squish.mouseClick(Nextbutton) test.endSection() + \ No newline at end of file Index: suite_leahi/shared/scripts/configuration/utility.py =================================================================== diff -u -r8bfb02b2b8e50dccd822549c11d340df033744c7 -rc091cb2bd9bd4b20538496aa27435e8c8cf39e7a --- suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision 8bfb02b2b8e50dccd822549c11d340df033744c7) +++ suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision c091cb2bd9bd4b20538496aa27435e8c8cf39e7a) @@ -12,61 +12,10 @@ from builtins import int as pyInt td =TD_Messaging() - -def aut(*args): - """ - 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 - * _