通过http访问多个吸引力报告

时间:2019-03-19 06:22:46

标签: jenkins reporting-services automation report allure

我的文件夹中有测试结果,该文件将在每次测试运行时更新为新的执行结果。

[root@server test-results]# ls -lrt /var/log/test-results/
total 352
drwxrwxrwx. 14 root root 4096 Jan 10 10:28 9ca9cd74-21d3-4d39-b556-1ca914a37408
drwxrwxrwx. 14 root root 4096 Jan 10 10:41 4fc5f9fa-ee03-4370-98bc-0cca6dcb95d6
drwxrwxrwx. 14 root root 4096 Jan 10 13:00 9e7a9239-cbd4-48a1-929e-bf90892903b0
drwxrwxrwx. 14 root root 4096 Jan 11 09:09 544bd6c9-8d43-4e17-bbc7-8395498e98b6
drwxr-xr-x. 14 root root 4096 Jan 14 10:40 faa3284c-01b0-4581-89fd-57a1919d13b7
drwxr-xr-x. 14 root root 4096 Jan 14 11:31 ee84c6f4-048d-4e9d-96c0-2bc4f6ab3f53
drwxr-xr-x. 14 root root 4096 Jan 14 11:46 c229cacb-1e27-4629-a67f-3eb2965006f9
drwxr-xr-x. 14 root root 4096 Jan 14 12:35 2cca5070-0333-4d95-a1e5-c409c3185bf3
drwxr-xr-x. 14 root root 4096 Jan 14 13:13 e19c3bd1-3a1f-459a-b8f2-5e1bfad11fe9

此文件夹中的每个文件夹都有测试数据,可以由诱惑引擎解析。

我正在尝试找到一种以下列方式查看这些结果的方法。

https://localhost:port/<test folder name/
https://localhost:port/9ca9cd74-21d3-4d39-b556-1ca914a37408/
https://localhost:port/4fc5f9fa-ee03-4370-98bc-0cca6dcb95d6/
https://localhost:port/9e7a9239-cbd4-48a1-929e-bf90892903b0/
https://localhost:port/544bd6c9-8d43-4e17-bbc7-8395498e98b6/

我尝试使用https://github.com/fescobar/allure-docker-service。这确实提供了一种查看魅力报告的方法。但是,它不能单独允许我为不同的测试结果提供单独的链接。相反,它只能在一个文件夹中显示数据的诱人报告。

我不确定这样做的正确方法。请让我知道是否需要任何信息。

2 个答案:

答案 0 :(得分:1)

您可以使用不同的端口并显示不同的目录来启动多个诱惑容器,也可以在一个目录中将所有文件放在一起。

答案 1 :(得分:0)

现在,您可以使用Allure Docker Service处理多个项目 https://github.com/fescobar/allure-docker-service#MULTIPLE-PROJECTS---REMOTE-REPORTS