本项目围绕一个在线商城系统,从三个维度构建完整的测试自动化体系:
| 方向 | 技术栈 | 说明 |
|---|---|---|
| UI 自动化 | Selenium + Python + pytest + POM | 覆盖登录/搜索/购物车/下单核心链路 |
| 接口自动化 | Python Requests + Postman + pytest | API 功能验证 + 数据驱动 |
| 性能测试 | JMeter | 多并发场景压测 + 指标分析 |
selenium_project/
├── pages/ # Page Object 页面类
├── tests/ # pytest 测试用例
├── data/ # JSON/Excel 测试数据
├── reports/ # HTML/Allure 测试报告
├── utils/ # 工具类(驱动管理、日志等)
├── scripts/ # 学习脚本
│ └── day4_hello_selenium.py
└── README.md
- Python 3.14+
- Google Chrome
- 依赖:
pip install selenium pytest pytest-html requests
# 安装依赖
pip install selenium pytest pytest-html requests
# 运行第一个 Selenium 脚本
python scripts/day4_hello_selenium.py
# 运行所有测试(待完善)
pytest tests/ -v --html=reports/report.html- 用户登录(等价类 + 边界值)
- 商品搜索(关键词 + 分类筛选 + 排序)
- 购物车(添加/删除/修改数量/价格计算)
- 订单支付(正常流程 + 异常场景 + 并发)
李邓活 - 软件测试工程师(求职中)