import kytest


if __name__ == '__main__':
    # 执行多个用例文件，主程序入口

    # android
    # kytest.main(
    #     path="tests/test_adr.py",
    #     serial=["UJK0220521066836", "30301cb9"],
    #     package="com.qizhidao.clientapp",
    #     strategy="split_parallel"
    # )

    # api
    # kytest.main(
    #     project='pc官网',
    #     api_host='https://app-test.qizhidao.com',
    #     xdist=True
    # )

    # IOS
    # kytest.main(bundle_id="com.qizhidao.company")

    # image
    # kytest.main(
    #     udid='00008101-000E646A3C29003A',
    #     bundle_id='com.tencent.xin'
    # )

    # web
    # cookies = [
    #     {
    #         "name": "xxx",
    #         "value": "xxx",
    #         "path": "/",
    #         "domain": ".qizhidao.com"
    #     }
    # ]
    kytest.main(
        path="tests/test_web.py",
        web_host="https://www-test.qizhidao.com/",
        # cookies=cookies
        # state_file="state.json"
        # window_size=[1920, 1080],
        # headless=True
    )
