# android_ui-test **Repository Path**: t_l_h/android_ui-test ## Basic Information - **Project Name**: android_ui-test - **Description**: 基于PO模式搭建的安卓ui自动化测试框架,主要依赖:pytest + uiautomatro2 + allure 实现 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2023-04-20 - **Last Updated**: 2025-04-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **安卓端 ui自动化测试** === #### 1、Git 拉取项目 ```shell git clone https://gitee.com/t_l_h/android_ui-test.git ``` #### 2、安装依赖 ```shell pip install -r requirements.txt ``` ### 运行 方式一: 命令行直接运行(先安装依赖库: pip install -r requirements.txt) ```shell python run.py # 全量执行用例 python run.py -m login # 执行被course_case标记的指定测试套件 ``` 方式二: 使用pipenv创建虚拟环境运行(注意:使用此方法需要本地python环境为3.8) ```shell """配置虚拟环境""" pipenv install # 根据根目录下的Pipfile创建一个新环境 pipenv --venv # 查看虚拟环境路径 /Users/用户/.local/share/virtualenvs/ui_autotest-FFpGFh2F # 创建的虚拟环境地址 ``` ```shell """激活虚拟环境并运行""" pipenv shell # 激活虚拟环境 pipenv run python xxx.py # 在虚拟环境运行脚本命令 exit # 退出虚拟环境 ```