Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r0cc92d3b75bfb96dc4ecafd760a9ce15e455033b -r5265f8b3b6c85e406b011b9fc9fe71be73d83d8a --- shared/scripts/configuration/utility.py (.../utility.py) (revision 0cc92d3b75bfb96dc4ecafd760a9ce15e455033b) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 5265f8b3b6c85e406b011b9fc9fe71be73d83d8a) @@ -14,11 +14,14 @@ import sys +import time import test import squish from configuration import config from builtins import int as pyInt +from dialin.ui.hd_simulator import HDSimulator +hd_simulator = HDSimulator() def start_application(app_name): """ @@ -108,3 +111,20 @@ 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(5,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): + min_and_sec = time.strftime("%M:%S", time.gmtime(seconds)) + return min_and_sec \ No newline at end of file