Skip to content

Commit 6fa48f6

Browse files
Merge pull request #30 from kamal-kaur04/keep-source-out-of-config
keep source key out of config file
2 parents 5400040 + 5c11727 commit 6fa48f6

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/test/java/com/browserstack/util/Utility.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static JSONObject getCombinedCapability(Map<String, String> envCapabiliti
3232
JSONObject bstackOptions = commonCapabilities.get("bstack:options") != null ? (JSONObject) commonCapabilities.get("bstack:options") : new JSONObject();
3333
bstackOptions.putIfAbsent("userName", username);
3434
bstackOptions.putIfAbsent("accessKey", accessKey);
35+
bstackOptions.putIfAbsent("source", "cucumber-java:sample-master:v1.0");
3536
capabilities.put("bstack:options", bstackOptions);
3637

3738
while (it.hasNext()) {

src/test/resources/conf/local.conf.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
"capabilities": {
77
"bstack:options": {
88
"buildName": "browserstack-build-1",
9-
"sessionName": "BStack Local Test",
9+
"sessionName": "BStack local cucumber-java",
1010
"debug": true,
11-
"local": true,
12-
"source": "cucumber:sample-master-v1.0"
11+
"local": true
1312
}
1413
},
1514

src/test/resources/conf/parallel.conf.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
"capabilities": {
77
"bstack:options": {
88
"buildName": "browserstack-build-1",
9-
"sessionName": "BStack Parallel Test",
9+
"sessionName": "BStack parallel cucumber-java",
1010
"browserVersion": "latest",
11-
"debug": true,
12-
"source": "cucumber:sample-master-v1.0"
11+
"debug": true
1312
}
1413
},
1514

src/test/resources/conf/single.conf.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
"capabilities": {
77
"bstack:options": {
88
"buildName": "browserstack-build-1",
9-
"sessionName": "BStack Single Test",
9+
"sessionName": "BStack single cucumber-java",
1010
"browserVersion": "latest",
11-
"debug": true,
12-
"source": "cucumber:sample-master-v1.0"
11+
"debug": true
1312
}
1413
},
1514

0 commit comments

Comments
 (0)