Index: tst_main_treatment_pressure/test.py =================================================================== diff -u -r111198cf4344de0ebf8e1bbaf53a0dfc0bc36415 -r84c1284ecff1f30169d50afb688be18934eb8506 --- tst_main_treatment_pressure/test.py (.../test.py) (revision 111198cf4344de0ebf8e1bbaf53a0dfc0bc36415) +++ tst_main_treatment_pressure/test.py (.../test.py) (revision 84c1284ecff1f30169d50afb688be18934eb8506) @@ -42,7 +42,8 @@ ARTERIAL_HIGH_SLIDER_VALS = [-100, -90, -110, -250, 0] VENOUS_HIGH_SLIDER_VALS = [500, 550, 200, 600] VENOUS_LOW_SLIDER_VALS = [500, 200, 50, 20] - +REJECTED = 1 +ACCEPTED = 0 hd_simulator = HDSimulator() def verify_arterial_and_venous_value_in_main_treatment_screen(accepted, art_low, art_high, ven_low, ven_high): @@ -81,13 +82,13 @@ "Venous high value should not be '{}'".format(ven_high)) else: if object.exists(pressure_text_obj(art_low)): - test.fail("{} should not exists".format(art_low)) + test.fail("Arterial value {} should not exists".format(art_low)) if object.exists(pressure_text_obj(art_high)): - test.fail("{} should not exists".format(art_high)) + test.fail("Arterial value {} should not exists".format(art_high)) if object.exists(pressure_text_obj(ven_low)): - test.fail("{} should not exists".format(ven_low)) + test.fail("Venous value {} should not exists".format(ven_low)) if object.exists(pressure_text_obj(ven_high)): - test.fail("{} should not exists".format(ven_high)) + test.fail("Venous value {} should not exists".format(ven_high)) test.endSection() @@ -412,7 +413,7 @@ "Venous high value should be '{}'".format(ven_high)) else: if object.exists(pressure_text_obj(art_low)): - test.fail("{art_low} should not exists".format(art_low)) + test.fail("{} should not exists".format(art_low)) if object.exists(pressure_text_obj(art_high)): test.fail("{} should not exists".format(art_high)) if object.exists(pressure_text_obj(ven_low)): @@ -642,29 +643,29 @@ treatment_end_state=0, treatment_stop_state=0, dialysis_state=0) verify_the_constants() - + set_arterial_low_and_high_limits_using_slider() set_venous_low_and_high_limits_using_slider() - + set_arterial_pressure_and_verify_the_color() set_venous_pressure_and_verify_the_color() + - 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_adjusted_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_adjusted_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=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_adjusted_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, @@ -674,14 +675,14 @@ 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) - 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) +# 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) +# +# 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) - 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) - utils.tstDone()