Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rf92b275542e472a43c421d87dffb76af9dd49b26 -r11de8286fb08a96a491dd6b1e8b92953987f76dc --- shared/scripts/configuration/utility.py (.../utility.py) (revision f92b275542e472a43c421d87dffb76af9dd49b26) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 11de8286fb08a96a491dd6b1e8b92953987f76dc) @@ -20,10 +20,6 @@ from configuration.config import * from configuration import config from builtins import int as pyInt -from dialin.common.hd_defs import HDOpModes -from dialin.ui.hd_simulator import HDSimulator - -hd_simulator = HDSimulator() def check_if_object_is_within_the_container(obj=None, container=None): """ @@ -75,18 +71,6 @@ raise LookupError("zone object is not in view to the user after " + \ "trying 100 times") - - -def navigate_to_pretreatment_screen(mode): - """ - Method to navigate to sub mode under pre-treatment screen - @param mode - (int) pre treatment state - """ - hd_simulator.cmd_set_hd_operation_mode_data(HDOpModes.MODE_PRET.value,0) - hd_simulator.cmd_send_pre_treatment_state_data(sub_mode=mode, water_sample_state=0, - consumables_self_test_state=0, no_cartridge_self_test_state=0, - installation_state=0, dry_self_test_state=0, prime_state=0, - recirculate_state=0, patient_connection_state=0) def convert_seconds_into_min_and_sec(seconds): @@ -121,12 +105,14 @@ return time_text.time -def verify_countdown(screen_title, time_out): +def verify_countdown(screen_title, time_out, hd_simulator, dg_simulator): """ Method to verify the count down time in application @param screen_title - (str) current title of the screen @param time_out - (int) time out duration in secs + @Param hd_simulator - Instance of class HDSimulator + @Param dg_simulator - Instance of class DGSimulator """ test.startSection("Verify the count down time in application") for count_down in range(COUNT_DOWN_TIME_100, MINIMUM_COUNTDOWN_TIME-1, -1):