-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestNG1.java
73 lines (44 loc) · 1.02 KB
/
TestNG1.java
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package selenium;
import org.testng.annotations.*; //FOR MULTIPLE ANNATATIONS USE STAR "*"
public class TestNG1 {
@Test
public void a2() {
System.out.println("a2 test method");
}
@BeforeTest
public void b() {
System.out.println("Before Test Method");
}
@BeforeSuite
public void c() {
System.out.println("BeforeSuite Method");
}
@AfterMethod
public void d() {
System.out.println("AfterMethod method");
}
@BeforeClass
public void e() {
System.out.println("BeforeClass Method");
}
@AfterTest
public void f() {
System.out.println("After Test Method");
}
@AfterClass
public void g() {
System.out.println("AfterClass Method");
}
@BeforeMethod
public void h() {
System.out.println("BeforeMethod Method");
}
@AfterSuite
public void i() {
System.out.println("AfterSuite Method");
}
@Test
public void al() {
System.out.println("al test method");
}
}