Index: shared/scripts/configuration/config.py =================================================================== diff -u -r31c9ee5a3c0a5e6a778887935bc42b12578a4693 -r956fd22d63adc5ebecc6320221df8a60ce069a4a --- shared/scripts/configuration/config.py (.../config.py) (revision 31c9ee5a3c0a5e6a778887935bc42b12578a4693) +++ shared/scripts/configuration/config.py (.../config.py) (revision 956fd22d63adc5ebecc6320221df8a60ce069a4a) @@ -39,8 +39,64 @@ BLOOD_PRIMING_DEFAULT_VALUE = "0 mL" +# pretreatment_patient_connection +SYSTOLIC_PRESSSURE_120 = 120 +SYSTOLIC_PRESSSURE_113 = 113 +SYSTOLIC_PRESSSURE_150 = 150 +SYSTOLIC_PRESSSURE_175 = 175 +SYSTOLIC_PRESSSURE_200 = 200 +SYSTOLIC_PRESSSURE_200 = 200 +SYSTOLIC_PRESSSURE_251 = 251 +SYSTOLIC_PRESSSURE_59 = 59 +SYSTOLIC_PRESSSURE_15 = 15 +DIASTOLIC_PRESSSURE_25 = 25 +DIASTOLIC_PRESSSURE_39 = 39 +DIASTOLIC_PRESSSURE_74 = 74 +DIASTOLIC_PRESSSURE_80 = 80 +DIASTOLIC_PRESSSURE_85 = 85 +DIASTOLIC_PRESSSURE_60 = 60 +DIASTOLIC_PRESSSURE_150 = 150 +DIASTOLIC_PRESSSURE_200 = 200 +DIASTOLIC_PRESSSURE_201 = 201 +HEART_RATE_VAL_39 = 39 +HEART_RATE_VAL_60 = 60 +HEART_RATE_VAL_70 = 70 +HEART_RATE_VAL_85 = 85 +HEART_RATE_VAL_100 = 100 +HEART_RATE_VAL_101 = 101 +HEART_RATE_VAL_110 = 110 +HEART_RATE_VAL_181 = 181 +HEART_RATE_VAL_200 = 200 +SYSTOLIC_LOWER_LIMIT = 60 +SYSTOLIC_UPPER_LIMIT = 250 +DIASTOLIC_LOWER_LIMIT = 40 +DIASTOLIC_UPPER_LIMIT = 200 +HEART_RATE_LOWER_LIMIT = 40 +HEART_RATE_UPPER_LIMIT = 180 +UF_MINIMUM_SLIDER_WIDTH = -2 +UF_MAXIMUM_SLIDER_WIDTH = 638.00 +UF_VALID_RANGE = 700 +TRAINING_INDICATOR_SCREEN = 4 +DIASTOLIC_TEXT = "diastolic" +SYSTOLIC_TEXT = "systolic" +OUT_OF_RANGE_COLOR = "#c53b33" +IN_RANGE_COLOR = "#fcfcfc" +HEART_RATE_TITLE = "Heart Rate" +BLOOD_PRESSURE_TITLE = "Blood Pressure" +BLOOD_PRESSURE_UNIT = "mmHg" +HEART_RATE_UNIT = "BPM" +PATIENT_CONNECTION_TEXT = "Patient Connection" +UF_VOLUME_TEXT = "Ultrafiltration Volume (L)" +UF_TITLE_TEXT = "Ultrafiltration Setup" +BP_HR_TEXT = "BP/HR" +SKIP_TEXT = "SKIP" +TUTORIAL_TEXT = { + 0 : "Wash your hands and establish vascular access per your clinic's instructions.", + 1 : "Pinch arterial clamp and venous clamp on located on the cartridge patient lines.", + 2 : "Remove arterial and venous shunt.", + 3 : "Connect arterial and venous cartridge lines to your patient access lines." +} -# tst_pretreatment_patient_connection PRE_TREATMENT_SCREENS = { 1 : "Create" , 2 : "Sample" , @@ -52,24 +108,6 @@ 8 : "Connection" , 9 : "Start" } -UF_MINIMUM_SLIDER_WIDTH = -2 -UF_MAXIMUM_SLIDER_WIDTH = 638.00 -UF_VALID_RANGE = 700 -PATIENT_CONNECTION_TEXT = "Patient Connection" -UF_VOLUME_TEXT = "Ultrafiltration Volume (L)" -UF_TITLE_TEXT = "Ultrafiltration Setup" -BP_HR_TEXT = "BP/HR" -SKIP_TEXT = "SKIP" -BP_TEXT = "Blood Pressure" -MMHG_TEXT = "mmHg" -HR_TEXT = "Heart Rate" -BPM_LABEL = "BPM" -TUTORIAL_TEXT = { - 1 : "Wash your hands and establish vascular access per your clinic's instructions.", - 2 : "Pinch arterial clamp and venous clamp on located on the cartridge patient lines.", - 3 : "Remove arterial and venous shunt.", - 4 : "Connect arterial and venous cartridge lines to your patient access lines." -} @@ -121,15 +159,3 @@ NUM_OF_REQUEST_REJECT_REASONS = 39 - - -############################################################################################### - - - - - - - - - Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r75b5f2a93fc13f944d268961901be981dec4bfbe -r956fd22d63adc5ebecc6320221df8a60ce069a4a --- shared/scripts/configuration/utility.py (.../utility.py) (revision 75b5f2a93fc13f944d268961901be981dec4bfbe) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 956fd22d63adc5ebecc6320221df8a60ce069a4a) @@ -114,16 +114,16 @@ def page_step_indicator_verification(pre_treatment_step, pre_treatment_items_object): """ - Method to verify the Page Step indicators [the object on top of the screen which indicates the steps passed, current, remained] + Method to verify the Page Step indicators on top of the screen which indicates the steps passed, current, remained] @param pre_treatment_step :(int) indicates the Current pre-treatment step - @param pre_treatment_items_object :(dictionary) pre_treatment + @param pre_treatment_items_object :(dictionary) pre_treatment bullet object @return N/A """ test.startSection("Method to verify the Page Step indicators from patient connection section") for page in range(1, len(config.PRE_TREATMENT_SCREENS)): pre_treatment_items_object["occurrence"] = page bullet_children = object.children(squish.waitForObject(pre_treatment_items_object)) - bullet_circle_color = bullet_children[0].color.name #waitForObjectExsits need to be checked. + bullet_circle_color = bullet_children[0].color.name bullet_border_color = bullet_children[0].border.color.name step_title = bullet_children[2] #To verify the step indicators of the completed pre treatment screens @@ -152,78 +152,38 @@ test.endSection() - - - - - - - - - - - - - - - - - - -############################################################################## -from configuration import config -from dialin.ui import utils -from builtins import int as pyInt -from datetime import datetime - -def get_current_date_and_time(): - - date_format='%Y/%b/%d - %H:%M' - date = datetime.now() - return str(date.strftime(date_format)) - - -def enter_keypad_value(entry): +def training_screen_indicator_verification(current_indicator, training_items_object): """ - Method to enter user desired - value using keypad - @param entry: (str) User expected value + Method to verify the pre treatment tutorial indicators on top of the screen which indicates the steps passed, current, remained] + @param current_indicator :(int) Current pre-treatment tutorial indicator + @param training_items_object :(dictionary) pre_treatment bullet object + @return N/A """ - test.startSection("Entering {}".format(entry)) - for value in entry: - value = pyInt(value) - key_val = squish.waitForObject(keypad_input(value)) - squish.mouseClick(key_val) - utils.waitForGUI(1) - test.endSection() + test.startSection("Method to verify the Page Step indicators from patient connection section") + for page in range(config.TRAINING_INDICATOR_SCREEN): + occurrence_index = 10 + page #1-9 occurrence of object belongs to page indicators, 10 - 13 occurrence of object belongs to training indicators + training_items_object["occurrence"] = occurrence_index + bullet_children = object.children(squish.waitForObject(training_items_object)) + bullet_circle_color = bullet_children[0].color.name + bullet_border_color = bullet_children[0].border.color.name + #To verify the step indicators of pre treatment tutorial screens + if page < current_indicator: + test.verify(squish.waitForObjectExists(training_items_object).complete, "bullet indicator {index} should be in complete state".format(index=current_indicator)) + test.verify(not squish.waitForObjectExists(training_items_object).current, "bullet indicator {index} current attribute should be unchecked".format(index=current_indicator)) + test.compare(bullet_circle_color, config.COMPLETE_COLOR, " bullet color hex should be "+str(config.COMPLETE_COLOR)) + test.compare(bullet_border_color, config.COMPLETE_COLOR, " bullet border color hex should be "+str(config.COMPLETE_COLOR)) + #To verify the step indicators of pre treatment tutorial screen + elif page == current_indicator: + test.verify(squish.waitForObjectExists(training_items_object).current, "bullet indicator {index} should be in complete state".format(index=current_indicator)) + test.verify(not squish.waitForObjectExists(training_items_object).complete, "bullet indicator {index} current attribute should be unchecked".format(index=current_indicator)) + test.compare(bullet_circle_color,config.COMPLETE_COLOR, "bullet color hex should be "+str(config.CURRENT_COLOR)) + test.compare(bullet_border_color,config.COMPLETE_COLOR, "bullet border color hex should be "+str(config.COMPLETE_COLOR)) + #To verify the step indicators of pre-treatment tutorial screens + else: + test.verify(not squish.waitForObjectExists(training_items_object).current, "bullet indicator {index} should not be complete state".format(index=current_indicator)) + test.verify(not squish.waitForObjectExists(training_items_object).complete, "bullet indicator {index} current attribute should be unchecked".format(index=current_indicator)) + test.compare(bullet_circle_color,config.CURRENT_COLOR, "bullet circle color hex should be "+str(config.CURRENT_COLOR)) + test.compare(bullet_border_color,config.INCOMPLETE_COLOR, "bullet border color hex should be "+str(config.INCOMPLETE_COLOR)) - -def erase_entered_value(input_field): - """ - Method to erase the entered value - @param input_field - (obj) object of input field - """ - test.startSection("Erasing value") - input_field= squish.waitForObject(input_field) - entered_value = str(input_field.text) - for value in entered_value: - utils.waitForGUI(1) - squish.mouseClick(squish.waitForObjectExists(names.o_back_space_key)) - - test.compare(str(input_field.text), "", "Input field should be empty") test.endSection() - -def vitals_reading_obj(reading): - names.o_vitals_reading["text"] = reading - return names.o_vitals_reading -def keypad_input(key_value): - names.o_keypad_input["text"] = key_value - return names.o_keypad_input - - - - - - - Index: shared/scripts/names.py =================================================================== diff -u -r31c9ee5a3c0a5e6a778887935bc42b12578a4693 -r956fd22d63adc5ebecc6320221df8a60ce069a4a --- shared/scripts/names.py (.../names.py) (revision 31c9ee5a3c0a5e6a778887935bc42b12578a4693) +++ shared/scripts/names.py (.../names.py) (revision 956fd22d63adc5ebecc6320221df8a60ce069a4a) @@ -68,10 +68,12 @@ o_PreTreatmentConsumblesStack_PreTreatmentUltrafiltration_PreTreatmentUltrafiltration = {"container": o_PreTreatmentStack_PreTreatmentConsumblesStack_PreTreatmentConnectionStack, "objectName": "_PreTreatmentUltrafiltration", "type": "PreTreatmentUltrafiltration", "visible": True} +# pre-treatment patient connection o_PreTreatmentStack_PreTreatmentStack = {"container": o_Gui_MainView, "objectName": "_PreTreatmentStack", "type": "PreTreatmentStack", "visible": True} o_PreTreatmentStack_PreTreatmentConsumblesStack_PreTreatmentConsumablesStack = {"container": o_PreTreatmentStack_PreTreatmentStack, "objectName": "_PreTreatmentConsumblesStack", "type": "PreTreatmentConsumablesStack", "visible": True} o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase = {"container": o_PreTreatmentStack_PreTreatmentConsumblesStack_PreTreatmentConsumablesStack, "objectName": "_PreTreatmentBase", "type": "TreatmentFlowBase", "visible": True} o_PreTreatmentStack_PreTreatmentConsumblesStack_PreTreatmentConnectionStack = {"container": o_PreTreatmentStack_PreTreatmentStack, "objectName": "_PreTreatmentConsumblesStack", "type": "PreTreatmentConnectionStack", "visible": True} +#patient connection ultrafilteration section o_PreTreatmentConsumblesStack_PreTreatmentUltrafiltration_PreTreatmentUltrafiltration = {"container": o_PreTreatmentStack_PreTreatmentConsumblesStack_PreTreatmentConnectionStack, "objectName": "_PreTreatmentUltrafiltration", "type": "PreTreatmentUltrafiltration", "visible": True} o_PreTreatmentStack_PreTreatmentPrimeStack_PreTreatmentPrimeStack = {"container": o_PreTreatmentStack_PreTreatmentStack, "objectName": "_PreTreatmentPrimeStack", "type": "PreTreatmentPrimeStack", "visible": True} o_PreTreatmentPrimeStack_PreTreatmentBase_TreatmentFlowBase = {"container": o_PreTreatmentStack_PreTreatmentPrimeStack_PreTreatmentPrimeStack, "objectName": "_PreTreatmentBase", "type": "TreatmentFlowBase", "visible": True} @@ -83,73 +85,38 @@ o_PreTreatmentUltrafiltration_CONFIRM_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentUltrafiltration_PreTreatmentUltrafiltration, "text": "CONFIRM", "type": "Text", "unnamed": 1, "visible": True} o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2 = {"container": o_PreTreatmentStack_PreTreatmentConsumblesStack_PreTreatmentConnectionStack, "objectName": "_PreTreatmentBase", "type": "TreatmentFlowBase", "visible": True} o_PreTreatmentbase_skip_text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "SKIP", "type": "Text", "unnamed": 1, "visible": True} +#patient connection BP/HR section part o_PreTreatmentBase_Patient_Connection_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "Patient Connection", "type": "Text", "unnamed": 1, "visible": True} o_PreTreatmentBase_Continue_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "CONTINUE", "type": "Text", "unnamed": 1, "visible": True} +o_PreTreatmentBase_input_TextInput_2 = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "echoMode": 0, "id": "_input", "type": "TextInput", "unnamed": 1, "visible": True} +o_PreTreatmentBase_BP_HR_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "occurrence": 2, "text": "BP/HR", "type": "Text", "unnamed": 1, "visible": True} +o_PreTreatmentBase_Blood_Pressure_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "Blood Pressure", "type": "Text", "unnamed": 1, "visible": True} +o_PreTreatmentBase_mmHg_Label = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "mmHg", "type": "Label", "unnamed": 1, "visible": True} +o_PreTreatmentBase_Heart_Rate_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "Heart Rate", "type": "Text", "unnamed": 1, "visible": True} +o_PreTreatmentBase_BPM_Label = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "BPM", "type": "Label", "unnamed": 1, "visible": True} +o_PreTreatmentBase_bloodPressureSystolic_TextEntry = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_bloodPressureSystolic", "type": "TextEntry", "unnamed": 1, "visible": True} +o_PreTreatmentBase_input_TextInput_3 = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "echoMode": 0, "id": "_input", "occurrence": 2, "type": "TextInput", "unnamed": 1, "visible": True} +o_PreTreatmentBase_bloodPressureDiastolic_TextEntry = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_bloodPressureDiastolic", "type": "TextEntry", "unnamed": 1, "visible": True} +o_PreTreatmentBase_input_TextInput_4 = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "echoMode": 0, "id": "_input", "occurrence": 3, "type": "TextInput", "unnamed": 1, "visible": True} +o_PreTreatmentBase_heartRate_TextEntry = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_heartRate", "type": "TextEntry", "unnamed": 1, "visible": True} +#patient connection training section o_PreTreatmentBase_swipeview_SwipeView = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_swipeview", "type": "SwipeView", "unnamed": 1, "visible": True} o_swipeview_tutorial_text = {"container": o_PreTreatmentBase_swipeview_SwipeView, "type": "Text", "unnamed": 1, "visible": True} o_PreTreatmentBase_rightImage_Image = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_rightImage", "source": "qrc:/images/iArrowRight", "type": "Image", "unnamed": 1, "visible": True} o_PreTreatmentBase_leftImage_Image = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_leftImage", "source": "qrc:/images/iArrowLeft", "type": "Image", "unnamed": 1, "visible": True} o_PreTreatmentUltrafiltration_Indicators = {"container": o_PreTreatmentConsumblesStack_PreTreatmentUltrafiltration_PreTreatmentUltrafiltration, "id": "_nextStepsBullet", "type": "StepBullet", "unnamed": 1, "visible": True} o_PreTreatmentFlowBase_Indicators = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_nextStepsBullet", "type": "StepBullet", "unnamed": 1, "visible": True} o_PreTreatmentUltrafiltration_NotificationBar_NotificationBar = {"container": o_PreTreatmentConsumblesStack_PreTreatmentUltrafiltration_PreTreatmentUltrafiltration, "objectName": "NotificationBar", "type": "NotificationBar", "visible": True} -o_PreTreatmentBase_input_TextInput_2 = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "echoMode": 0, "id": "_input", "type": "TextInput", "unnamed": 1, "visible": True} - - -o_PreTreatmentBase_BP_HR_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "occurrence": 2, "text": "BP/HR", "type": "Text", "unnamed": 1, "visible": True} -o_PreTreatmentBase_Blood_Pressure_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "Blood Pressure", "type": "Text", "unnamed": 1, "visible": True} -o_PreTreatmentBase_mmHg_Label = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "mmHg", "type": "Label", "unnamed": 1, "visible": True} -o_PreTreatmentBase_Heart_Rate_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "Heart Rate", "type": "Text", "unnamed": 1, "visible": True} -o_PreTreatmentBase_BPM_Label = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "BPM", "type": "Label", "unnamed": 1, "visible": True} -o_PreTreatmentBase_bloodPressureSystolic_TextEntry = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_bloodPressureSystolic", "type": "TextEntry", "unnamed": 1, "visible": True} +o_PreTreatmentBase_nextStepsBullet_StepBullet = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_nextStepsBullet", "occurrence": 7, "type": "StepBullet", "unnamed": 1, "visible": True} +o_PreTreatmentBase_BACK_Text = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "BACK", "type": "Text", "unnamed": 1, "visible": True} +o_PreTreatmentBase_CONFIRM_Text_2 = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "CONFIRM", "type": "Text", "unnamed": 1, "visible": True} #virtal keypad input field o_keypad_input = {"container": o_Gui_MainView, "id":"keyText", "type": "Text", "unnamed": 1, "visible": True} #virtal keypad back space key -#o_back_space_key = {"container": o_Gui_MainView, "id": "backspaceKeyIcon", "source": "qrc:/QtQuick/VirtualKeyboard/content/styles/default/images/backspace-868482.svg", "type": "Image", "unnamed": 1, "visible": True} - o_back_space_key = {"container": o_Gui_MainView, "id": "backspaceKeyBackground", "type": "Rectangle", "unnamed": 1, "visible": True} - - - -####################################################### -#vitals -#vitals title text on main-treatment screen -o_vitals_title = {"container": o_treatmentStack_treatmentHome_TreatmentHome, "text": "VITALS", "type": "Text", "unnamed": 1, "visible": True} -#unit of measurement for blood pressure and heart rate -o_bp_uom = {"container": o_treatmentStack_treatmentHome_TreatmentHome, "text": "mmHg", "type": "Text", "unnamed": 1, "visible": True} -o_hr_uom = {"container": o_treatmentStack_treatmentHome_TreatmentHome, "text": "BPM", "type": "Text", "unnamed": 1, "visible": True} -#reading of vitals -o_vitals_reading = {"container": o_treatmentStack_treatmentHome_TreatmentHome, "type": "Text", "unnamed": 1, "visible": True} -#vitals pop up confirm and close button -o_vitals_confrim_btn = {"container": o_treatmentStack_TreatmentStack, "text": "CONFIRM", "type": "Text", "unnamed": 1, "visible": True} -o_vitals_close_btn = {"container": o_treatmentStack_TreatmentStack, "id": "_image", "source": "qrc:/images/iClose", "type": "Image", "unnamed": 1, "visible": True} -#vitals title text vitals pop up -o_vitals_pop_up_title = {"container": o_treatmentStack_TreatmentStack, "text": "VITALS", "type": "Text", "unnamed": 1, "visible": True} -o_pop_up_bp_title = {"container": o_treatmentStack_TreatmentStack, "text": "Blood Pressure", "type": "Text", "unnamed": 1, "visible": True} -o_pop_up_heart_rate_title = {"container": o_treatmentStack_TreatmentStack, "text": "Heart Rate", "type": "Text", "unnamed": 1, "visible": True} -#unit of measurement for blood pressure and heart rate on pop up -o_pop_up_bp_uom = {"container": o_treatmentStack_TreatmentStack, "text": "mmHg", "type": "Label", "unnamed": 1, "visible": True} -o_pop_up_heart_rate_uom = {"container": o_treatmentStack_TreatmentStack, "text": "BPM", "type": "Label", "unnamed": 1, "visible": True} +o_PreTreatmentBase_Indicators = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "type": "StepBullet", "unnamed": 1, "visible": True} #systolic, diastolic and heart rate input field o_pop_up_systolic_input_field = {"container": o_treatmentStack_TreatmentStack, "echoMode": 0, "id": "_input", "type": "TextInput", "unnamed": 1, "visible": True} o_pop_up_diastolic_input_field = {"container": o_treatmentStack_TreatmentStack, "echoMode": 0, "id": "_input", "occurrence": 2, "type": "TextInput", "unnamed": 1, "visible": True} o_pop_up_heart_rate_input_field = {"backgroundcolor": "#254670", "container": o_treatmentStack_TreatmentStack, "echoMode": 0, "id": "_input", "occurrence": 3, "type": "TextInput", "unnamed": 1, "visible": True} -o_PreTreatmentBase_input_TextInput_3 = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "echoMode": 0, "id": "_input", "occurrence": 2, "type": "TextInput", "unnamed": 1, "visible": True} -o_PreTreatmentBase_bloodPressureDiastolic_TextEntry = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_bloodPressureDiastolic", "type": "TextEntry", "unnamed": 1, "visible": True} -o_PreTreatmentBase_input_TextInput_4 = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "echoMode": 0, "id": "_input", "occurrence": 3, "type": "TextInput", "unnamed": 1, "visible": True} -o_PreTreatmentBase_heartRate_TextEntry = {"container": o_PreTreatmentConsumblesStack_PreTreatmentBase_TreatmentFlowBase_2, "id": "_heartRate", "type": "TextEntry", "unnamed": 1, "visible": True} - - - - - - - - - - - - - - - Fisheye: Tag 956fd22d63adc5ebecc6320221df8a60ce069a4a refers to a dead (removed) revision in file `tst_case1/test.py'. Fisheye: No comparison available. Pass `N' to diff? Index: tst_pre_treatment_patient_connection/test.py =================================================================== diff -u -r31c9ee5a3c0a5e6a778887935bc42b12578a4693 -r956fd22d63adc5ebecc6320221df8a60ce069a4a --- tst_pre_treatment_patient_connection/test.py (.../test.py) (revision 31c9ee5a3c0a5e6a778887935bc42b12578a4693) +++ tst_pre_treatment_patient_connection/test.py (.../test.py) (revision 956fd22d63adc5ebecc6320221df8a60ce069a4a) @@ -14,54 +14,21 @@ # This test contradicts verification of patient connection screens. # - import names from dialin.ui.hd_simulator import HDSimulator from dialin.ui import utils +from configuration import config, utility from builtins import int as pyInt from builtins import str as pyStr -from configuration import config, utility - + hd_simulator = HDSimulator() - -SYSTOLIC_PRESSSURE_120 = 120 -SYSTOLIC_PRESSSURE_113 = 113 -SYSTOLIC_PRESSSURE_200 = 200 -SYSTOLIC_PRESSSURE_175 = 175 -SYSTOLIC_PRESSSURE_251 = 251 -SYSTOLIC_PRESSSURE_59 = 59 -DIASTOLIC_PRESSSURE_74 = 74 -DIASTOLIC_PRESSSURE_150 = 150 -DIASTOLIC_PRESSSURE_80 = 80 -DIASTOLIC_PRESSSURE_60 = 60 -DIASTOLIC_PRESSSURE_201 = 201 -DIASTOLIC_PRESSSURE_39 = 39 -HEART_RATE_VAL_101 = 101 -HEART_RATE_VAL_60 = 60 -HEART_RATE_VAL_70 = 70 -HEART_RATE_VAL_85 = 85 -HEART_RATE_VAL_181 = 181 -HEART_RATE_VAL_39 = 39 -SYSTOLIC_LOWER_LIMIT = 60 -SYSTOLIC_UPPER_LIMIT = 250 -DIASTOLIC_LOWER_LIMIT = 40 -DIASTOLIC_UPPER_LIMIT = 200 -HEART_RATE_LOWER_LIMIT = 40 -HEART_RATE_UPPER_LIMIT = 180 -DIASTOLIC_TEXT = "diastolic" -SYSTOLIC_TEXT = "systolic" -OUT_OF_RANGE_COLOR = "#c53b33" -IN_RANGE_COLOR = "#fcfcfc" -HEART_RATE_TITLE = "Heart Rate" -BLOOD_PRESSURE_TITLE = "Blood Pressure" -BLOOD_PRESSURE_UNIT = "mmHg" -HEART_RATE_UNIT = "BPM" - PRE_TREATMENT_PATIENT_CONNECTION_MODE = 8 UF_PRE_TREATMENT_STEPS = 5 BP_HR_PRE_TREATMENT_STEPS = 6 +CONNECTION_PRE_TREATMENT_STEPS = 7 + TREATMENT_ULTRAFILTERATION_TESTING_OPTION = { "OPTION_1" : {"uf_maximum" : 800, "uf_minimum" : 0}, "OPTION_2" : {"uf_maximum" : 500, "uf_minimum" : 0}, @@ -72,19 +39,19 @@ "OPTION_7" : {"uf_maximum" : 680, "uf_minimum" : 0}, "OPTION_8" : {"uf_maximum" : 1500, "uf_minimum" : 0}, "OPTION_9" : {"uf_maximum" : 390, "uf_minimum" : 0}, - "OPTION_10" : {"uf_maximum" : 800, "uf_minimum" : 0} + "OPTION_10" : {"uf_maximum" : 800, "uf_minimum" : 0}, + "OPTION_11" : {"uf_maximum" : 1000, "uf_minimum" : 0}, + "OPTION_12" : {"uf_maximum" : 1250, "uf_minimum" : 0}, } - - def test_rejection_message_patient_connection(accept_status): """ verification of rejection messages during patient connection. @param accept_status: (int) boolean accept/reject response @return: none """ - test.startSection("verification of rejection messages on saline bolus") + test.startSection("verification of rejection messages on patient connection") for rejection in range(1, config.NUM_OF_REQUEST_REJECT_REASONS): hd_simulator.cmd_send_uf_treatment_response(accepted = accept_status, reason = rejection, volume = config.UF_VALID_RANGE) rejection_message = waitForObject(names.o_PreTreatmentUltrafiltration_NotificationBar_NotificationBar) @@ -95,15 +62,15 @@ def keypad_input(key_value): """ - Method to enter values using applicatio UI keyboard + Method to enter values using application UI keyboard @param key_value: (str) User expected value """ if key_value is not None: names.o_keypad_input["text"] = key_value return names.o_keypad_input else: test.log("Invalid text for object.") - names.o_keypad_input["text"] = "Q" + names.o_keypad_input["text"] = None def enter_keypad_value(entry): @@ -147,7 +114,7 @@ test.verify(waitForObjectExists(names.o_PreTreatmentBase_bloodPressureSystolic_TextEntry).enabled, "systolic combo box should be enabled.") test.compare(waitForObjectExists(names.o_PreTreatmentBase_bloodPressureSystolic_TextEntry).text, str(sys_val), "systolic value should be : "+str(sys_val)) - verify_color_of_entry(entry = sys_val, vital_parameter = SYSTOLIC_TEXT, input_field = waitForObject(names.o_PreTreatmentBase_input_TextInput_2)) + verify_color_of_entry(entry = sys_val, vital_parameter = config.SYSTOLIC_TEXT, input_field = waitForObject(names.o_PreTreatmentBase_input_TextInput_2)) mouseClick(waitForObject(names.o_PreTreatmentBase_input_TextInput_3)) @@ -156,7 +123,7 @@ test.verify(waitForObjectExists(names.o_PreTreatmentBase_bloodPressureDiastolic_TextEntry).enabled, "diastolic value should be enabled.") test.compare(waitForObjectExists(names.o_PreTreatmentBase_bloodPressureDiastolic_TextEntry).text, str(dia_val), "diastolic value should be : "+str(dia_val)) - verify_color_of_entry(entry = dia_val, vital_parameter = DIASTOLIC_TEXT, input_field = waitForObject(names.o_PreTreatmentBase_input_TextInput_3)) + verify_color_of_entry(entry = dia_val, vital_parameter = config.DIASTOLIC_TEXT, input_field = waitForObject(names.o_PreTreatmentBase_input_TextInput_3)) mouseClick(waitForObject(names.o_PreTreatmentBase_input_TextInput_4)) @@ -165,7 +132,7 @@ test.verify(waitForObjectExists(names.o_PreTreatmentBase_heartRate_TextEntry).enabled, "diastolic value should be enabled.") test.compare(waitForObjectExists(names.o_PreTreatmentBase_heartRate_TextEntry).text, str(heart_rate), "diastolic value should be : "+str(dia_val)) - verify_color_of_entry(entry = heart_rate, vital_parameter = HEART_RATE_TITLE, input_field = waitForObject(names.o_PreTreatmentBase_input_TextInput_4)) + verify_color_of_entry(entry = heart_rate, vital_parameter = config.HEART_RATE_TITLE, input_field = waitForObject(names.o_PreTreatmentBase_input_TextInput_4)) test.endSection() @@ -180,62 +147,49 @@ test.startSection("Verify the color of {} value {}".format(vital_parameter, entry)) input_field_color = input_field.color.name entry = pyInt(entry) - if vital_parameter is SYSTOLIC_TEXT: - if (entry < SYSTOLIC_LOWER_LIMIT) or (entry > SYSTOLIC_UPPER_LIMIT): - test.compare(input_field_color, OUT_OF_RANGE_COLOR, "systolic value {} is out of range, systolic value should be in range of {} and {}".format(entry, SYSTOLIC_LOWER_LIMIT, SYSTOLIC_UPPER_LIMIT)) - elif (entry >= SYSTOLIC_LOWER_LIMIT) and (entry <= SYSTOLIC_UPPER_LIMIT): - test.compare(input_field_color, IN_RANGE_COLOR, "systolic value {} is in range of {} and {}".format(entry, SYSTOLIC_LOWER_LIMIT, SYSTOLIC_UPPER_LIMIT)) - elif vital_parameter is DIASTOLIC_TEXT: - if (entry < DIASTOLIC_LOWER_LIMIT) or (entry > DIASTOLIC_UPPER_LIMIT): - test.compare(input_field_color, OUT_OF_RANGE_COLOR, "diastolic value {} is out of range, diastolic value should be in range of {} and {}".format(entry, DIASTOLIC_LOWER_LIMIT, DIASTOLIC_UPPER_LIMIT)) - elif (entry >= DIASTOLIC_LOWER_LIMIT) and (entry <= DIASTOLIC_UPPER_LIMIT): - test.compare(input_field_color, IN_RANGE_COLOR, "diastolic value {} is in range of {} and {}".format(entry, DIASTOLIC_LOWER_LIMIT, DIASTOLIC_UPPER_LIMIT)) - elif vital_parameter is HEART_RATE_TITLE: - if (entry < HEART_RATE_LOWER_LIMIT) or (entry > HEART_RATE_UPPER_LIMIT): - test.compare(input_field_color, OUT_OF_RANGE_COLOR, "Heart Rate value {} is out of range, Heart Rate value should be in range of {} and {}".format(entry, HEART_RATE_LOWER_LIMIT, HEART_RATE_UPPER_LIMIT)) - elif (entry >= HEART_RATE_LOWER_LIMIT) and (entry <= HEART_RATE_UPPER_LIMIT): - test.compare(input_field_color,IN_RANGE_COLOR, "Heart Rate value {} is in range of {} and {}".format(entry, HEART_RATE_LOWER_LIMIT, HEART_RATE_UPPER_LIMIT)) + if vital_parameter is config.SYSTOLIC_TEXT: + if (entry < config.SYSTOLIC_LOWER_LIMIT) or (entry > config.SYSTOLIC_UPPER_LIMIT): + test.compare(input_field_color, config.OUT_OF_RANGE_COLOR, "systolic value {} is out of range, systolic value should be in range of {} and {}".format(entry, config.SYSTOLIC_LOWER_LIMIT, config.SYSTOLIC_UPPER_LIMIT)) + elif (entry >= config.SYSTOLIC_LOWER_LIMIT) and (entry <= config.SYSTOLIC_UPPER_LIMIT): + test.compare(input_field_color, config.IN_RANGE_COLOR, "systolic value {} is in range of {} and {}".format(entry, config.SYSTOLIC_LOWER_LIMIT, config.SYSTOLIC_UPPER_LIMIT)) + elif vital_parameter is config.DIASTOLIC_TEXT: + if (entry < config.DIASTOLIC_LOWER_LIMIT) or (entry > config.DIASTOLIC_UPPER_LIMIT): + test.compare(input_field_color, config.OUT_OF_RANGE_COLOR, "diastolic value {} is out of range, diastolic value should be in range of {} and {}".format(entry, config.DIASTOLIC_LOWER_LIMIT, config.DIASTOLIC_UPPER_LIMIT)) + elif (entry >= config.DIASTOLIC_LOWER_LIMIT) and (entry <= config.DIASTOLIC_UPPER_LIMIT): + test.compare(input_field_color, config.IN_RANGE_COLOR, "diastolic value {} is in range of {} and {}".format(entry, config.DIASTOLIC_LOWER_LIMIT, config.DIASTOLIC_UPPER_LIMIT)) + elif vital_parameter is config.HEART_RATE_TITLE: + if (entry < config.HEART_RATE_LOWER_LIMIT) or (entry > config.HEART_RATE_UPPER_LIMIT): + test.compare(input_field_color, config.OUT_OF_RANGE_COLOR, "Heart Rate value {} is out of range, Heart Rate value should be in range of {} and {}".format(entry, config.HEART_RATE_LOWER_LIMIT, config.HEART_RATE_UPPER_LIMIT)) + elif (entry >= config.HEART_RATE_LOWER_LIMIT) and (entry <= config.HEART_RATE_UPPER_LIMIT): + 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 verify_entered_value_in_main_treatment_screen(value, vital, save): + +def test_patient_connection_instruction_screen(screen_indicator): """ - method to verify the user entered value in main-treatment screen - @param value: (int) user user entered value - @param vital - (str) parameter name under which user is entering value (sys/dia/heart rate) - @param input_field - (obj) object of input field + verification of patient connection instruction screen + @param slider_value: (int) value of the slider to set. @return N/A """ - test.startSection("Verify the user entered {} value {} in main-treatment screen".format(vital, value)) - if save: - input_field = waitForObject(vitals_reading_obj(value)) - entered_value = input_field.text - value = str(value) - test.compare(str(entered_value), value, - "Expected {} value: {} should be equal to Actual {} value: {}".format(vital, value, vital, entered_value)) - elif (save is False): - if object.exists(vitals_reading_obj(value)) is False: - test.log("Entered is not saved and is not updated in main-treatment screen") - - test.endSection() + test.startSection("verification of instruction screen -> " + str(screen_indicator+1)) + #Forward navigation of tutorial pages + for instruction_screen in range(screen_indicator): + mouseClick(waitForObject(names.o_PreTreatmentBase_rightImage_Image)) - -def test_patient_connection_instruction_screen(screen_indicator): - - - test.compare(str(waitForObjectExists(names.o_PreTreatmentBase_Patient_Connection_Text).text, config.PATIENT_CONNECTION_TEXT, "Patient connection text should be {msg}".format(msg=config.PATIENT_CONNECTION_TEXT))) - test.compare(str(waitForObjectExists(names.o_swipeview_tutorial_text).enabled, True, "Tutorial text should be enabled.")) - test.compare(str(waitForObjectExists(names.o_swipeview_tutorial_text).text, config.TUTORIAL_TEXT[screen_indicator], "Tutorial text should be {msg}".format(msg=config.TUTORIAL_TEXT[screen_indicator]))) - #verify_bullet_indicators(screen_indicator) - if screen_indicator == 4: - - test.compare(str(waitForObjectExists(names.o_PreTreatmentBase_Continue_Text).enabled, False, "continue button should be disabled")) + test.compare(waitForObjectExists(names.o_PreTreatmentBase_Patient_Connection_Text).text, config.PATIENT_CONNECTION_TEXT, "Patient connection text should be {msg}".format(msg=config.PATIENT_CONNECTION_TEXT)) + test.compare(waitForObjectExists(names.o_swipeview_tutorial_text).enabled, True, "Tutorial text should be enabled.") + #FIXME : Tutorial texts have bug. avoiding verification till fix + utility.training_screen_indicator_verification(screen_indicator, names.o_PreTreatmentBase_Indicators) + if screen_indicator == 3: + test.verify(waitForObjectExists(names.o_PreTreatmentBase_Continue_Text).enabled, "continue button should be disabled") else: - test.compare(str(waitForObjectExists(names.o_PreTreatmentBase_Continue_Text).enabled, True, "continue button should be disabled")) + test.verify(not waitForObjectExists(names.o_PreTreatmentBase_Continue_Text).enabled, "continue button should be disabled") - - for instruction_screen in (screen_indicator): + #Reverse navigation of tutorial pages + for instruction_screen in range(screen_indicator): mouseClick(waitForObject(names.o_PreTreatmentBase_leftImage_Image)) + + test.endSection() def drag_and_drop_ultrafilteration_slider(slider_value = 0, maximum_ultrafilteration = 0): @@ -247,8 +201,8 @@ slider_width = slider_buffer + config.UF_MINIMUM_SLIDER_WIDTH mouseClick(waitForObject(names.o_PreTreatmentUltrafiltration_volumeSlider_Slider), slider_width , 3, Qt.LeftButton) - test.compare(waitForObject(names.o_PreTreatmentUltrafiltration_volumeSlider_Slider).value , (slider_value/10), "user adjusted slider value to -> "+ str(slider_value/10)) - + utils.waitForGUI(0.1) + test.compare(waitForObject(names.o_PreTreatmentUltrafiltration_volumeSlider_Slider).value , (slider_value/10), "user adjusted slider value to -> "+ str(slider_value)) def navigate_patient_connection(pre_treatment_sub_mode): @@ -269,7 +223,7 @@ @param ultrafilteration_range: (dictionary) uf minimum and uf maximum volume. @return: N/A """ - test.startSection("verification of ultrafilteration slider value ->" +str(ultrafilteration_range)) + test.startSection("verification of ultrafilteration slider hacing" +str(ultrafilteration_range)+ " adjustment") min_uf = ultrafilteration_range["uf_minimum"] max_uf = ultrafilteration_range["uf_maximum"] hd_simulator.cmd_set_treatment_parameter_ranges(0, 100, 0, max_uf, 0, 0) @@ -284,13 +238,6 @@ test.endSection() -def verify_bullet_indicators(indicator): - test.verify((names.o_PreTreatmentBase_headStepBullet_StepBullet).visible, "Verify headstep bullet") - test.verify((names.o_PreTreatmentBase_indicator_StepIndicator).enable, "Verified indicator") - - - - def test_vital_entries_on_patient_connection(): """ Method to verify BP/HR section from patient connection. @@ -301,19 +248,42 @@ test.compare(waitForObjectExists(names.o_PreTreatmentBase_BP_HR_Text).text, config.BP_HR_TEXT, "BP/HR title text should be :" + str(config.BP_HR_TEXT)) test.compare(waitForObjectExists(names.o_PreTreatmentbase_skip_text).text, config.SKIP_TEXT, "BP/HR button text should be " + str(config.SKIP_TEXT)) test.verify(waitForObjectExists(names.o_PreTreatmentbase_skip_text).enabled, "BP/HR button should enabled.") - test.compare(waitForObjectExists(names.o_PreTreatmentBase_Blood_Pressure_Text).text, config.BP_TEXT, "BP title text should be :" + str(config.BP_TEXT)) - test.compare(waitForObjectExists(names.o_PreTreatmentBase_mmHg_Label).text, config.MMHG_TEXT, "BP unit should be " + str(config.MMHG_TEXT)) - test.compare(waitForObjectExists(names.o_PreTreatmentBase_Heart_Rate_Text).text, config.HR_TEXT, "HR text should be :" + str(config.HR_TEXT)) - test.compare(waitForObjectExists(names.o_PreTreatmentBase_BPM_Label).text, config.BPM_LABEL, "BP unit should be " + str(config.BPM_LABEL)) + test.compare(waitForObjectExists(names.o_PreTreatmentBase_Blood_Pressure_Text).text, config.BLOOD_PRESSURE_TITLE, "BP title text should be :" + str(config.BLOOD_PRESSURE_TITLE)) + test.compare(waitForObjectExists(names.o_PreTreatmentBase_mmHg_Label).text, config.BLOOD_PRESSURE_UNIT, "BP unit should be " + str(config.BLOOD_PRESSURE_UNIT)) + test.compare(waitForObjectExists(names.o_PreTreatmentBase_Heart_Rate_Text).text, config.HEART_RATE_TITLE, "HR text should be :" + str(config.HEART_RATE_TITLE)) + test.compare(waitForObjectExists(names.o_PreTreatmentBase_BPM_Label).text, config.HEART_RATE_UNIT, "BP unit should be " + str(config.HEART_RATE_UNIT)) - verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=SYSTOLIC_PRESSSURE_120, dia_val=DIASTOLIC_PRESSSURE_80, heart_rate=HEART_RATE_VAL_101) - verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=SYSTOLIC_PRESSSURE_113, dia_val=DIASTOLIC_PRESSSURE_60, heart_rate=HEART_RATE_VAL_60) - verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=SYSTOLIC_PRESSSURE_200, dia_val=DIASTOLIC_PRESSSURE_150, heart_rate=HEART_RATE_VAL_70) - verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=SYSTOLIC_PRESSSURE_175, dia_val=DIASTOLIC_PRESSSURE_74, heart_rate=HEART_RATE_VAL_85) - verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=SYSTOLIC_PRESSSURE_59, dia_val=DIASTOLIC_PRESSSURE_39, heart_rate=HEART_RATE_VAL_39) - verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=SYSTOLIC_PRESSSURE_251, dia_val=DIASTOLIC_PRESSSURE_201, heart_rate=HEART_RATE_VAL_181) + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_120, dia_val=config.DIASTOLIC_PRESSSURE_80, heart_rate=config.HEART_RATE_VAL_101) + test.verify(waitForObjectExists(names.o_PreTreatmentBase_CONFIRM_Text_2).enabled, "Confirm button is enabled.") + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_113, dia_val=config.DIASTOLIC_PRESSSURE_60, heart_rate=config.HEART_RATE_VAL_60) + test.verify(waitForObjectExists(names.o_PreTreatmentBase_CONFIRM_Text_2).enabled, "Confirm button is enabled.") + + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_15, dia_val=config.DIASTOLIC_PRESSSURE_85, heart_rate=config.HEART_RATE_VAL_100) + test.verify(waitForObjectExists(names.o_PreTreatmentbase_skip_text).enabled, "skip button is enabled.") + + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_150, dia_val=config.DIASTOLIC_PRESSSURE_25, heart_rate=config.HEART_RATE_VAL_110) + test.verify(waitForObjectExists(names.o_PreTreatmentbase_skip_text).enabled, "skip button is enabled.") + + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_200, dia_val=config.DIASTOLIC_PRESSSURE_200, heart_rate=config.HEART_RATE_VAL_200) + test.verify(waitForObjectExists(names.o_PreTreatmentbase_skip_text).enabled, "skip button is enabled.") + + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_175, dia_val=config.DIASTOLIC_PRESSSURE_74, heart_rate=config.HEART_RATE_VAL_85) + test.verify(waitForObjectExists(names.o_PreTreatmentBase_CONFIRM_Text_2).enabled, "Confirm button is enabled.") + + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_59, dia_val=config.DIASTOLIC_PRESSSURE_39, heart_rate=config.HEART_RATE_VAL_39) + test.verify(waitForObjectExists(names.o_PreTreatmentbase_skip_text).enabled, "skip button is enabled.") + + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_251, dia_val=config.DIASTOLIC_PRESSSURE_201, heart_rate=config.HEART_RATE_VAL_181) + test.verify(waitForObjectExists(names.o_PreTreatmentbase_skip_text).enabled, "skip button is enabled.") + mouseClick(waitForObject(names.o_PreTreatmentbase_skip_text)) + test.compare(waitForObjectExists(names.o_swipeview_tutorial_text).enabled, True, "Tutorial text should be enabled.") + mouseClick(waitForObject(names.o_PreTreatmentBase_BACK_Text)) + + verify_entered_valid_vital_entries_in_main_treatment_screen(sys_val=config.SYSTOLIC_PRESSSURE_200, dia_val=config.DIASTOLIC_PRESSSURE_150, heart_rate=config.HEART_RATE_VAL_70) + mouseClick(waitForObject(names.o_PreTreatmentBase_CONFIRM_Text_2)) + test.endSection() @@ -331,7 +301,7 @@ #verification of indicators from patient connection section utility.page_step_indicator_verification(UF_PRE_TREATMENT_STEPS, names.o_PreTreatmentUltrafiltration_Indicators) - """ + #verification of uf slider based on edge condition. start_test_treatment_ultrafilteration(TREATMENT_ULTRAFILTERATION_TESTING_OPTION["OPTION_1"]) start_test_treatment_ultrafilteration(TREATMENT_ULTRAFILTERATION_TESTING_OPTION["OPTION_2"]) @@ -343,7 +313,7 @@ start_test_treatment_ultrafilteration(TREATMENT_ULTRAFILTERATION_TESTING_OPTION["OPTION_8"]) start_test_treatment_ultrafilteration(TREATMENT_ULTRAFILTERATION_TESTING_OPTION["OPTION_9"]) start_test_treatment_ultrafilteration(TREATMENT_ULTRAFILTERATION_TESTING_OPTION["OPTION_10"]) - """ + #verification of rejection message test_rejection_message_patient_connection(accept_status = False) @@ -356,13 +326,14 @@ #verification of BP/HR entries based on edge condition test_vital_entries_on_patient_connection() + #verification of indicators from Connection section + utility.page_step_indicator_verification(CONNECTION_PRE_TREATMENT_STEPS, names.o_PreTreatmentBase_nextStepsBullet_StepBullet) + + #verification of tutorial section + test_patient_connection_instruction_screen(screen_indicator = 0) test_patient_connection_instruction_screen(screen_indicator = 1) test_patient_connection_instruction_screen(screen_indicator = 2) test_patient_connection_instruction_screen(screen_indicator = 3) - test_patient_connection_instruction_screen(screen_indicator = 4) - snooze(10) - - utils.tstDone()