8

My requirement is to combine 2 test results to publish an allure report. Basically, our framework needs run 2 exclusive sets of related tests bases on system status as 2 different test runs. These will run from 2 different JVMs. I need to combine the result of these 2 runs to show 1 report.

As allure provides an adapter for testng, I'm wondering if this is possible or where should I start.

Thanks in advance for all the guidance.

smaikap
  • 474
  • 1
  • 7
  • 19
  • 1
    I would appreciate a comment for each downvote here. Is something not clear or does not make sense ? – smaikap Oct 17 '16 at 06:34

2 Answers2

6

Allure has built-in aggregation functionality, just put two allure results bundles in one folder and use it as a source for your report. You will get report with two suites in it.

RocketRaccoon
  • 2,559
  • 1
  • 21
  • 30
  • It is 1 suite. I select test from the suite based on environment condition. I should probably have explained it in further details in the question itself. Here is an example of test class : – smaikap Oct 17 '16 at 07:21
  • here is the situation explained here : – smaikap Oct 17 '16 at 07:23
  • I left comment there. Anyway Allure will show any result that you have from several runs of single suite. You need just collect all required results in one place. – RocketRaccoon Oct 17 '16 at 08:15
4

you can also use: allure serve /path/to/results1 /path/to/results2

Alon Gouldman
  • 3,025
  • 26
  • 29
  • How would you configure the job settings. Say if we need to merge three jobs output into one! – Ashok kumar Ganesan Jun 28 '22 at 17:24
  • @AshokkumarGanesan I didn't try, but why no passing 3 paths to allure serve? would that work? also, I think you can copy all of the artifacts from the folders into a single folder – Alon Gouldman Jun 29 '22 at 14:29
  • 1
    My scenario is I have to execute three jobs separately and once all are completed. I have to run a job which uses the already executed three jobs raw report folders and create a consolidated Allure report. How would we move the folders from different jobs and make it – Ashok kumar Ganesan Jun 29 '22 at 18:16
  • @AshokkumarGanesan I'm not sure I understand. did you try to use `cp` to copy the files to where you need them? – Alon Gouldman Jun 30 '22 at 06:45
  • I got that, I tried moving all those folders to a common folder and generated it with bash script – Ashok kumar Ganesan Jul 01 '22 at 01:43