2

Currently I have 20+ Test Suite which run as individual Job in jenkins. This will generate respective testng report on the nodes that it ran (index.html). can i consolidate all the 20+ reports into one report and show the reports for each cycle of execution.

  • are those test suite running in parallel of each other at the same time or not? – Yu Zhang Dec 13 '17 at 17:38
  • @YuZhang Yes all the test suites/jobs runs in parallel on available nodes – Sadiq Shaik Dec 14 '17 at 8:40
2

While generating reports I use org.uncommons.reportng.HTMLReporter and org.uncommons.reportng.JUnitXMLReporter from reportNG framework.

I use the following Ant Task to combine reports:

<target name="report.nightly" description="Generates the junit test report  project."> 

        <junitreport todir="${reports.combine}/logs"> 

            <!--testNg reports --> 
                <fileset dir="${reports.testng}/logs"> 
                        <include name="*/*.xml"/> 
                </fileset> 

          <!--junit  reports --> 
                <fileset dir="${reports.junit}/logs"> 
                        <include name="TEST-*.xml" /> 
                </fileset> 

                <!--consolidated reports --> 
                <report format="frames" todir="${artifacts.tests}" /> 
        </junitreport> 

</target> 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.