首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何正确地托管Allure报表

如何正确地托管Allure报表
EN

Stack Overflow用户
提问于 2017-10-20 16:09:00
回答 2查看 12.8K关注 0票数 2

在阅读问题答案How to serve Allure Report without automatically starting the browser之后

我想知道如何使用nginx来正确地托管诱人报告?我想如果你能按正确的顺序给出一个nginx和诱惑力的命令例子就足够了。

PS:我正在尝试创建一个共享的Allure报告,作为跨公司的托管网站,而不需要报告的每个用户都在他的本地计算机上安装Allure,而不是对每个新的测试结果执行“诱惑力服务”。托管计划在亚马逊网络服务EC2上,解析域名等计划分别与亚马逊网络服务ELB完成。诱惑力文档没有涵盖这个主题,因为在StackOverflow上没有关于诱惑力的详细的具体答案的其他问题。

提前谢谢。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2017-10-22 10:02:07

  1. 配置公司中的每个人都可以访问

的web服务器

代码语言:javascript
运行
复制
- 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.

  1. 执行测试以输出

的Allure源文件

代码语言:javascript
运行
复制
- 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

  1. 使用步骤2中的源文件运行Allure测试适配器,以生成reports

代码语言:javascript
运行
复制
- Command line version works

  1. 将步骤3中的诱饵报告拖放到the服务器

代码语言:javascript
运行
复制
- 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/"的

代码语言:javascript
运行
复制
- This should pull up your Allure report via the web just as if you had executed "Allure serve" locally

对我来说我..。

Allure

  • 在公司网络上创建一个Windows Server 2012 R2虚拟机,并将IIS配置为将Allure NUnit 2适配器托管到我运行测试的计算机上,这将向NUnit安装位置添加一个包含各种文件的新“R2”目录,编辑config.xml以设置Allure源文件的输出目录,然后执行测试

C:\NUnit.org\NUnit-2.6.4\bin\addins\config.xml

包含生成报告的源文件的<results-path>C:\AllureSourceFiles</results-path>

  • Run诱饵

在web服务器中allure generate --output C:\AllureOutputReport C:\AllureSourceFiles

  • Create " Allure“目录,并将所有Allure报告输出文件/目录从运行测试的"C:\AllureOutputReport”复制到该位置

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

  • Navigating到"http://machinename/Allure/“,将显示

的诱惑力报告

票数 10
EN

Stack Overflow用户

发布于 2020-06-02 16:04:03

你可以在任何带有docker的机器上托管Allure Docker服务。它很容易使用,你不需要做很多配置:https://github.com/fescobar/allure-docker-service

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46844852

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档