持续集成生成测试报告
持续集成grafana+prometheusjenkinsJenkinsfileGitMavenAntJmeter+Ant+Jenkins生成测试报告参考网址https://blog.csdn.net/weixin_46457203/article/details/105860961?spm=1001.2101.3001.6650.3&utm_medium=distribute.
持续集成
grafana+prometheus
jenkins
Jenkinsfile
Git
Maven
Ant
Jmeter+Ant+Jenkins生成测试报告
参考网址
https://blog.csdn.net/weixin_46457203/article/details/105860961?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-3.pc_relevant_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-3.pc_relevant_default&utm_relevant_index=4
安装Ant
ant下载地址:https://ant.apache.org/bindownload.cgi
配置环境变量
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-fgnFX1Pp-1647763441559)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116143139457.png)]
配置 build.xml文件
找到jmeter/extras文件夹如下:
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-IfWqYohN-1647763441565)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116144024760.png)]
优化build.xml文件
参考网址
http://shanhe.me/node/18/314
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-3hz7u0rn-1647763441567)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116144247748.png)]
jmeter.results.shanhe.me.xsl 下载地址
http://shanhe.me/download.php?file=jmeter.results.shanhe.me.xsl
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-p3rIxgNR-1647763441568)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116144450273.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-g6esiHkK-1647763441569)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116144507970.png)]
Ant执行测试
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MxndlUxQ-1647763441569)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116144921555.png)]
安装Jenkins
Jenkins官网:
https://jenkins.io/
用 java -jar jenkins.war -HttpPort=8081,或者 jenkins.war放到tomcat里面 用tomcat启动即可
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-g7S0DD0s-1647763441570)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116143430595.png)]
全局工具设置
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-DxdEKiIu-1647763441571)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116143604419.png)]
配置Ant
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-7ObtlNHX-1647763441572)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116143648483.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-6PJzG2cs-1647763441572)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116143755654.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-V4orQBp1-1647763441573)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116150024468.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-1oWtRNBY-1647763441573)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116145833161.png)]
Pytest+Allure+Jenkins生成测试报告
安装 allure
安装allure 并且配置环境变量
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-FnXznvlm-1647763441574)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116181142429.png)]
Jenkins 配置allure
安装 allure插件
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-CdPpHqzw-1647763441575)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116181441763.png)]
全局工具配置 allure
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-499XBgGw-1647763441576)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116181549861.png)]
Jenkins项目配置
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-FHNq22oQ-1647763441577)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116181700162.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-6je1hfqF-1647763441577)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116181727330.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-nYd6ErnR-1647763441578)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116181908067.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-VxJKpCGQ-1647763441580)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116181944580.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-XAlWp9Y0-1647763441581)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116182059060.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-rf0oX4Fs-1647763441582)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116182202677.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-UgUAf91Z-1647763441583)(C:\Users\d\AppData\Roaming\Typora\typora-user-images\image-20220116182229046.png)]
9Y0-1647763441581)]
[外链图片转存中…(img-rf0oX4Fs-1647763441582)]
[外链图片转存中…(img-UgUAf91Z-1647763441583)]
更多推荐
所有评论(0)