Skip to content

Added source capability #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void setUp() throws Exception {
JSONArray envs = (JSONArray) config.get("environments");

DesiredCapabilities capabilities = new DesiredCapabilities();

capabilities.setCapability("browserstack.source", "junit-4:sample-selenium-3:v1.0");
Map<String, String> envCapabilities = (Map<String, String>) envs.get(taskID);
Iterator it = envCapabilities.entrySet().iterator();
while (it.hasNext()) {
Expand Down
4 changes: 2 additions & 2 deletions junit-4/src/test/resources/conf/local.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"user": "BROWSERSTACK_USERNAME",
"key": "BROWSERSTACK_ACCESS_KEY",
"capabilities": {
"build": "junit-browserstack",
"name": "local_test",
"build": "browserstack-build-1",
"name": "BStack local junit-4",
"browserstack.debug": true,
"browserstack.local": true
},
Expand Down
4 changes: 2 additions & 2 deletions junit-4/src/test/resources/conf/parallel.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"user": "BROWSERSTACK_USERNAME",
"key": "BROWSERSTACK_ACCESS_KEY",
"capabilities": {
"build": "junit-browserstack",
"name": "parallel_test",
"build": "browserstack-build-1",
"name": "BStack parallel junit-4",
"browserstack.debug": true
},
"environments": [
Expand Down
4 changes: 2 additions & 2 deletions junit-4/src/test/resources/conf/single.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"user": "BROWSERSTACK_USERNAME",
"key": "BROWSERSTACK_ACCESS_KEY",
"capabilities": {
"build": "junit-browserstack",
"name": "single_test",
"build": "browserstack-build-1",
"name": "BStack single junit-4",
"browserstack.debug": true
},
"environments": [
Expand Down
1 change: 1 addition & 0 deletions junit-5/src/test/java/runners/BstackRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public Stream<TestTemplateInvocationContext> provideTestTemplateInvocationContex

while (platformIterator.hasNext()) {
capabilities = new DesiredCapabilities();
capabilities.setCapability("browserstack.source", "junit-5:sample-selenium-3:v1.0");
Iterator commonCapsIterator = commonCapsMap.entrySet().iterator();
while (commonCapsIterator.hasNext()) {
Map.Entry capsName = (Map.Entry) commonCapsIterator.next();
Expand Down
12 changes: 6 additions & 6 deletions junit-5/src/test/resources/caps.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"tests": {
"single": {
"common_caps": {
"name": "single-test",
"build": "junit5-browserstack",
"name": "BStack single junit-5",
"build": "browserstack-build-1",
"browserstack.console": "verbose",
"browserstack.networkLogs": "true",
"browserstack.debug": "true"
Expand All @@ -22,8 +22,8 @@
},
"local": {
"common_caps": {
"name": "local-test",
"build": "junit5-browserstack",
"name": "BStack local junit-5",
"build": "browserstack-build-1",
"browserstack.console": "verbose",
"browserstack.local": "true",
"browserstack.debug": "true"
Expand All @@ -39,8 +39,8 @@
},
"parallel": {
"common_caps": {
"name": "parallel-test",
"build": "junit5-browserstack",
"name": "BStack parallel junit-5",
"build": "browserstack-build-1",
"browserstack.console": "verbose",
"browserstack.debug": "true"
},
Expand Down