在本地运行 allure 报告后,我在 chrome 上看到此页面。
"192.168.0.18 didn’t send any data."
我尝试查看本地文件夹,它包含数据。当我从 allure 报告文件夹中启动 index.html 时,我会得到标准的 allure 图像,其中每个部分都显示“正在加载”。
有没有人遇到类似的事情可以帮忙?
查看诱惑物品放置的目录,通常是
target/allure-results
,所以试试这个:allure serve target/allure-results
或者尝试生成报告然后提供服务:
allure generate target/allure-results
allure serve target/allure-results
尝试使用其他端口:
allure serve -h localhost -p 8081 /your/folder/with/json/files
报告将在http://localhost:8081/index.html打开