-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestNGNotes.html
42 lines (42 loc) · 1.39 KB
/
TestNGNotes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TestNG Framework</title>
</head>
<body>
<section>
<h1>Benefits:</h1>
<p>
<ol type="1">
<li>TestNG allows us to execute of test cases based on group.</li>
<li>In TestNG Annotations are easy to understand.</li>
<li>Parallel execution of Selenium test cases is possible in TestNG.</li>
<li>Three kinds of report generated</li>
<li>Order of execution can be changed</li>
<li>Failed test cases can be executed</li>
<li>Without having main function we can execute the test method.</li>
<li>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.
</li>
</ol>
</p>
<p>
<h1>Listeners:</h1>
<div>TestNG provides many listeners (as interfaces) which you can customise to your need to get output more
readable.
Here are the listeners:
<ol>
<li> IAnnotationTransformer</li>
<li> IAnnotationTransformer2</li>
<li> IHookable</li>
<li> IInvokedMethodListener</li>
<li> IMethodInterceptor</li>
<li> IReporter</li>
<li> ISuiteListener</li>
<li> ITestListener</li>
</div>
</p>
</section>
</body>
</html>