当前位置:网站首页>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卸載重裝解决不了問題,可以使用以下方法。
解决方案:
將報錯的包複制到相應的比特置,報錯的時候會有路徑提示。
边栏推荐
- 1141_ SiCp learning notes_ Functions abstracted as black boxes
- 242. Bipartite graph determination
- 【Unity】物体做圆周运动的几个思路
- JS get all date or time stamps between two time stamps
- 1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
- [SUCTF 2019]Game
- 即刻报名|飞桨黑客马拉松第三期等你挑战
- Few-Shot Learning && Meta Learning:小样本学习原理和Siamese网络结构(一)
- 科技云报道:从Robot到Cobot,人机共融正在开创一个时代
- Route jump in wechat applet
猜你喜欢
[Stanford Jiwang cs144 project] lab4: tcpconnection
Dynamics CRM server deployment - restore database prompt: the database is in use
探索Cassandra的去中心化分布式架构
[Linux] process control and parent-child processes
URP - shaders and materials - light shader lit
@component(““)
1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
php导出百万数据
Kbu1510-asemi power supply special 15A rectifier bridge kbu1510
Mysql高低版本切换需要修改的配置5-8(此处以aicode为例)
随机推荐
IO流 file
为什么要了解现货黄金走势?
解决could not find or load the Qt platform plugin “xcb“in ““.
numpy中dot函数使用与解析
电商常规问题part1
直播平台源码,可折叠式菜单栏
Why is the row of SQL_ The ranking returned by number is 1
【webrtc】m98 screen和window采集
gslx680触摸屏驱动源码码分析(gslX680.c)
通信设备商,到底有哪些岗位?
【斯坦福计网CS144项目】Lab3: TCPSender
Initial experience of teambiion network disk (Alibaba cloud network disk)
科技云报道:从Robot到Cobot,人机共融正在开创一个时代
Idea add class annotation template and method template
Rxjs - observable doesn't complete when an error occurs - rxjs - observable doesn't complete when an error occurs
My ideal software tester development status
@component(““)
今日现货白银操作建议
Hands on deep learning (IV) -- convolutional neural network CNN
Make a bat file for cleaning system garbage