Я хотел бы запустить тесты с помощью транспортира и браузера. Я следил за this post Я за прокси. Я установил browserstack местный и я запустить его с помощью этой команды:соединение стека браузера транспортира ETIMEDOUT
BrowserStackLocal.exe -v -proxyHost proxy -proxyPort port QgNaPBMSMoZ5s5dx1WFH localhost,9000,0
Все, кажется, работает обусловленно У меня есть это сообщение:
BrowserStackLocal v4.3
Setting up proxy connection to cornillon:8000
Proxy is configured
Connecting to BrowserStack using WebSocket protocol...
Platform supports WebSocket connections.
You can now access your local server(s) in our remote browser.
***
Please ensure your browser is configured to bypass proxy for "bs-local.com".
***
Press Ctrl-C to exit
Тогда я бегу мой Глоток задачи транспортир и у меня есть эта ошибка:
C:\Users\toto\Desktop\myapp3>gulp protractor
[16:11:44] Using gulpfile ~\Desktop\myapp3\gulpfile.js
[16:11:44] Starting 'protractor'...
[16:11:44] Finished 'protractor' after 6.9 ms
Using the selenium server at http://hub.browserstack.com/wd/hub
[launcher] Running 1 instances of WebDriver
C:\Users\toto\Desktop\myapp3\node_modules\selenium-webdriver\http\index.js:174
callback(new Error(message));
^
Error: ETIMEDOUT connect ETIMEDOUT 208.52.180.201:80
at ClientRequest.<anonymous> (C:\Users\toto\Desktop\myapp3\node_modules\selenium-webdriver\http\index.js:174:16)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at Socket.socketErrorListener (_http_client.js:259:9)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at emitErrorNT (net.js:1253:8)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
From: Task: WebDriver.createSession()
at Function.webdriver.WebDriver.acquireSession_ (C:\Users\toto\Desktop\myapp3\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:157:22)
at Function.webdriver.WebDriver.createSession (C:\Users\toto\Desktop\myapp3\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:131:30)
at [object Object].Builder.build (C:\Users\toto\Desktop\myapp3\node_modules\selenium-webdriver\builder.js:445:22)
at [object Object].DriverProvider.getNewDriver (C:\Users\toto\Desktop\myapp3\node_modules\protractor\lib\driverProviders\driverProvider.js:38:7)
at [object Object].Runner.createBrowser (C:\Users\toto\Desktop\myapp3\node_modules\protractor\lib\runner.js:186:37)
at C:\Users\toto\Desktop\myapp3\node_modules\protractor\lib\runner.js:276:21
at _fulfilled (C:\Users\toto\Desktop\myapp3\node_modules\protractor\node_modules\q\q.js:797:54)
at self.promiseDispatch.done (C:\Users\toto\Desktop\myapp3\node_modules\protractor\node_modules\q\q.js:826:30)
at Promise.promise.promiseDispatch (C:\Users\toto\Desktop\myapp3\node_modules\protractor\node_modules\q\q.js:759:13)
at C:\Users\toto\Desktop\myapp3\node_modules\protractor\node_modules\q\q.js:525:49
[launcher] Process exited with error code 1
C:\Users\toto\Desktop\myapp3\gulpfile.js:352
.on('error', function(e) { throw e; });
^
Error: protractor exited with code 1
Это мой protractor.conf.js файл:
var proxy = 'http://proxy:port';
exports.config = {
capabilities: {
proxy: {
proxyType: 'manual',
httpProxy: proxy,
sslProxy: proxy,
noProxy: 'bs-local.com'
},
'browserstack.user': 'toto',
'browserstack.key': 'key', // show on BrowserStack
// Needed for testing localhost
'browserstack.local' : 'true',
// Settings for the browser you want to test
// (check docs for difference between `browser` and `browserName`
'browserName' : 'chrome',
'version' : '43.0',
'os' : 'OS X',
'os_version' : 'Yosemite',
'resolution' : '1024x768'
},
seleniumAddress: 'http://hub.browserstack.com/wd/hub',
specs: ['./src/app/**/*.spec.e2e.js']
};
Кажется, это проблема с сетью, поэтому, вероятно, прокси плохо настроен.
Могу ли я вам помочь?
Благодаря