Index: suite_leahi/tst_headerbar_prescription/test.py =================================================================== diff -u -r52a9613285f4930aa71dc8bce55f50409b73e50f -r4f9e56b35635368ce440e2cfffdaba7631b5d120 --- suite_leahi/tst_headerbar_prescription/test.py (.../test.py) (revision 52a9613285f4930aa71dc8bce55f50409b73e50f) +++ suite_leahi/tst_headerbar_prescription/test.py (.../test.py) (revision 4f9e56b35635368ce440e2cfffdaba7631b5d120) @@ -25,14 +25,6 @@ td = TD_Messaging() -DIALYZER_TYPE = ["Diacap Pro 13H","Diacap Pro 16H", "Diacap Pro 19H", "Optiflux F160NRe", "Optiflux F180NRe", "Optiflux F200NRe","Optiflux F250NRe"] -ACID_CONCENTRATE = ["2.0 K, 2.00 Ca, 1 Mg", "1.0 K, 2.50 Ca, 1 Mg","2.0 K, 2.50 Ca, 1 Mg","3.0 K, 2.50 Ca, 1 Mg"] - -VITALS = ["OFF","5","10","15","20","30","60"] -BICARBONATE = ["Sodium Bicarbonate"] -VALIDATE = "VALIDATE" -CONFIRM = "CONFIRM" - def verify_create_treatment_parameters(): test.startSection("Create treatment parameters") mouseClick(waitForObject(names.o_pretreatmentPatientIDEntry_TextEntry)) @@ -43,12 +35,12 @@ utility.set_value_based_on_target(names.o_heparinBolusVolumeControl_ValueAdjuster, 0.2) utility.set_value_based_on_target(names.o_heparinDispensingRateControl_ValueAdjuster, 0.2) utility.set_value_based_on_target(names.o_heparinStopTimeControl_ValueAdjuster, 60) - utility.select_different_dropdown(names.o_acidConcentrateComboBox_BaseComboBox,ACID_CONCENTRATE,2) + utility.select_different_dropdown(names.o_acidConcentrateComboBox_BaseComboBox,config.ACID_CONCENTRATE,2) utility.set_value_based_on_target(names.o_dialysateTemperatureControl_ValueAdjuster,37.0) - utility.select_different_dropdown(names.o_dialyzerTypeComboBox_BaseComboBox,DIALYZER_TYPE,2) + utility.select_different_dropdown(names.o_dialyzerTypeComboBox_BaseComboBox,config.DIALYZER_TYPE,2) utility.set_value_based_on_target(names.o_salineBolusVolumeControl_ValueAdjuster, 100) - utility.select_different_dropdown(names.o_bpMeasurementIntervalControl_BaseComboBox,VITALS,1) - utility.select_different_dropdown(names.o_bicarbonateConcentrateComboBox_BaseComboBox,BICARBONATE,0) + utility.set_value_based_on_target(names.o_bpMeasurementIntervalControl_ValueAdjusterCustom,5.0) + utility.select_different_dropdown(names.o_bicarbonateConcentrateComboBox_BaseComboBox,config.BICARBONATE,0) mouseClick(waitForObject(names.o_confirmButton_ConfirmButton)) td.td_Treatment_Parameters_Validation( vAccepted = 1, vBloodFlowRateRejectReason = 0, @@ -76,7 +68,7 @@ #Check the confirm button text and perform the mouse click confirmButton = waitForObject(names.o_confirmButton_ConfirmButton) confirmText = utility.findObjectById(confirmButton, "_text") - test.compare(confirmText.text, CONFIRM, "Button text should be"+str(CONFIRM)) + test.compare(confirmText.text, config.CONFIRM, "Button text should be"+str(config.CONFIRM)) test.compare(confirmButton.enabled, True, "Confirm button is enabled") mouseClick(confirmText) test.compare(waitForObject(names.o_PreTreatmentBase_instructionView_InstructionView,2000).visible, True, "After click on confirm button Popup is closed") @@ -85,7 +77,7 @@ def main(): utils.tstStart(__file__) - startApplication(config.AUT_NAME + " -q") + startApplication(utility.aut("-q")) td.td_operation_mode(TDOpModes.MODE_STAN.value) # verify Standby screen