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

Configuration: integrator-browserstack-tunnel #54

Closed
oscarbuho888 opened this issue Jun 2, 2017 · 1 comment
Closed

Configuration: integrator-browserstack-tunnel #54

oscarbuho888 opened this issue Jun 2, 2017 · 1 comment

Comments

@oscarbuho888
Copy link

oscarbuho888 commented Jun 2, 2017

Hi, i tried configurate BrowserStack Tunel with:

npm install --save integrator-browserstack-tunnel

But I can't make it work. My configuration is as follows:

configurations: {
browserstack: {
plugins: [
new integratorBrowserstackTunnel('userKey')
],
common: {
hub: 'http://hub.browserstack.com/wd/hub',
capabilities: {
'browserstack.user' : process.env.BROWSERSTACK_USERNAME || 'userName',
'browserstack.key' : process.env.BROWSERSTACK_ACCESS_KEY || 'userKey',
'build': 'protractor-browserstack',
'name': 'local_test',
'browserName': 'chrome',
'browserstack.local': true,
'browserstack.debug': 'true'
}
},
}
}

And the Error shown is:

/launcher - Running 1 instances of WebDriver
[21:46:44] I/hosted - Using the selenium server at http://hub.browserstack.com/wd/hub
[21:46:45] E/launcher - Authorization required
[21:46:45] E/launcher - WebDriverError: Authorization required
at WebDriverError (D:\SerenityJs\serenity-js-getting-started\node_modules\selenium-webdriver\lib\error.js:27:5)
at parseHttpResponse (D:\SerenityJs\serenity-js-getting-started\node_modules\selenium-webdriver\lib\http.js:521:11)
at doSend.then.response (D:\SerenityJs\serenity-js-getting-started\node_modules\selenium-webdriver\lib\http.js:440:13)
at process._tickCallback (internal/process/next_tick.js:109:7)
From: Task: WebDriver.createSession()
at Function.createSession (D:\SerenityJs\serenity-js-getting-started\node_modules\selenium-webdriver\lib\webdriver.js:777:24)
at Function.createSession (D:\SerenityJs\serenity-js-getting-started\node_modules\selenium-webdriver\chrome.js:709:29)
at createDriver (D:\SerenityJs\serenity-js-getting-started\node_modules\selenium-webdriver\index.js:167:33)
at Builder.build (D:\SerenityJs\serenity-js-getting-started\node_modules\selenium-webdriver\index.js:623:16)
at Hosted.getNewDriver (D:\SerenityJs\serenity-js-getting-started\node_modules\protractor\lib\driverProviders\driverProvider.ts:60:29)
at Runner.createBrowser (D:\SerenityJs\serenity-js-getting-started\node_modules\protractor\lib\runner.ts:225:39)
at q.then.then (D:\SerenityJs\serenity-js-getting-started\node_modules\protractor\lib\runner.ts:391:27)
at _fulfilled (D:\SerenityJs\serenity-js-getting-started\node_modules\q\q.js:834:54)
at self.promiseDispatch.done (D:\SerenityJs\serenity-js-getting-started\node_modules\q\q.js:863:30)
at Promise.promise.promiseDispatch (D:\SerenityJs\serenity-js-getting-started\node_modules\q\q.js:796:13)
[21:46:45] E/launcher - Process exited with error code 199

If someone already configured this, please tell me how to do it

Thank you¡

@jan-molak
Copy link
Member

Hey @oscarbuho888,

It seems to me that the integrator-browserstack-tunnel is an integrator plugin and is not designed to work with Protractor?

Have a look at the BrowserStack documentation to learn more about configuring BrowserStack-related capabilities.

Hope this helps!
Jan

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

2 participants