当前位置:网站首页>pytest+allure+jenkins环境--填坑完毕
pytest+allure+jenkins环境--填坑完毕
2022-07-07 04:19: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卸载重装解决不了问题,可以使用以下方法。
解决方案:
将报错的包复制到相应的位置,报错的时候会有路径提示。
边栏推荐
- 【webrtc】m98 screen和window采集
- Blue Bridge Cup Netizen age (violence)
- Idea add class annotation template and method template
- Interviewer: what development models do you know?
- 普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
- nacos
- 外包幹了三年,廢了...
- leetcode:105. 从前序与中序遍历序列构造二叉树
- Route jump in wechat applet
- Leetcode-543. Diameter of Binary Tree
猜你喜欢
图解GPT3的工作原理
Mutual conversion between InputStream, int, shot, long and byte arrays
The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
Leetcode-206. Reverse Linked List
misc ez_usb
Detailed explanation of neo4j installation process
Initial experience of teambiion network disk (Alibaba cloud network disk)
【斯坦福计网CS144项目】Lab3: TCPSender
Example of Pushlet using handle of Pushlet
Implementing data dictionary with JSP custom tag
随机推荐
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.9 introduction to network interface (IX) extending the request3 met
身边35岁程序员如何建立起技术护城河?
通信设备商,到底有哪些岗位?
Tencent's one-day life
Outlier detection technology of time series data
按键精灵脚本学习-关于天猫抢红包
毕设-基于SSM大学生兼职平台系统
leanote私有云笔记搭建
解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
A concurrent rule verification implementation
leetcode:105. 从前序与中序遍历序列构造二叉树
[UTCTF2020]file header
BGP experiment (1)
测试周期被压缩?教你9个方法去应对
07_ Handout on the essence and practical skills of text measurement and geometric transformation
按键精灵采集学习-矿药采集及跑图
vus. Precautions for SSR requesting data in asyndata function
【Liunx】进程控制和父子进程
【obs】win-capture需要winrt