forked from saucelabs-training/demo-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJUnit3UpdateSauceStatusTest.java
91 lines (77 loc) · 2.67 KB
/
JUnit3UpdateSauceStatusTest.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.saucedemo;
import com.saucelabs.saucebindings.SauceSession;
import junit.framework.TestCase;
import org.openqa.selenium.WebDriver;
public class JUnit3UpdateSauceStatusTest extends TestCase {
private WebDriver driver;
private boolean isTestPassed = false;
private SauceSession session;
//with sauce bindings
public void setUp() {
session = new SauceSession();
driver = session.start();
}
public void tearDown() {
session.stop(isTestPassed);
}
public void testSauceStatus() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus2() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus3() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus4() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus5() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus6() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus7() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus8() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus9() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
public void testSauceStatus10() {
driver.navigate().to("https://www.saucedemo.com");
String getTitle = driver.getTitle();
assertEquals(getTitle, "Swag Labs");
isTestPassed = true;
}
}