Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r59650aded821ddd00b4e431cb6a44a11484dd23d -r272eaf16943c4cc8baf0fabfac3a63390ec735bc --- shared/scripts/configuration/utility.py (.../utility.py) (revision 59650aded821ddd00b4e431cb6a44a11484dd23d) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 272eaf16943c4cc8baf0fabfac3a63390ec735bc) @@ -19,44 +19,6 @@ from builtins import int as pyInt -def start_application(app_name): - """ - Function to start application and verify application status [running] - If application does not start or running status is false, test stops - Argument: - @param app_name : (str) - Name of the application - @param app_executable : (str) - Actual application - @return: handle for the application if the application is in running state, - or error (exist the application) - """ - counter = 0 - while True: - try: - counter += 1 - test.log("Starting {}".format(app_name)) - squish.startApplication(app_name) - if counter == 1: - test.log("Application launched at the "+str(counter)+" st try.") - elif counter == 2: - test.log("Application launched at the "+str(counter)+" nd try.") - elif counter == 3: - test.log("Application launched at the "+str(counter)+" rd try.") - else: - test.log("Application launched at the "+str(counter)+" th try.") - break - except RuntimeError: - if counter == 1: - test.log("Application failed to launch after "+str(counter)+" try - Please refer logs") - elif counter == 20: - test.log("Exiting after "+str(counter)+ " tries..") - sys.exit(1) - else: - test.log("Application failed to launch after "+str(counter)+ " tries - Please refer logs") - except: - logErrorDetails("Failed to start the application") - sys.exit(1) - - def check_if_object_is_within_the_container(obj=None, container=None): """ check if an object is inside a container Index: tst_main_treatment_pressure/test.py =================================================================== diff -u -r60ba8cccd919c4e31adccc255ae1f3f13bebbb01 -r272eaf16943c4cc8baf0fabfac3a63390ec735bc --- tst_main_treatment_pressure/test.py (.../test.py) (revision 60ba8cccd919c4e31adccc255ae1f3f13bebbb01) +++ tst_main_treatment_pressure/test.py (.../test.py) (revision 272eaf16943c4cc8baf0fabfac3a63390ec735bc) @@ -607,27 +607,27 @@ heparin_state=0, rinseback_state=0, recirculate_state=0, blood_prime_state=0, 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_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) - + 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)