前置
服务器上安装了nose、allure和pytest用例;
使用方法
先用pytest和allure生成测试报告,而后使用allure open -h 127.0.0.1 -p 8083 ./report/
将生成的html文件通过浏览器进行查看,report即为allure生成的报告所在的目录,而后即可通过"http://服务器ip:8083"来访问这个allure报告了;
如下是用过的一个用于自动运行用例并打开allure报告服务的shell脚本:
#! /bin/bash
port=8083
PID=`ps -ef | grep $port | grep -v grep |