-
Notifications
You must be signed in to change notification settings - Fork 39
[Issue #11] Support for localIdentifier capability #13
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
Conversation
bin/helpers/capabilityHelper.js
Outdated
@@ -33,6 +33,11 @@ const caps = (bsConfig, zip) => { | |||
if (bsConfig.connection_settings.local === true) obj.local = true; | |||
logger.log(`Local is set to: ${obj.local}`); | |||
|
|||
// Local Identifier | |||
obj.localIdentifier = null; | |||
if (bsConfig.connection_settings.localIdentifier) obj.localIdentifier = bsConfig.connection_settings.localIdentifier; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check local is true as well.
README.md
Outdated
@@ -80,6 +81,7 @@ The following table provides a reference for all the options that can be provide | |||
| `project` | Name of your project. This will be displayed in your Automate dashboard, and you'll be able to search & filter your tests based on the project name. | A string providing the name of the project | | |||
| `customBuildName` | Helps in providing a custom name for the build. This will be displayed in your Automate dashboard, and you'll be able to search & filter your tests based on the build name. | A string providing the name of the build | | |||
| `local` | Helps in testing websites that cannot be accessed in public network. If you set this to `true`, please download the Local binary and establish a local connection first (you can learn how to do so [here](https://www.browserstack.com/local-testing/automate#command-line)) | Boolean: `true` / `false`. Set this to `true` if you need to test a local website. Set this to `false` if the website is accessible publicly. | | |||
| `localIdentifier` | Configure the test script to run through a specific connection. To do so, set the value of localIdentifier capability to be a unique connection name. | Set this when `local` is set to `true`. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the text in 2nd column to:
The BrowserStack Local tunnel that should be used to resolve requests. This is applicable only when you start a Local binary with a local identifier. Your tests might fail if you use an invalid local identifier. This option will be ignored if local
option is set to false
.
Change the text in 3rd column to:
A string if a tunnel identified by the Local identifier should be used (should be same as the one used to start the Local binary). Set this to null
(default value) to resolve requests using Local without a Local identifier.
Description: Provides support for localIdentifier capability to be used while running local sessions
Issue Link: #11