当前位置:网站首页>csdn涨薪秘籍之Jenkins集成allure测试报告全套教程
csdn涨薪秘籍之Jenkins集成allure测试报告全套教程
2022-06-23 16:52:00 【测试架构师北凡】
前言
Allure框架是一个功能强大的自动化测试报告工具,不仅支持多种编程语言,而且能够完美的与各种集成工具结合,包括Jenkins,TeamCity,Bamboo,Maven等等,因此受到了很多测试人员的青睐,那么今天我们就简单的来讲解一下Jenkins中如何集成allure测试报告
【文章末尾给大家留下了大量的福利哦】

Allure插件安装
Jenkins集成allure测试报告,需要安装Allure插件作为支持
1.打开Jenkins,首页点击[Manage Jenkins]

2.选择[Manage Plugins]

3.选择[Available]选项,搜索输入框输入Allure,搜索出来的名字就叫Allure,当安装后名字会变为Allure Jenkins Plugin

Allure Commandline配置
1.jenkins配置页,选择全局工具配置[Global Tool Configuration]

2.全局宫配置页下拉到最后一项,你会看到“Allure Commandline”项, 按下图配置之后保存即可

Job配置
新建Job
Jenkins首页点击新建Job[New Item]

输入job名称,选择自由风格的项目,点击[ok]

General配置
输入描述信息及其他信息,因为我的项目在我的本地,所以我这里未配置其他选项,你可以根据实际情况进行设置

源码管理(Source Code Management)

构建(Build)
输入如下命令,我的的测试项目使用的是虚拟环境

cd ./venv/Scripts activate && cd ..&& cd .. && python.exe run.py
构建后操作(Post-build Actions)
输入Path名称,这里的path名称表示在项目跟目录下生成此文件夹,文件夹用来保存生成html报告之前所依赖的json,xml,txt等类型文件

点击[Advanced],输入Report path名称,这里的path同样会在项目的跟目录下生成,同时保存最后的html报告

以上所有信息配置完成后保存即可
执行构建
在jenkins的工作空间新建名称为pytest-allure的目录,并把项目拷贝到此目录(这个工作空间在General中可以自定义的,因为我没配置所以使用的默认的工作空间)

接下来点击[Build Now]执行构建


查看报告

总结
整个过程比较简单,但是避免不了中间过程出现的问题,所以尽量自己手动操作一次,加深自己的印象
重点:学习资料学习当然离不开资料,这里当然也给你们准备了600G的学习资料
需要的先关注再私我关键字【000】免费获取哦 注意关键字是:000
疑惑:为什么要先关注呢? 回:因为没关注的话私信回了你看不到
项目实战
app项目,银行项目,医药项目,电商,金融

大型电商项目

全套软件测试自动化测试教学视频

300G教程资料下载【视频教程+PPT+项目源码】

全套软件测试自动化测试大厂面经

python自动化测试++全套模板+性能测试


听说关注我并三连的铁汁都已经升职加薪暴富了哦!!!!
参考链接 Allure Framework
边栏推荐
- Similarities and differences between Chinese and American electronic signature SaaS
- Crmeb second open SMS function tutorial
- 浅析3种电池容量监测方案
- Nanny level teaching! Take you to play with time complexity and space complexity!
- 如何通过线上股票开户?在线开户安全么?
- A set of code to launch seven golang web frameworks at the same time
- . Net cloud native architect training camp (responsibility chain mode) -- learning notes
- What is the personal finance interest rate in 2022? How do individuals choose financial products?
- B. Integers Shop-Hello 2022
- Baidu AI Cloud product upgrade Observatory in May
猜你喜欢

Ctfshow PHP features

Meituan Sanmian: how do you understand the principle of redis master-slave replication?

【C工具】------点阵模拟测试2

论文阅读 (55):Dynamic Multi-Robot Task Allocation under Uncertainty and Temporal Constraints

esp8266-01s 不能连接华为路由器解决方法

论文阅读 (47):DTFD-MIL: Double-Tier Feature Distillation Multiple Instance Learning for Histopathology..

Alien world, real presentation, how does the alien version of Pokemon go achieve?

Crmeb second open SMS function tutorial

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):...

Self supervised learning (SSL)
随机推荐
Async/await
MySQL事务提交流程
Programmers are very useful ten tool websites, which are worth collecting
Answer 02: why can Smith circle "allow left string and right parallel"?
qYKVEtqdDg
How to make towel washing label
C. Phoenix and Towers-Codeforces Global Round 14
POC about secureworks' recent azure Active Directory password brute force vulnerability
How to quickly obtain and analyze the housing price in your city?
Revil - blackmail Virus Emergency Response
百度智能云5月产品升级观察站
How to use R language to draw scatter diagram
Kotlin invoke convention makes kotlin code more concise
Baidu AI Cloud product upgrade Observatory in May
[Hyperf]Entry “xxxInterface“ cannot be resolved: the class is not instantiable
Illustration of mongodb cluster deployment principle (3)
Transaction processing of cloud development database
Tencent Qianfan scene connector: worry and effort saving automatic SMS sending
Cross browser common events
How to make a shirt certificate