TestNG Annotations - Part 1

TestNG is a testing framework that overcomes the limitations of another  testing framework called JUnit.  "NG" means "Next Generation". Now a days Selenium users use this more than JUnit because of its advantages.
What is meant by Annotation?

TestNG Annotations are lines of code that can control how the method below them will be executed. They are always preceded by the symbol.

If we go by the literal meaning, annotation is basically information or a note that has been added to a text or a program.
That means they provide information about data  , so we can say they they are a form of metadata (as we learnt about metadata in the post about BigData ). 

In java this bit of information called metadata or annotation is attached to code for verification.We can attach them to Classes or Methods or parameters . 
Previous                                                                              Next