{jenkins-plugin-info:testng-plugin|jiraComponent=testng|sourceDir=testng-plugin-plugin}

This plugin allows you to publish TestNG results generated using org.testng.reporters.XMLReporter.

TestNG result xml file contains more information than the junit report xml file . This plugin exposes those extra information in graph and table reports.

This plugin makes it possible to import TestNG XML reports from each build into Jenkins.

The data is parsed using the output generated using org.testng.reporters.XMLReporter. The results are displayed with a trend graph and all details about which tests that failed are also presented.

Features

The page layouts are intentionally designed to look very similar to Jenkins's JUnit plugin.

Usage

Once you have configured your build to run TestNG based test cases and also generate the TestNG specific result XML, using this plugin is very simple. In Post-Build Actions, simply enable Publish TestNG Results. This option allows you to configure the following properties:

Pipeline in Jenkinsfile

According to  ..

post {
        always {
            step([$class: 'Publisher', reportFilenamePattern: '**/testng-results.xml'])
        }
}

Open Issues

Change Log

Release 1.15 (June 28th, 2018)

Release 1.14 (July 5th, 2016)

Release 1.13 (May 15th, 2016)

Release 1.12 (May 10th, 2016)

Release 1.11 (May 8th, 2016)

Release 1.10 (March 31st, 2015)

Release 1.9.1 (August 13th, 2014)

Release 1.9 (August 11th, 2014)

Release 1.8 (July 20th, 2014)

Release 1.7 (June 28th, 2014)

Release 1.6 (Feb 9th, 2014)

Release 1.5 (Aug 15th, 2013)

Release 1.4 (Aug 6th, 2013)

Release 1.3 (Jul 22nd, 2013)

Release 1.2 (Jun 30th, 2013)

Release 1.1 (Feb 1st, 2013)

Release 1.0 (Jan 21st, 2013)

Release 0.33 (Jan 06th, 2013)

Release 0.32 (February 14th, 2012)

Release 0.31 (January 31st, 2012)

Release 0.30 (January 22nd, 2012)

Release 0.29 (December 4th, 2011)

Release 0.28 (September 20th, 2011)

Release 0.27 (September 11th, 2011)

Release 0.26 (July 6th, 2011)

Release 0.25 (June 24th, 2011)

Release 0.24 (June 13th, 2011)

Release 0.23 (June 8th, 2011)

(NOTE: There is a slight break in backward compatibility in this release.
URLs for older data for test methods will change. Also, significant code changes and
features have been introduced in this version. Older builds might face some issues,
though the chances are very low.)

Release 0.22 (May 29th, 2011)

Release 0.21 (May 20th, 2011)

Release 0.20 (May 9th, 2011)

Release 0.19 (May 2nd, 2011)

Release 0.18 (April 28th, 2011)

Release 0.17 (April 24th, 2011)

Release 0.16 (March 25th, 2011)

Release 0.15 (March 24th, 2011)

Release 0.14 (February 18th, 2011)

Release 0.12 (February 12th, 2011)

Release  0.7 (October 25, 2010)

Release  0.5 (September 24, 2010)

Release  0.4 (August 17, 2010)

Release  0.1 (August 12, 2010)