You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Krishnan Mahadevan edited this page Jan 14, 2024
·
8 revisions
Welcome! TestNG is a unit testing framework for the Java programming language inspired by JUnit and NUnit. The design goal of TestNG is to facilitate all kinds of tests: unit, functional, end-to-end, integration, etc., with more powerful, flexible and easier-to-use functionalities. TestNG's main features include:
Annotation support.
Support for parameterized and data-driven testing (with @DataProvider and/or XML configuration).
Support for multiple instances of the same test class (with @Factory)
Flexible execution model. TestNG can be run either by Ant via build.xml (with or without a test suite defined), or by an IDE plugin with visual results. There isn't a TestSuite class, while test suites, groups and tests selected to run are defined and configured by XML files.
Concurrent testing: run tests in arbitrarily big thread pools with various policies available and test whether the code is multithread safe.
Embeds BeanShell for further flexibility.
Default JDK functions for runtime and logging (no dependencies).
Dependent methods for application server testing.
Distributed testing: allows distribution of tests on slave machines.