这是一个全面的自动化测试框架,支持API、Web和移动应用测试。
- 安装Python 3.9+
- 创建虚拟环境:
python -m venv venv
- 激活虚拟环境:
- Windows:
venv\Scripts\activate
- macOS/Linux:
source venv/bin/activate
- Windows:
- 安装依赖:
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
- API测试:
pytest tests/api
- Web测试:
pytest tests/web
- 移动测试:
pytest tests/mobile
allure generate reports -o allure-report