
TestNG Documentation
TestNG allows you to perform sophisticated groupings of test methods. Not only can you declare that methods belong to groups, but you can also specify groups that contain other groups. Then TestNG can be invoked and asked to include a certain set of groups (or regular expressions) while excluding another set.
Welcome to TestNG
Feb 27, 2025 · TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as: Annotations. Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc…
Download - TestNG
Feb 27, 2025 · TestNG Eclipse Plugin is hosted on GitHub, you can download the source code and build by ourselves.
Eclipse plug-in - testng-eclipse
The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output. Installation Follow the instructions to install the plug-in .
Annotations - TestNG
Feb 27, 2025 · The annotations above will also be honored (inherited) when placed on a superclass of a TestNG class. This is useful for example to centralize test setup for multiple test classes in a common superclass.
Parameters - TestNG
Feb 27, 2025 · TestNG can be passed parameters on the command line of the Java Virtual Machine using system properties (-D). Parameters passed in this way are not required to be pre-defined in testng.xml, but will override any parameters defined there.
Download Current Release Version - testng-eclipse
Update site for release: https://testng.org/testng-eclipse-update-site. Make sure the check box next to URL is checked and click Next. Eclipse will then guide you through the process.
TestNG Listeners
Feb 27, 2025 · TestNG orders only user’s listeners and which are not part of the exclusion list that can be specified via the JVM argument -Dtestng.preferential.listeners.package (Multiple fully qualified class names can be specified as comma separated values).
Logging and results - TestNG
Feb 27, 2025 · TestNG offers an XML reporter capturing TestNG specific information that is not available in JUnit reports. This is particularly useful when the user’s test environment needs to consume XML results with TestNG-specific data that the JUnit format can’t provide.
ReportNG - An HTML/XML reporting plug-in for TestNG
ReportNG is a simple HTML reporting plug-in for the TestNG unit-testing framework. It is intended as a replacement for the default TestNG HTML report. The default report is comprehensive but is not so easy to understand at-a-glance. ReportNG provides a …