-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestMethods.java
More file actions
44 lines (38 loc) · 796 Bytes
/
TestMethods.java
File metadata and controls
44 lines (38 loc) · 796 Bytes
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
package TestNgsuite;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.AfterMethod;
public class TestMethods {
WebDriver driver;
@BeforeMethod
public void TestingStarted()
{
System.out.println("Testing Started");
}
@AfterMethod
public void TestingEnded()
{
System.out.println("Testing Ended");
}
@Test(priority=1)
public void FirststTest()
{
System.out.println("1st case passed");
}
@Test(priority=2)
public void SecondTest()
{
System.out.println("2nd case passed");
}
@Test(priority=3)
public void ThirdTest()
{
System.out.println("3rf case passed");
}
@Test(priority=4)
public void FourthTest()
{
System.out.println("4th case passed");
}
}