在阅读问题答案How to serve Allure Report without automatically starting the browser之后
我想知道如何使用nginx来正确地托管诱人报告?我想如果你能按正确的顺序给出一个nginx和诱惑力的命令例子就足够了。
PS:我正在尝试创建一个共享的Allure报告,作为跨公司的托管网站,而不需要报告的每个用户都在他的本地计算机上安装Allure,而不是对每个新的测试结果执行“诱惑力服务”。托管计划在亚马逊网络服务EC2上,解析域名等计划分别与亚马逊网络服务ELB完成。诱惑力文档没有涵盖这个主题,因为在StackOverflow上没有关于诱惑力的详细的具体答案的其他问题。
提前谢谢。
发布于 2017-10-22 10:02:07
的web服务器
- Sounds like that will be taken care of with your AWS setup. You basically just need a web server that everyone you wish to see the reports can get to.
的Allure源文件
- Execute your tests with whatever process and framework you are using and make sure to set the configuration so the necessary source files for Allure are output as part of the test run
- Command line version works
中
- Create a new directory titled "Allure" in the place that your web server is configured to host out of. The html file is already named "index.html"
导航到"http://machinename/Allure/"的
- This should pull up your Allure report via the web just as if you had executed "Allure serve" locally
对我来说我..。
Allure
C:\NUnit.org\NUnit-2.6.4\bin\addins\config.xml
包含生成报告的源文件的<results-path>C:\AllureSourceFiles</results-path>
在web服务器中allure generate --output C:\AllureOutputReport C:\AllureSourceFiles
C:\inetpub\wwwroot\Allure\app.js
C:\inetpub\wwwroot\Allure\favicon.ico
C:\inetpub\wwwroot\Allure\index.html
C:\inetpub\wwwroot\Allure\styles.css
C:\inetpub\wwwroot\Allure\data
C:\inetpub\wwwroot\Allure\export
C:\inetpub\wwwroot\Allure\history
从公司网络中的任何浏览器C:\inetpub\wwwroot\Allure\plugins
的诱惑力报告
发布于 2020-06-02 16:04:03
你可以在任何带有docker的机器上托管Allure Docker服务。它很容易使用,你不需要做很多配置:https://github.com/fescobar/allure-docker-service
https://stackoverflow.com/questions/46844852
复制相似问题