-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUISample.java
74 lines (57 loc) · 1.44 KB
/
UISample.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
74
package driverScripts.sample;
import org.testng.annotations.Test;
import test.automation.helper.ReadExcel;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.AfterSuite;
public class UISample {
//To Be Imp By User
ReadExcel readExcel=new ReadExcel();
@Test(dataProvider = "TestAutomationData")
public void f(Integer n, String s) {
//To Be Imp By User
}
@BeforeMethod
public void beforeMethod() {
//To Be Imp By User
}
@AfterMethod
public void afterMethod() {
//To Be Imp By User
}
@DataProvider(name="empLogin")
public Object[][] loginData(String filepath,String sheetName) {
Object[][] arrayObject = readExcel.getExcel2D(filepath,sheetName);
return arrayObject;
}
@BeforeClass
public void beforeClass() {
//To Be Imp By User
}
@AfterClass
public void afterClass() {
//To Be Imp By User
}
@BeforeTest
public void beforeTest() {
//To Be Imp By User
}
@AfterTest
public void afterTest() {
//To Be Imp By User
}
@BeforeSuite
public void beforeSuite() {
//To Be Imp By User
}
@AfterSuite
public void afterSuite() {
//To Be Imp By User
}
}