Skip to content

Commit 77d36d0

Browse files
kamal-kaur04francisf
authored andcommitted
change sample local test and add local identifier
1 parent b66671c commit 77d36d0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ gradle
1010
gradlew
1111
gradlew.bat
1212
logs
13+
browserstack.err

Diff for: browserstack.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ parallelsPerPlatform: 1
5858
# Set browserStackLocal to true if your website under test is not accessible publicly over the internet
5959
# Learn more about how BrowserStack Local works here -> https://www.browserstack.com/docs/automate/selenium/local-testing-introduction
6060
browserstackLocal: true # <boolean> (Default false)
61-
# browserStackLocalOptions:
61+
browserStackLocalOptions:
6262
# Options to be passed to BrowserStack local in-case of advanced configurations
63-
# - localIdentifier: # <string> (Default: null) Needed if you need to run multiple instances of local.
64-
# - forceLocal: true # <boolean> (Default: false) Set to true if you need to resolve all your traffic via BrowserStack Local tunnel.
63+
localIdentifier: browserstack_sample # <string> (Default: null) Needed if you need to run multiple instances of local.
64+
# forceLocal: true # <boolean> (Default: false) Set to true if you need to resolve all your traffic via BrowserStack Local tunnel.
6565
# Entire list of arguments available here -> https://www.browserstack.com/docs/automate/selenium/manage-incoming-connections
6666

6767
# ===================

Diff for: src/test/java/com/browserstack/LocalTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
public class LocalTest extends BrowserStackRemoteTest {
77

88
@Test
9-
public void test() throws Exception {
10-
driver.get("http://bs-local.com:45691/check");
9+
public void test() {
10+
driver.get("http://bs-local.com:45454/");
1111

12-
Assert.assertTrue(driver.getPageSource().contains("Up and running"));
12+
Assert.assertTrue(driver.getTitle().contains("BrowserStack Local"));
1313
}
1414
}

0 commit comments

Comments
 (0)