Interview Questions

Selenium WebDriver - What is JUnit Annotations and what are different types of annotations which are useful ?

Selenium WebDriver Interview question and Answers


(Continued from previous question...)

Selenium WebDriver - What is JUnit Annotations and what are different types of annotations which are useful ?

In JAVA a special form of syntactic meta-data can be added to Java source code, this is know as Annotations. Variables, parameters, packages, methods and classes are annotated some of the JUnit annotations which can be useful are

Test
Before
After
Ignore
BeforeClass
AfterClass
RunWith

(Continued on next question...)

Other Interview Questions