QuickBuild2 Documentation
|
To publish TestNG report, you only need two steps:
Generate TestNG ReportQuickBuild will NOT generate TestNG reports automatically, so first make sure the TestNG report is produced by ANT or by any other build tool. The following example shows how to generate TestNG test results with Ant TestNG task: JUnit target in build.xml <testng classpathref="run.cp" outputDir="${testng.report.dir}" sourcedir="${test.src.dir}" haltOnfailure="false"> <xmlfileset dir="${test14.dir}" includes="testng.xml"/> </testng> By default, TestNG will create both XML and HTML reports. You can customize the report listener for TestNG to generate the reports, the detailed information can be referred to TestNG webiste.
Publish TestNG ReportTo publish TestNG report is fairly simple, just tell QuickBuild where the TestNG reports exist by inputting the file pattern which is a relative path based on the workspace directory. If you have several report sets, you can add several publish TestNG steps with different report set names. |