Index: tst_main_treatment_pressure/test.py =================================================================== diff -u -r590cb19e71b46403f5d6f7e45c6b0d09c9bb5e9e -r2df494b6be7fb27cc10bdb5cc0d4325b0d433daf --- tst_main_treatment_pressure/test.py (.../test.py) (revision 590cb19e71b46403f5d6f7e45c6b0d09c9bb5e9e) +++ tst_main_treatment_pressure/test.py (.../test.py) (revision 2df494b6be7fb27cc10bdb5cc0d4325b0d433daf) @@ -13,12 +13,30 @@ import names -from builtins import int from configuration.config import * from configuration.utility import * from dialin.ui import utils from dialin.ui.hd_simulator import HDSimulator + +ART_LOW_VAL_MINUS_120 = -120 +ART_HIGH_VAL_160 = 160 +ART_LOW_VAL_MINUS_200 = -200 +ART_HIGH_VAL_100 = 100 +ART_LOW_VAL_MINUS_30 = -30 +ART_HIGH_VAL_70 = 70 +ART_LOW_VAL_MINUS_80 = -80 +ART_HIGH_VAL_175 = 175 +VENOUS_LOW_VAL_MINUS_200 = -200 +VENOUS_HIGH_VAL_150 = 150 +VENOUS_LOW_VAL_MINUS_310 = -310 +VENOUS_HIGH_VAL_170 = 170 +VENOUS_LOW_VAL_MINUS_390 = -390 +VENOUS_HIGH_VAL_300 = 300 +VENOUS_LOW_VAL_110 = 110 +VENOUS_HIGH_VAL_250 = 250 + + hd = HDSimulator() def verify_arterial_and_venous_value_in_main_treatment_screen(accepted, @@ -69,7 +87,7 @@ if object.exists(names.pressure_text_obj(text=ven_low)): test.fail("{ven_low} should not exists".format(ven_low=ven_low)) if object.exists(names.pressure_text_obj(text=ven_high)): - test.fail("{ven_high} should not exists".format(ven_low=ven_high)) + test.fail("{ven_high} should not exists".format(ven_high=ven_high)) test.endSection() @@ -230,13 +248,13 @@ art_low=art_low, art_high= art_high, ven_low=ven_low, ven_high=ven_high) verify_arterial_and_venous_value_in_main_treatment_screen(accepted=accepted, - reason=reason,art_low=art_low, art_high= art_high, - ven_low=ven_low, ven_high=ven_high) + art_low=art_low, art_high= art_high, + ven_low=ven_low, ven_high=ven_high) utils.waitForGUI(delay_s=3) open_pressure_pop_up() verify_arterial_and_venous_value_on_pressure_pop_up(accepted=accepted, - reason=reason,art_low=art_low, art_high= art_high, + reason_id=reason, art_low=art_low, art_high= art_high, ven_low=ven_low, ven_high=ven_high) test.endSection() @@ -251,19 +269,22 @@ rinseback_state=0, recirculate_state=0, blood_prime_state=0, treatment_end_state=0, treatment_stop_state=0) + verify_pressures_on_treatment_and_pop_up_screen(accepted=ACCEPTED, reason=0, + art_low=ART_LOW_VAL_MINUS_120, art_high=ART_HIGH_VAL_160, + ven_low=VENOUS_LOW_VAL_MINUS_310, ven_high=VENOUS_HIGH_VAL_170) + verify_pressures_on_treatment_and_pop_up_screen(accepted=REJECTED, reason=39, + art_low=ART_LOW_VAL_MINUS_200, art_high=ART_HIGH_VAL_70, + ven_low=VENOUS_LOW_VAL_MINUS_200, ven_high=VENOUS_HIGH_VAL_150) + verify_pressures_on_treatment_and_pop_up_screen(accepted=ACCEPTED, reason=0, + art_low=ART_LOW_VAL_MINUS_80, art_high=ART_HIGH_VAL_175, + ven_low=VENOUS_LOW_VAL_110, ven_high=VENOUS_HIGH_VAL_250) - set_arterial_and_venous_pressure(accepted=REJECTED, reason=2, - art_low=-120, art_high=120, ven_low=-100, - ven_high=200) - verify_arterial_and_venous_value_in_main_treatment_screen(accepted=REJECTED, - art_low=-120, art_high=120, ven_low=-100, ven_high=200) + verify_pressures_on_treatment_and_pop_up_screen(accepted=REJECTED, reason=21, + art_low=ART_LOW_VAL_MINUS_30, art_high=ART_HIGH_VAL_100, + ven_low=VENOUS_LOW_VAL_MINUS_390, ven_high=VENOUS_HIGH_VAL_300) - snooze(5) - - open_pressure_pop_up() - verify_arterial_and_venous_value_on_pressure_pop_up(accepted=REJECTED,reason_id=22, - art_low=-120, art_high=120, ven_low=-100, ven_high=200) - + utils.tstDone() +