-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBugRaiserSource
More file actions
38 lines (27 loc) · 966 Bytes
/
BugRaiserSource
File metadata and controls
38 lines (27 loc) · 966 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
package org.raisebugs;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
import java.io.IOException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.AfterClass;
public class NewTest {
DesiredCapabilities dc = DesiredCapabilities.firefox();
WebDriver driver = new FirefoxDriver(dc);
@Test
public void launchWebsite() throws IOException {
Process proc = Runtime.getRuntime().exec("/home/prasad/eclipse-workspace/javaworkspace/AutoBugRaiser/src/org/raisebugs/testfile.sh");
driver.get("http://www.google.in");
}
@BeforeClass
public void beforeClass()
{
System.setProperty("webdriver.firefox.bin","/usr/bin/firefox");
System.setProperty("webdriver.gecko.driver", "/usr/bin/geckodriver");
}
@AfterClass
public void afterClass() {
driver.quit();
}
}