当前位置:网站首页>pytest+allure+jenkins環境--填坑完畢
pytest+allure+jenkins環境--填坑完畢
2022-07-07 07:46:00 【ADDA_】
項目場景:
按著別人的流程走了一遍,發現環境一直出現問題,今天終於解决!
問題描述
問題1:無法在jenkins上生成allure臨時json報告
報錯如下:
pytest: error: unrecognized arguments: --alluredir=reports inifile: None rootdir: D:\xxx
解决方案:
環境問題,沒有安裝好allure-pytest與allure-python-commons,需要重新下載。
問題2:查看jenkins的控制臺,報錯:找不到XX包的比特置
報錯如下:
ModuleNotFoundError: No module named 'et_xmlfile'
原因分析:
有的包你安裝到了虛擬環境/其他地方,正常的pip卸載重裝解决不了問題,可以使用以下方法。
解决方案:
將報錯的包複制到相應的比特置,報錯的時候會有路徑提示。
边栏推荐
- pytest+allure+jenkins环境--填坑完毕
- Idea add class annotation template and method template
- 1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
- ASEMI整流桥RS210参数,RS210规格,RS210封装
- 电商常规问题part1
- [guess-ctf2019] fake compressed packets
- Leetcode-226. Invert Binary Tree
- Initial experience of teambiion network disk (Alibaba cloud network disk)
- After 95, the CV engineer posted the payroll and made up this. It's really fragrant
- 外包干了三年,废了...
猜你喜欢

Bi she - college student part-time platform system based on SSM

测试周期被压缩?教你9个方法去应对

URP - shaders and materials - light shader lit

The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?

图解GPT3的工作原理

探索Cassandra的去中心化分布式架构

外包干了三年,废了...

【webrtc】m98 screen和window采集
![[UTCTF2020]file header](/img/e3/818e2d531a06ab90de189055f634ad.png)
[UTCTF2020]file header

After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
随机推荐
Idea add class annotation template and method template
CentOS7下安装PostgreSQL11数据库
Solve could not find or load the QT platform plugin "xcb" in "
A concurrent rule verification implementation
Live broadcast platform source code, foldable menu bar
Technology cloud report: from robot to Cobot, human-computer integration is creating an era
按键精灵脚本学习-关于天猫抢红包
vus. Precautions for SSR requesting data in asyndata function
Resource create package method
知识点滴 - 关于苹果认证MFI
[unity] several ideas about circular motion of objects
Pytorch parameter initialization
【Unity】物体做圆周运动的几个思路
即刻报名|飞桨黑客马拉松第三期等你挑战
Regular e-commerce problems part1
解决could not find or load the Qt platform plugin “xcb“in ““.
图解GPT3的工作原理
【经验分享】如何为visio扩展云服务图标
IO stream file
BGP experiment (1)