Skip to content
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

BrowserStack host needed in tunnelOptions? #28

Open
oyvindeh opened this issue Nov 30, 2015 · 4 comments
Open

BrowserStack host needed in tunnelOptions? #28

oyvindeh opened this issue Nov 30, 2015 · 4 comments
Assignees

Comments

@oyvindeh
Copy link

I tried to run the tutorial code towards BrowserStack, but nothing happened after the tunnel was created. No session appeared in the BrowserStack session interface. However, after adding host to tunnelOptions, it worked:

tunnelOptions: {
    username: '<your username>',
    accessKey: '<your access key>',
    host: 'hub.browserstack.com'
},

Perhaps the tutorial needs to be updated, or is this related to account type or something?

@sholladay
Copy link

The best solution to this is to make sure tunnelOptions is undefined. Intern will do the correct thing in that situation. And the easiest solution to that is usually to not specify tunnelOptions at all.

If/when you need to have a username or access key, you should set those via environment variables and not in your config file. Consider tunnelOptions a last resort.

That said, I think the problem here is that when you do put tunnelOptions in, it won't merge that object with its defaults. It is sort of all or nothing.

@beerendlauwers
Copy link

I had the same issue - adding the host key resolved the issue for me as well.

@dylans dylans self-assigned this Feb 10, 2016
@balmyBanzai
Copy link

Is this still considered an open bug, or working as intended? Or, working as intended and could use a documentation update?

@mlynn1402
Copy link

Adding the following code to the "intern.js" config file, got my tests running as required

tunnel: 'BrowserStackTunnel',

tunnelOptions: {
    username: '<your username>',
    accessKey: '<your access key>',
},

N.B. The username and accessKey can be found on the BrowserStack website, after creating account and navigating to

https://www.browserstack.com/accounts/settings

At the bottom of the page is a section called "Automate"

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

No branches or pull requests

6 participants