def test_exists_text(): """ text object().exists() API verification """ assert obj_exists(Data(path).text)
import pytest import vhat_client from functional_tests.pages import hmi from functional_tests.pages.interaction import (return_obj_if_exist, tap_until_visible) from functional_tests.tests.import_helper_functions import Data from functional_tests.utils.report import jira_test pytestmark = [ pytest.mark.touchAndDrag, pytest.mark.regression_sync4, pytest.mark.regression_sync3 ] path = "test_touch_and_drag" page_to_check_horizontal = Data(path).page_to_check_horizontal page_to_check_vertical = Data(path).page_to_check_vertical back_icon = Data(path).back_icon marker_for_1st_settings_page = Data(path).marker_for_1st_settings_page marker_for_2nd_setting_page = Data(path).marker_for_2nd_setting_page vertical_item_top = Data(path).vertical_item_top vertical_item_bottom = Data(path).vertical_item_bottom @pytest.fixture(scope="function") def open_settings_page(attach_to_app): yield page_to_check_horizontal() obj2 = return_obj_if_exist(marker_for_2nd_setting_page) if obj2: hmi.touch_and_drag('settings_page_vehicle_button',
def test_exists_icon(): """ icon object().exists() API verification """ assert obj_exists(Data(path).icon)
def open_page(attach_to_app): """ opens predefined page """ Data(path).open_method()
def open_page(attach_to_app): Data(path).open_page()
def test_text_recognition_100_times(): RecognitionCounter(Data(path).text).recognize_in_loop().check_result()
def test_integration(): Data(path).open_page()