Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rb4c9bea230cee577383592686ae7bb79c9716375 -rf027e8ea656a56912e18c4879eeae24f03c411a7 --- shared/scripts/configuration/utility.py (.../utility.py) (revision b4c9bea230cee577383592686ae7bb79c9716375) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision f027e8ea656a56912e18c4879eeae24f03c411a7) @@ -20,6 +20,7 @@ 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() @@ -81,7 +82,7 @@ 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_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, @@ -162,19 +163,18 @@ test.endSection() -def page_step_indicator_verification(screen_obj, pre_treatment_step): +def verify_page_step_indicator(screen_obj, pre_treatment_step): """ Method to verify the Page Step indicators [the object on top of the screen which indicates the steps passed, current, remained] @param pre_treatment_step : indicates the Current pre-treatment step """ - test.startSection("verification of page step indicators") for page in range(len(config.PRE_TREATMENT_SCREENS)): bullet_children = object.children(squish.waitForObjectExists(get_bullet_object(screen_obj, page))) bullet_circle_color = bullet_children[0].color.name bullet_border_color = bullet_children[0].border.color.name step_title = squish.waitForObjectExists(get_text_object(screen_obj, config.PRE_TREATMENT_SCREENS[page])) - + if page < pre_treatment_step: test.log("To verify the step indicator of the completed pre-treatment screen " + config.PRE_TREATMENT_SCREENS[page]) test.verify(squish.waitForObjectExists(get_bullet_object(screen_obj, page)).complete) @@ -211,7 +211,7 @@ names.o_text_object["text"] = txt return names.o_text_object - + def get_bullet_object(screen_obj, num): """ To obtain a bullet object based on occurrence provided.