Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r0150cf7dd45582ddc64bec281fdccc719f2980af -r5fcc16659c7f67c7ea04663a141273f6c0058fa5 --- shared/scripts/configuration/utility.py (.../utility.py) (revision 0150cf7dd45582ddc64bec281fdccc719f2980af) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 5fcc16659c7f67c7ea04663a141273f6c0058fa5) @@ -69,8 +69,7 @@ squish.mouseWheel(ScreenObj, screenWidth-1000, screenHeight-10, 0, -50, squish.Qt.NoModifier) - raise LookupError("zone object is not in view to the user after " + \ - "trying 100 times") + raise LookupError("zone object is not in view to the user after trying 100 times") def convert_seconds_into_min_and_sec(seconds): @@ -164,29 +163,29 @@ step_title = squish.waitForObjectExists(get_text_object(screen_obj, treatment_screens[page])) if page < treatment_step: - test.log("To verify the step indicator of the completed treatment screen " + treatment_screens[page]) + test.log("To verify the step indicator of the completed treatment screen" + treatment_screens[page]) test.verify(squish.waitForObjectExists(get_bullet_object(screen_obj, page)).complete) test.verify(not squish.waitForObjectExists(get_bullet_object(screen_obj, page)).current) - test.compare(bullet_circle_color, config.COMPLETE_COLOR, " the bullet color must be " + str(config.COMPLETE_COLOR)) - test.compare(bullet_border_color, config.COMPLETE_COLOR," the bullet border color must be " + str(config.COMPLETE_COLOR)) - test.compare(step_title.color.name, config.ENABLED_COLOR, " the text color must be " + str(config.ENABLED_COLOR)) + test.compare(bullet_circle_color, config.COMPLETE_COLOR, "the bullet color must be" + str(config.COMPLETE_COLOR)) + test.compare(bullet_border_color, config.COMPLETE_COLOR,"the bullet border color must be" + str(config.COMPLETE_COLOR)) + test.compare(step_title.color.name, config.ENABLED_COLOR, "the text color must be" + str(config.ENABLED_COLOR)) elif page == treatment_step: test.log("To verify the step indicators of the current treatment screen " + treatment_screens[page]) test.verify(squish.waitForObjectExists(get_bullet_object(screen_obj, page)).current) test.verify(not squish.waitForObjectExists(get_bullet_object(screen_obj, page)).complete) - test.compare(bullet_circle_color,config.CURRENT_COLOR," the bullet color must be " + str(config.CURRENT_COLOR)) - test.compare(bullet_border_color,config.COMPLETE_COLOR, " the bullet border color must be " + str(config.COMPLETE_COLOR)) - test.compare(step_title.color.name,config.ENABLED_COLOR, " the text color must be " + str(config.ENABLED_COLOR)) + test.compare(bullet_circle_color,config.CURRENT_COLOR,"the bullet color must be" + str(config.CURRENT_COLOR)) + test.compare(bullet_border_color,config.COMPLETE_COLOR, "the bullet border color must be" + str(config.COMPLETE_COLOR)) + test.compare(step_title.color.name,config.ENABLED_COLOR, "the text color must be" + str(config.ENABLED_COLOR)) test.verify(step_title.font.bold, " the current text must be in bold") else: - test.log("To verify the step indicators of the remaining treatment screen " + treatment_screens[page]) + test.log("To verify the step indicators of the remaining treatment screen" + treatment_screens[page]) test.verify(not squish.waitForObjectExists(get_bullet_object(screen_obj, page)).current,) test.verify(not squish.waitForObjectExists(get_bullet_object(screen_obj, page)).complete,) - test.compare(step_title.color.name,config.INCOMPLETE_COLOR, " the text color must be " + str(config.INCOMPLETE_COLOR)) - test.compare(bullet_circle_color,config.CURRENT_COLOR," the bullet color must be " + str(config.CURRENT_COLOR)) - test.compare(bullet_border_color,config.INCOMPLETE_COLOR, " the bullet border color must be " + str(config.INCOMPLETE_COLOR)) + test.compare(step_title.color.name,config.INCOMPLETE_COLOR, "the text color must be" + str(config.INCOMPLETE_COLOR)) + test.compare(bullet_circle_color,config.CURRENT_COLOR,"the bullet color must be" + str(config.CURRENT_COLOR)) + test.compare(bullet_border_color,config.INCOMPLETE_COLOR, "the bullet border color must be" + str(config.INCOMPLETE_COLOR)) test.endSection() def get_text_object(screen_obj, txt):