testinganswers.com

Month: June 2019

16.1 Annotation

An annotation is a form of metadata that provides data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code which is annotated. The annotation has a number of uses and a few of them are as follows:  Annotation can be used by the compiler to detect errors or suppress warnings. Annotations can be examined at runtime. Software tools can be written that process annotation information to generate code, XML files, etc. An important use of annotation in test automation is to define the test type (functional, regression) Read More