最近结合网上一些框架,自己重构了web自动化测试框架,该框架为行为驱动模型,支持文件上传下载,Excel数据读写,支持解析xml或者yaml脚本,可以直接通过 BlazeMeter录制插件录制脚本,导出yaml文件即可
1.项目结构如下
用到的依赖库如下
et-xmlfile==1.0.1
jdcal==1.4.1
openpyxl==3.0.5
PyYAML==5.3.1
selenium==3.141.0
urllib3==1.25.10
xlrd==1.2.0
2.xml脚本结构如下
3.yaml脚本如下
4.生成的html报告如下