设计思想

通过requests, BeautifulSoup实现API自动化,保证后端API主要功能及业务流程

通过selenium实现web UI自动化,appium+stf实现android UI自动化,保证前端页面操作功能及业务流程

通过pytest对测试脚本进行管理,allure report 实现报告输出

通过maven实现脚本CI(jerkins),tomcat实现测试报告线上化

使用python作为脚本语言

设计框架(autotestFrame.png)
python自动化测试框架-基于pytest

说明

TestNG:测试用例管理

Maven:jar包管理

ExtentReport:测试报告

代码结构

├─framework 测试框架

│ ├─base - 自动化测试基础类

│ ├─web - web端driver管理基础类

│ ├─driver - web脚本执行基础类

│ ├─app - app脚本执行基础类

├─utils 测试工具类(文件处理等)

├─page 测试页面对象类

├─script 业务、功能脚本

脚本执行后,通过allure生成测试报告(allure_report.png)
python自动化测试框架-基于pytest

相关文章:

  • 2022-02-10
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-02-14
  • 2022-12-23
猜你喜欢
  • 2021-05-23
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案