![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
allure
df0128
在路上
展开
-
pytest+allure生成测试报告
一、安装pytestPytest是Python的单元测试框架,非常方便和易用。可以规模化以及编写更加复杂的测试用例。安装方法如下:pip install pytest二、安装allure插件网上很多文档说插件使用pytest-allure-adaptor,单我目前使用python3如果安装这个则会出现如下错误:module 'pytest' has no attribute 'allu...原创 2019-06-05 17:58:21 · 3405 阅读 · 0 评论 -
通过nose直接将allure报告作为一个可以远程连接的网站打开
前置服务器上安装了nose、allure和pytest用例;使用方法先用pytest和allure生成测试报告,而后使用allure open -h 127.0.0.1 -p 8083 ./report/将生成的html文件通过浏览器进行查看,report即为allure生成的报告所在的目录,而后即可通过"http://服务器ip:8083"来访问这个allure报告了;如下是用过的一个用...原创 2019-06-06 09:59:52 · 2286 阅读 · 0 评论 -
jenkins+allure+pytest持续集成(使用非jenkins机器作为执行机)
1、jenkins安装插件插件名称为Allure Jenkins Plugin,如下图所示:2、jenkins安装allure_commandline如果jenkins上有安装maven的话则此工具安装就比较简单了,打开jenkins的Global Tool Configuration,找到Allure Commandline,选择安装,如下所示:如果没有安装maven,则需要去jen...原创 2019-06-06 17:02:29 · 2011 阅读 · 0 评论