python3.4.3安装allure2记录

一、安装:cmd执行命令pip install allure-pytest

二、下载allure2:2.7.0版本 https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.zip

三、解压到运行 pytest 的目录下,打开\allure-2.7.0\bin 文件夹,复制路径,添加到系统环境变量 path 下:

四、生成报告,cmd执行命令 allure generate report/ -o report/html

五、打开报告:

直接找到 report/html 打开 index.html 会显示一个空的报告。用 pycharm 去打开:

猜你喜欢

转载自www.cnblogs.com/lansan0701/p/10345228.html