Skip to content

Conversation

@reeteshranjan
Copy link

@reeteshranjan reeteshranjan commented Apr 29, 2017

Travis integration - localIdentifier

As described in https://docs.travis-ci.com/user/browserstack/ and https://www.browserstack.com/automate/travisci, when using Selenium, there is a identifier associated with each local connection created, and it is provided in the environment variable BROWSERSTACK_LOCAL_IDENTIFIER and must be included in the settings, in case multiple local connections are used.

The change in this commit takes the ruby selenium webdriver example described in above links, and provides the same steps for this testem browserstack integration. This change has been verified with a Travis build running testem ci for the repository https://github.com/reeteshranjan/browse.js.

Testem browser start timeout

Testem has a default browser start timeout of 30 seconds, which hits few times while trying to run BrowserStack tests using testem. The default setting is being overridden with a timeout of 600 (10 minutes) which should avoid this in most cases.

The error message that pops up when this timeout occurs is the following:

"Browser failed to connect within 30s. testem.js not loaded?"

As described in https://docs.travis-ci.com/user/browserstack/ and
https://www.browserstack.com/automate/travisci, when using Selenium
there is a identifier associated with each local connection created,
and it is provided in the environment variable
BROWSERSTACK_LOCAL_IDENTIFIER and must be included in the settings.

The change in this commit takes the ruby selenium webdriver example
described in above links, and provides the same steps for this testem
browserstack integration.
Testem has a default browser start timeout of 30 seconds, which hits
few times while trying to run BrowserStack tests using testem. The
default setting is being overridden with a timeout of 600 (10 minutes)
which should avoid this in most cases.

The error message that pops up when this timeout occurs is the
following:

"Browser failed to connect within 30s. testem.js not loaded?"
@reeteshranjan reeteshranjan changed the title Support for "localIdentifier" setting/capability Support for "localIdentifier" setting/capability & Avoiding testem default browser start timeout Apr 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant