TestNG Annotations
Annotation is a feature introduced in Java 5 and is used to add metadata to Java source code. This will allow you to add information to an existing data object in your source code. It can be applied for Classes, Methods, Variables and Parameters. Java allows users to define their own annotations too. TestNG made use of the same feature to define its own annotations. TestNg Annotations will direct the execution flow of the program.
The following is a table containing information about all the annotations in the TestNG and a brief description of them:
[table id=2 /]










