Skip to content

Commit 1dce999

Browse files
Neha Agarwalfrancisf
authored andcommitted
Hardcoded source
1 parent cc9c31c commit 1dce999

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

browserstack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ buildName: browserstack-build-1
2121
projectName: BrowserStack Samples
2222
# Use `framework` to set the framework of your project. Example, testng, cucumber, cucumber-testng
2323
framework: testng
24-
source: testng:sample-sdk-v1.0
24+
2525
# =======================================
2626
# Platforms (Browsers / Devices to test)
2727
# =======================================

src/test/java/com/browserstack/BrowserStackRemoteTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.browserstack;
22

33
import java.net.URL;
4+
import java.util.HashMap;
45

56
import org.openqa.selenium.WebDriver;
67
import org.openqa.selenium.remote.DesiredCapabilities;
@@ -15,6 +16,9 @@ public class BrowserStackRemoteTest {
1516
@SuppressWarnings("unchecked")
1617
public void setUp() throws Exception {
1718
DesiredCapabilities capabilities = new DesiredCapabilities();
19+
HashMap<String, String> bstackOptionsMap = new HashMap<String, String>();
20+
bstackOptionsMap.put("source", "testng:sample-sdk:v1.0");
21+
capabilities.setCapability("bstack:options", bstackOptionsMap);
1822
driver = new RemoteWebDriver(
1923
new URL("https://hub.browserstack.com/wd/hub"), capabilities);
2024
}

0 commit comments

Comments
 (0)