Example #1
0
def test_change_sync_and_build_version(get_current_sync_build_version):
    # getting sync and builds values from config file
    current_sync, current_build = get_current_sync_build_version
    if SYNC3_VERSION in current_sync:
        # change sync3->sync4 and sync_build3->sync_build4
        hmi.change_sync_icon_db(SYNC4_VERSION, SYNC4_BUILD_NAME)
        logging.info("Change mode is successfully done")
        # check that sync3 image isn't recognized
        assert not helpers.get_exist_result(
            sync3_icon.MAIN_PHONE_BUTTON_ACTIVE)
    elif SYNC4_VERSION in current_sync:
        # change sync4->sync3 and sync_build4->sync_build3
        hmi.change_sync_icon_db(SYNC3_VERSION, SYNC3_BUILD_NAME)
        logging.info("Change mode is successfully done")
        # check that sync4 image isn't recognized
        assert not helpers.get_exist_result(
            sync4_icon.MAIN_PHONE_BUTTON_INACTIVE)
    else:
        raise Exception(
            'Can`t get value of sync and build version from config file')
def test_apps_page_images(apps_sync4, testdata):
    assert get_exist_result(testdata)
def test_text_on_mobile_apps_page(mobile_apps_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_phone_page_text(phone_sync3):
    assert helpers.get_exist_result(Text.PAIR_PHONE_TEXT)
def test_a_c_controls_page_text(climate_a_c_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_home_page_text(driver_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_audio_direct_tune_text(audio_direct_tune_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_display_page_text(settings_display_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_bluetooth_page_text(settings_bluetooth_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_clock_page_text(settings_clock_sync3, testdata):
    if not settings_clock_sync3.clock_12h_button_is_active():
        settings_clock_sync3.tap_on_24h_button()
    if testdata == Text.SETTINGS_CLOCK_24H_TEXT:
        settings_clock_sync3.tap_on_12h_button()
    assert helpers.get_exist_result(testdata)
def test_settings_sound_page_text(settings_sound_sync3, testdata):
    if testdata == Text.SETTINGS_SOUND_ADAPTIVE_VOLUME_TEXT:
        helpers.touch_and_drag_page(*touch_drag_coordinates_down)
    assert helpers.get_exist_result(testdata)
def test_text_subscription_info_page(mobile_apps_subscription_info_sync3,
                                     testdata):
    assert helpers.get_exist_result(testdata)
Example #13
0
def settings_second_screen_sync3(driver_sync3):
    touch_drag_right = ['settings_page', 400, 300, -300, 0]
    api = page_supervisor_sync3.PageSupervisor()
    api.settings_page.open_settings_page()
    if not helpers.get_exist_result(Icons.SETTINGS_GENERAL_BUTTON):
        helpers.touch_and_drag_page(*touch_drag_right)
Example #14
0
def settings_first_screen_sync3(driver_sync3):
    touch_drag_left = ['settings_page', 50, 200, 400, 0]
    api = page_supervisor_sync3.PageSupervisor()
    api.settings_page.open_settings_page()
    if not helpers.get_exist_result(Icons.SETTINGS_SOUND_BUTTON):
        helpers.touch_and_drag_page(*touch_drag_left)
def test_settings_page_images(settings_sync4, testdata):
    if testdata == Icons.SETIINGS_911_ASSIST_BUTTON:
        helpers.touch_and_drag_page('', x=1000, y=600, dx=-700, dy=0)
    assert get_exist_result(testdata)
    if testdata == Icons.SETTINGS_TOWING_BUTTON:
        helpers.touch_and_drag_page('', x=100, y=600, dx=700, dy=0)
def test_settings_automatic_system_updates_page_text(
        settings_automatic_updates_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_vehicle_page_text(settings_vehicle_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_radio_page_text(settings_radio_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_voice_control_page_text(settings_voice_control_sync3,
                                          testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_navigation_map_preferences_page_text(
        settings_navigation_map_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_audio_sirius_page_text(audio_sirius_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_navigation_route_preferences_page_text(
        settings_navigation_route_sync3, testdata):
    if testdata == Text.DYNAMIC_ROUTE_GUIDANCE_TEXT:
        helpers.touch_and_drag_page(*touch_drag_coordinates_down)
    assert helpers.get_exist_result(testdata)
def test_climate_page_text(climate_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_mobile_apps_page_text(settings_mobile_apps_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_navigation_dialog_text(navigation_sync3, testdata):
    helpers.get_exist_result(testdata)
def test_settings_sync_connect_page_text(settings_sync_connect_sync3,
                                         testdata):
    assert helpers.get_exist_result(testdata)
def test_phone_pair_page_text(phone_pair_sync3, testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_page_text_second_screen(settings_second_screen_sync3,
                                          testdata):
    assert helpers.get_exist_result(testdata)
def test_text_siriusxm_travel_link_page(mobile_apps_siriusxm_travel_link_sync3,
                                        testdata):
    assert helpers.get_exist_result(testdata)
def test_settings_general_page_text(settings_general_sync3, testdata):
    if testdata == Text.SETTINGS_GENERAL_ABOUT_SYNC_TEXT:
        helpers.touch_and_drag_page(*touch_drag_coordinates_down)
    assert helpers.get_exist_result(testdata)