-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathTestBase.java
More file actions
37 lines (25 loc) · 813 Bytes
/
TestBase.java
File metadata and controls
37 lines (25 loc) · 813 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
package com.qa.base;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
public class TestBase {
public int RESPONSE_STATUS_CODE_200 = 200;
public int RESPONSE_STATUS_CODE_500 = 500;
public int RESPONSE_STATUS_CODE_400 = 400;
public int RESPONSE_STATUS_CODE_401 = 401;
public int RESPONSE_STATUS_CODE_201 = 201;
public Properties prop;
public TestBase(){
try {
prop = new Properties();
FileInputStream ip = new FileInputStream(System.getProperty("user.dir")+"/src/main/java/com/qa/config/config.properties");
prop.load(ip);
System.out.println("krishna");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}