February 2017
Intermediate to advanced
1023 pages
24h 11m
English
TestNG (Next Generation) is another testing framework that is similar to the JUnit 4 framework, but it has new functionalities such as grouping concept, and dependency testing. These have made testing easier and more powerful. It is designed to cover all the categories of tests, such as the unit test, the functional test, the integration test, and so on. TestNG also supports multi-threaded testing.
TestNG uses annotations; a few of them are listed in the following table:
|
Annotation |
Import |
Description |
|---|---|---|
|
|
|
It marks the method as a test method |
|
|
|
The annotated method will be executed before each |
|
|
Read now
Unlock full access