Skip to content

Commit

Permalink
update keys in browserstack.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nagpalkaran95 committed May 12, 2020
1 parent ee3be8e commit 5513ca6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions bin/helpers/capabilityHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ const caps = (bsConfig, zip) => {

// Local Identifier
obj.localIdentifier = null;
if (obj.local === true && bsConfig.connection_settings.localIdentifier)
if (obj.local === true && (bsConfig.connection_settings.localIdentifier || bsConfig.connection_settings.local_identifier))
{
obj.localIdentifier = bsConfig.connection_settings.localIdentifier;
obj.localIdentifier = bsConfig.connection_settings.localIdentifier || bsConfig.connection_settings.local_identifier;
logger.log(`Local Identifier is set to: ${obj.localIdentifier}`);
}

// Project name
obj.project = bsConfig.run_settings.project
obj.project = bsConfig.run_settings.project || bsConfig.run_settings.project_name;
if (!obj.project) logger.log(`Project name is: ${obj.project}`);

// Base url
obj.base_url = bsConfig.run_settings.baseUrl
if (obj.base_url) logger.log(`Base url is : ${obj.base_url}`);

// Build name
obj.customBuildName = bsConfig.run_settings.customBuildName
obj.customBuildName = bsConfig.run_settings.customBuildName || bsConfig.run_settings.build_name;
if (obj.customBuildName) logger.log(`Build name is: ${obj.customBuildName}`);

//callback url
Expand Down
6 changes: 3 additions & 3 deletions bin/templates/configTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ module.exports = function () {
],
"run_settings": {
"cypress_proj_dir" : "/path/to/cypress.json",
"project": "project-name",
"customBuildName": "build-name"
"project_name": "project-name",
"build_name": "build-name"
},
"connection_settings": {
"local": false,
"localIdentifier": null
"local_identifier": null
}
}
var EOL = require('os').EOL
Expand Down

0 comments on commit 5513ca6

Please sign in to comment.