Skip to content

Commit d7b2338

Browse files
committed
first commit
0 parents  commit d7b2338

276 files changed

Lines changed: 8217 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.metadata/.lock

Whitespace-only changes.

.metadata/.log

Lines changed: 1454 additions & 0 deletions
Large diffs are not rendered by default.
71 Bytes
Binary file not shown.

.metadata/.mylyn/.taskListIndex/write.lock

Whitespace-only changes.
560 Bytes
Binary file not shown.

.metadata/.mylyn/tasks.xml.zip

235 Bytes
Binary file not shown.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
package base;
2+
3+
import java.io.FileInputStream;
4+
import java.io.FileNotFoundException;
5+
import java.io.IOException;
6+
import java.util.Properties;
7+
8+
import org.openqa.selenium.WebDriver;
9+
import org.testng.annotations.AfterSuite;
10+
import org.testng.annotations.BeforeSuite;
11+
12+
public class BaseClass {
13+
14+
15+
public static WebDriver driver = null;
16+
Properties config = null;
17+
Properties objectRepo = null;
18+
FileInputStream fis = null;
19+
20+
21+
public String getDriverString() throws IOException {
22+
config = new Properties();
23+
fis = new FileInputStream(System.getProperty("user.dir")+"\\src\\test\\resources\\properties\\Config.properties");
24+
config.load(fis);
25+
return config.getProperty("browser");
26+
27+
}
28+
29+
30+
31+
@BeforeSuite
32+
public void setUp() {
33+
34+
35+
36+
37+
}
38+
39+
@AfterSuite
40+
public void tearDown() {
41+
42+
}
43+
44+
45+
46+
47+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
package base;
2+
3+
import java.io.FileInputStream;
4+
import java.io.FileNotFoundException;
5+
import java.io.IOException;
6+
import java.util.Properties;
7+
8+
import org.openqa.selenium.WebDriver;
9+
import org.openqa.selenium.chrome.ChromeDriver;
10+
import org.openqa.selenium.firefox.FirefoxDriver;
11+
import org.testng.annotations.AfterSuite;
12+
import org.testng.annotations.BeforeSuite;
13+
14+
public class BaseClass {
15+
16+
17+
public static WebDriver driver = null;
18+
Properties config = null;
19+
Properties objectRepo = null;
20+
FileInputStream fis = null;
21+
22+
23+
public String getDriverString() throws IOException {
24+
config = new Properties();
25+
fis = new FileInputStream(System.getProperty("user.dir")+"\\src\\test\\resources\\properties\\Config.properties");
26+
config.load(fis);
27+
return config.getProperty("browser");
28+
29+
}
30+
31+
32+
33+
@BeforeSuite
34+
public void setUp() {
35+
36+
String webdriverString = null;
37+
try {
38+
webdriverString = getDriverString();
39+
} catch (IOException e) {
40+
// TODO Auto-generated catch block
41+
e.printStackTrace();
42+
}
43+
44+
if(webdriverString.equalsIgnoreCase("chrome")){
45+
46+
driver = new ChromeDriver();
47+
48+
}else if(webdriverString.equalsIgnoreCase("firefox")){
49+
driver = new FirefoxDriver();
50+
51+
52+
}else {
53+
54+
}
55+
56+
57+
58+
}
59+
60+
@AfterSuite
61+
public void tearDown() {
62+
63+
}
64+
65+
66+
67+
68+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package base;
2+
3+
import java.util.Properties;
4+
5+
import org.openqa.selenium.WebDriver;
6+
import org.testng.annotations.AfterSuite;
7+
import org.testng.annotations.BeforeSuite;
8+
9+
public class BaseClass {
10+
11+
12+
public static WebDriver driver = null;
13+
Properties config = null;
14+
Properties objectRepo = null;
15+
16+
17+
public void getDriver() {
18+
config = new Properties();
19+
objectRepo = new Properties();
20+
21+
22+
23+
24+
}
25+
26+
27+
28+
@BeforeSuite
29+
public void setUp() {
30+
31+
32+
33+
34+
}
35+
36+
@AfterSuite
37+
public void tearDown() {
38+
39+
}
40+
41+
42+
43+
44+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import java.util.*;
2+
3+
public class ArrayList {
4+
5+
public static void main(String[] args) {
6+
// TODO Auto-generated method stub
7+
Collection<Integer> a = (Collection<Integer>) new ArrayList();
8+
a.add(1);
9+
a.add(1);
10+
a.add(1);
11+
a.add(1);
12+
a.remove(1);
13+
14+
15+
}
16+
17+
}

0 commit comments

Comments
 (0)