> For the complete documentation index, see [llms.txt](https://n-saikiran.gitbook.io/jenkins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n-saikiran.gitbook.io/jenkins/jenkins-configurations/24-configure-testng-with-jenkins.md).

# 2.4 Configure TestNG with Jenkins

TestNG 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.It makes 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.

The first thing that needs to be done is to install the TestNG plugin into Jenkins, to do this:

1. Open Jenkins in a browser
2. On the Welcome screen click on the "Manage Jenkins" link
3. Click on the "Manage Plugins" link
4. On the Plugin Manager screen click on the "Available" tab![](/files/-M4S6nNIg0wJeWQID543)
5. Scroll down to find the "**TestNG**" plugin, check the box beside it and click the "**Download now and install after restart**" button
6. Once Jenkins has restarted, click on the "Installed" tab and you will see that the TestNG plugin is now installed.
7. Click on the "Restart Once No Jobs Are Running" button
8. This completes the installation of the TestNG plugin.
9. If we now run a job in testNG then it automatically generates a graph

![](/files/-M4S6nNKy2FrghzDL5AU)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://n-saikiran.gitbook.io/jenkins/jenkins-configurations/24-configure-testng-with-jenkins.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
