Interview Questions

Selenium WebDriver - What are the benefits of using TestNG ?

Selenium WebDriver Interview question and Answers


(Continued from previous question...)

Selenium WebDriver - What are the benefits of using TestNG ?

a) TestNG allows us to execute of test cases based on group.
b) In TestNG Annotations are easy to understand.
c) Parallel execution of Selenium test cases is possible in TestNG.
d) Three kinds of report generated
e) Order of execution can be changed
f) Failed test cases can be executed
g) Without having main function we can execute the test method.
h) An xml file can be generated to execute the entire test suite. In that xml file we can rearrange our execution order and we can also skip the execution of particular test case.

(Continued on next question...)

Other Interview Questions