You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gulp.task('webdriverTest', ['selenium'], function() {
var creatLauncherWithConfig = function(env){
var strFile = path.join(__dirname, 'wdio.conf.js');
var wdio = new Launcher(strFile);
return wdio;
}
var wdio = creatLauncherWithConfig(gutil.env);
wdio.run().then(function (code) {
process.exit(code);
}, function (error) {
console.error('Launcher failed to start the test', error.stacktrace);
process.exit(1);
});
});
This is the error:
cucumber_boilerplate_prototype\node_modules\webdriverio\build\lib\utils\BaseReporter.js:336
throw _iteratorError;
^
TypeError: Cannot read property 'toLowerCase' of undefined
at JunitReporter.prepareName (c:\projects\cucumber_boilerplate_prototype\node_modules\wdio-junit-reporter\build\reporter.js:98:24)
at JunitReporter.prepareXml (c:\projects\cucumber_boilerplate_prototype\node_modules\wdio-junit-reporter\build\reporter.js:147:57)
at JunitReporter.onEnd (c:\projects\cucumber_boilerplate_prototype\node_modules\wdio-junit-reporter\build\reporter.js:75:36)
at emitOne (events.js:77:13)
at JunitReporter.emit (events.js:169:7)
at BaseReporter.handleEvent (c:\projects\cucumber_boilerplate_prototype\node_modules\webdriverio\build\lib\utils\BaseReporter.js:324:35)
at Launcher.endHandler (c:\projects\cucumber_boilerplate_prototype\node_modules\webdriverio\build\lib\launcher.js:637:28)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
The text was updated successfully, but these errors were encountered:
Using cucumber-boilerplate with junit reporter, I get an error:
This is inside my wdio.conf:
This is are my package.json dependencies:
This is my gulp task which triggers the test:
This is the error:
The text was updated successfully, but these errors were encountered: