Index: tst_settings_date_and_time/test.py =================================================================== diff -u -ra58d7af64baf37c4bc405ca01052bf066da7b892 -r4e2ca621f8a8106c777c9373d3b5411017ad0708 --- tst_settings_date_and_time/test.py (.../test.py) (revision a58d7af64baf37c4bc405ca01052bf066da7b892) +++ tst_settings_date_and_time/test.py (.../test.py) (revision 4e2ca621f8a8106c777c9373d3b5411017ad0708) @@ -51,14 +51,17 @@ names.o_service_home_text_obj["text"] = text return names.o_service_home_text_obj + def settings_text_obj(text): names.o_set_date_and_time_text_obj["text"] = text return names.o_set_date_and_time_text_obj + def date_time_screen_text_obj(text): names.o_settings_date_and_time_text["text"] = text return names.o_settings_date_and_time_text + def navigate_to_service_screen(): """ Method to navigate to "Service" screen @@ -78,11 +81,12 @@ """ test.startSection("Navigating 'Set Date And Time' screen") utils.waitForGUI(0.5) - mouseClick(waitForObjectExists(names.o_set_date_and_time_text)) + mouseClick(waitForObjectExists(names.o_SettingsHome_mouseArea_MouseArea_2)) set_date_and_time_title = waitForObjectExists(settings_text_obj(SET_DATE_AND_TIME_TEXT)) test.compare(set_date_and_time_title.text, SET_DATE_AND_TIME_TEXT, "{} should be displayed when user is navigated to 'Set Date And Time' screen".format(SET_DATE_AND_TIME_TEXT)) test.endSection() + def verify_back_btn(): """ Method to verify the back button and click @@ -91,9 +95,9 @@ test.compare(str(waitForObjectExists(settings_text_obj(config.BACK_TEXT)).text), config.BACK_TEXT,"'BACK' button text should be {}".format(config.BACK_TEXT)) utils.waitForGUI(0.1) test.compare(waitForObjectExists(settings_text_obj(config.BACK_TEXT)).enabled , True, "'BACK' button should be enabled") - mouseClick(waitForObjectExists(names.o_back_btn)) + mouseClick(waitForObjectExists(names.o_SettingsDateTime_mouseArea_MouseArea_2)) utils.waitForGUI(0.5) - mouseClick(waitForObjectExists(names.o_set_date_and_time_text)) + mouseClick(waitForObjectExists(names.o_SettingsHome_mouseArea_MouseArea_2)) test.endSection() def verify_entered_date_and_time(hour, min, day, month, year, valid_parameter_passed): @@ -230,6 +234,7 @@ test.compare(input_field_color, config.IN_RANGE_COLOR, "Year value {} is in range of {} and {}".format(entry, YEAR_LOWER_LIMIT, YEAR_UPPER_LIMIT)) test.endSection() + def verify_confirm_btn(valid_parameter_passed): """ Method to verify the status of confirm