__author__ = 'shikun'


class Constants(object):

    TEST_ID = "test_id"
    TEST_DESC = "test_desc"
    FIND_TYPE = "find_type"
    SWIPE_DIRECTION = "direction"
    SWIPE_TIMES = "times"
    WAITE_TIMEOUT = "timeout"
    TAP_POINT = "point"
    OPERATION_TYPE = "operate_type"
    ELEMENT_INFO = "element_info"
    FIND_ELEMENTS_INDEX = "index"
    SEND_KEY_TEXT = "text"

    SWIPE_DIRECTION_TO_LEFT = "to_left"
    SWIPE_DIRECTION_TO_RIGHT = "to_right"
    SWIPE_DIRECTION_TO_TOP = "to_top"
    SWIPE_DIRECTION_TO_BOTTOM = "to_bottom"

    FIND_TYPE_BY_ID = "by_id"
    FIND_TYPE_BY_IDS = "by_ids"
    FIND_TYPE_BY_NAME = "by_name"
    FIND_TYPE_BY_NAMES = "by_names"
    FIND_TYPE_BY_XPATH = "by_xpath"
    FIND_TYPE_BY_CLASS_NAME = "class_name"
    FIND_TYPE_BY_CLASS_NAMES = "class_names"

    OPERATION_TYPE_CLICK = "click"
    OPERATION_TYPE_SWIPE = "swipe"
    OPERATION_TYPE_WAITE = "wait"
    OPERATION_TYPE_SEND_KEYS = "send_keys"
    OPERATION_TYPE_TAP = "tap"
    OPERATION_TYPE_SWIPE_UNTIL = "swipe_until"

    DEFAULT_TIMEOUT = 8

    PLATFORM_ANDROID = "android"
    PLATFORM_IOS = "ios"

    # 本地存储记录所有的case情况的路径
    REPORT_INFO_PATH = "d:/info.txt"
    REPORT_INIT = "d:/init.txt"
    REPORT_COLLECT_PATH = "d:/collect.txt"
    # 存放crash的json文件名
    CRASH_LOG_PATH = "d:/crash.txt"
    SCREEN_IMG_PATH = "D:/img/"


