Skip to content

cvdsf/selenium-shop-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

在线商城系统测试自动化项目

项目简介

本项目围绕一个在线商城系统,从三个维度构建完整的测试自动化体系:

方向 技术栈 说明
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

测试范围

  • 用户登录(等价类 + 边界值)
  • 商品搜索(关键词 + 分类筛选 + 排序)
  • 购物车(添加/删除/修改数量/价格计算)
  • 订单支付(正常流程 + 异常场景 + 并发)

作者

李邓活 - 软件测试工程师(求职中)

About

在线商城系统测试自动化项目 - Selenium + Python + JMeter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages