Я следую руководству http://webdriver.io/guide.html. Выполнение TestRunner в соответствии с инструкциями на этой странице, похоже, не помогает.
Ошибки, которые я вижу:
PS C:\webdriverio-test> .\node_modules\.bin\wdio .\wdio.conf.js
ERROR: connect ECONNREFUSED 127.0.0.1:4444
firefox
at new RuntimeError (C:\webdriverio-test\node_modules\webdriverio\build\lib\utils\ErrorHandler.js:144:12)
at Request._callback (C:\webdriverio-test\node_modules\webdriverio\build\lib\utils\RequestHandler.js:330:43)
at self.callback (C:\webdriverio-test\node_modules\request\request.js:186:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.onRequestError (C:\webdriverio-test\node_modules\request\request.js:878:8)
at emitOne (events.js:121:20)
at ClientRequest.emit (events.js:211:7)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
Файл wdio.conf.js:
exports.config = {
specs: [
'./test/specs/**/*.js'
],
exclude: [
],
maxInstances: 10,
capabilities: [{
maxInstances: 5,
browserName: 'firefox'
}],
sync: true,
// Level of logging verbosity: silent | verbose | command | data | result | error
logLevel: 'silent',
coloredLogs: true,
deprecationWarnings: true,
bail: 0,
screenshotPath: './errorShots/',
baseUrl: 'http://<machine_ip_here>',
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
framework: 'mocha',
reporters: ['dot'],
mochaOpts: {
ui: 'bdd'
},
}
Я что-то пропустил?
Пожалуйста, ознакомьтесь с этим ответом ниже и попробуйте:
Уметь исправить проблему самостоятельно после некоторых исследований.
Проблема заключается в несоответствии версии.
Верификация geckoDriver равна 0,20.0, а версия firefox, которую я использовал, - 52.
Я обновил Firefox до последнего. т.е. версия 59 и я смогли успешно выполнить тест.
Согласно примечаниям выпуска geckoDriver версии 0.19.0
Note that with geckodriver v0.19.0 the following versions are recommended:
Firefox 55.0 (and greater)
Selenium 3.5 (and greater)
So i understood that the higher version also should have the same property.
Благодарю, Naveen