-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseClass.java
More file actions
44 lines (35 loc) · 917 Bytes
/
BaseClass.java
File metadata and controls
44 lines (35 loc) · 917 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 com.baseclass;
import org.testng.annotations.Test;
import com.utility.Log;
import org.apache.log4j.xml.DOMConfigurator;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.AfterSuite;
public class BaseClass {
@Test
public void TestCase1() {
Log.startTestCase("TestCase1");
Log.info("This is TestCase1");
Log.endTestCase("TestCase1");
}
@Test
public void TestCase2() {
Log.startTestCase("TestCase2");
Log.warn("This is TestCase2");
Log.endTestCase("TestCase2");
}
@Test
public void TestCase3() {
Log.startTestCase("TestCase3");
Log.error("This is TestCase3");
Log.endTestCase("TestCase3");
}
@BeforeSuite
public void beforeSuite() {
DOMConfigurator.configure("src/test/resources/log4j.xml");
Log.info("This is beforeSuite Method");
}
@AfterSuite
public void afterSuite() {
Log.info("This is afterSuite Method");
}
}