当前位置:网站首页>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卸載重裝解决不了問題,可以使用以下方法。
解决方案:
將報錯的包複制到相應的比特置,報錯的時候會有路徑提示。
边栏推荐
- [Stanford Jiwang cs144 project] lab4: tcpconnection
- 《动手学深度学习》(四) -- 卷积神经网络 CNN
- [ANSYS] learning experience of APDL finite element analysis
- The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
- 2022-07-06: will the following go language codes be panic? A: Meeting; B: No. package main import “C“ func main() { var ch chan struct
- 解决问题:Unable to connect to Redis
- [GUET-CTF2019]虚假的压缩包
- Operation suggestions for today's spot Silver
- Why should we understand the trend of spot gold?
- Few-Shot Learning && Meta Learning:小样本学习原理和Siamese网络结构(一)
猜你喜欢

【Unity】物体做圆周运动的几个思路

Interviewer: what development models do you know?

Jenkins远程构建项目超时的问题

2、 Concurrent and test notes youth training camp notes

IPv4 exercises
![[ANSYS] learning experience of APDL finite element analysis](/img/bc/dc0742c308816553a80d50d1a990e3.jpg)
[ANSYS] learning experience of APDL finite element analysis

Tencent's one-day life

MobaXterm
![[experience sharing] how to expand the cloud service icon for Visio](/img/42/dba9f78f3fb2049dad8b343b0b36e5.png)
[experience sharing] how to expand the cloud service icon for Visio

SQL优化的魅力!从 30248s 到 0.001s
随机推荐
leetcode:105. Constructing binary trees from preorder and inorder traversal sequences
3、 High quality programming and performance tuning practical youth training camp notes
What are the positions of communication equipment manufacturers?
直播平台源码,可折叠式菜单栏
【数学笔记】弧度
buuctf misc USB
探索Cassandra的去中心化分布式架构
[P2P] local packet capturing
leetcode:105. 从前序与中序遍历序列构造二叉树
Tencent's one-day life
解决问题:Unable to connect to Redis
L'externalisation a duré trois ans.
图解GPT3的工作原理
IPv4 exercises
【Liunx】进程控制和父子进程
BGP experiment (1)
@component(““)
Outsourcing for four years, abandoned
2022-07-06:以下go语言代码是否会panic?A:会;B:不会。 package main import “C“ func main() { var ch chan struct
按键精灵脚本学习-关于天猫抢红包