-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathGlobalConfigTest.java
More file actions
38 lines (28 loc) · 825 Bytes
/
GlobalConfigTest.java
File metadata and controls
38 lines (28 loc) · 825 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 com.browserstack.automate.ci.jenkins;
import org.htmlunit.html.HtmlPage;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
/**
* @author Shirish Kamath
* @author Anirudha Khanna
*/
public class GlobalConfigTest {
@Rule
public JenkinsRule jenkinsRule = new JenkinsRule();
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void testConfigElements() throws Exception {
HtmlPage page = jenkinsRule.createWebClient().goTo("configure");
String pageText = page.asText();
Assert.assertTrue("Missing: BrowserStack Global Config", pageText.contains("BrowserStack"));
}
}