当前位置:网站首页>csdn涨薪秘籍之Jenkins集成allure测试报告全套教程
csdn涨薪秘籍之Jenkins集成allure测试报告全套教程
2022-06-23 16:52:09【测试架构师北凡】
前言
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
边栏推荐
- 百度智能云5月产品升级观察站
- CRMEB 二开短信功能教程
- torch学习(一):环境配置
- README
- 论文阅读 (57):2-hydr_Ensemble: Lysine 2-Hydroxyisobutyrylation Identification with Ensemble Method (任务)
- 论文阅读 (58):Research and Implementation of Global Path Planning for Unmanned Surface Vehicle Based...
- 论文阅读 (56):Mutli-features Predction of Protein Translational Modification Sites (任务)
- Latex编译成功但是无法输出到PDF
- 论文阅读 (55):Dynamic Multi-Robot Task Allocation under Uncertainty and Temporal Constraints
- 全局组织结构控制之抢滩登陆
猜你喜欢
论文阅读 (54):DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks
视频异常检测数据集 (ShanghaiTech)
论文阅读 (53):Universal Adversarial Perturbations
论文阅读 (52):Self-Training Multi-Sequence Learning with Transformer for Weakly Supervised Video Anomaly
对抗攻击与防御 (2):对抗样本的反制策略
论文阅读 (51):Integration of a Holonic Organizational Control Architecture and Multiobjective...
论文阅读 (50):A Novel Matrix Game with Payoffs of Maxitive Belief Structure
对抗攻击与防御 (1):图像领域的对抗样本生成
论文阅读 (49):Big Data Security and Privacy Protection (科普文)
论文阅读 (48):A Library of Optimization Algorithms for Organizational Design
随机推荐
- Latex使用\usepackage{hyperref}报错:paragraph ended before [email protected]@link was complete
- 论文阅读 (47):DTFD-MIL: Double-Tier Feature Distillation Multiple Instance Learning for Histopathology..
- 芯片原厂必学技术之理论篇(4-1)时钟技术、复位技术
- 暂停更新公告—行走的皮卡丘
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):...
- 客服系统搭建教程_宝塔面板下安装使用方式_可对接公众号_支持APP/h5多租户运营...
- [WebSocket] 开发在线客服系统知识点-websocket返回状态码的含义
- 【C工具】------点阵模拟测试2
- 【win10 VS2019 opencv4.6 配置参考】
- 【ESP8266-01s】获取天气,城市,北京时间
- esp8266-01s 不能连接华为路由器解决方法
- 微信小程序startLocationUpdateBackground()简单实现骑手配送位置
- 【剑指Offer】45. 把数组排成最小的数
- Ner's past, present and future Overview - Future
- This time, thoroughly understand the SparseArray implementation principle
- Detailed explanation of ssl/tls principle and packet capturing
- Kotlin practical skills you should know
- New function! Qianfan magic pen apaas December capability monthly report
- Nodejs implements multi process
- Goframe framework: basic auth Middleware
- Crmeb second open SMS function tutorial
- Baidu AI Cloud product upgrade Observatory in May
- Which securities company is good for opening a mobile account? Is online account opening safe?
- Kerberoasting without SPN
- Mobile SSH connection tool
- How to make towel washing label
- Establishment and use of SSL VPN (OpenVPN)
- A set of code to launch seven golang web frameworks at the same time
- Vulnerability in McAfee epolicy orchestrator
- Deploy LNMP environment and install Typecho blog
- Cryptography involved in IOT device end
- [learning notes] tidb learning notes (III)
- Goframe framework: add tracing Middleware
- Call face recognition exception
- Self taught programming introduction, what language to learn first?
- How do I write a small program that can automatically edit new year greetings
- The draganddrop framework, a new member of jetpack, greatly simplifies the development of drag and drop gestures!
- 6 steps to teach you financial data mining preprocessing
- 【ESP8266-01s】獲取天氣,城市,北京時間
- [esp8266 - 01s] obtenir la météo, Ville, heure de Beijing