javascript - Protractor screenshot tests error code 105 -
protractor tests running till messed around config.js
file include screenshot testing.
errors running protractor conf.js
c:\users\hhhhhh\mmmm\tests\e2e>protractor conf.js
[10:50:13] e/configparser - error code: 105
[10:50:13] e/configparser - description: failed loading configuration file conf.js
c:\users\hhhhhh\appdata\roaming\npm\node_modules\protractor\built\configparser.js:130 throw new exitcodes_1.configerror(logger, 'failed loading configuration file ' + filename);`
package.json
{ "name": "e2e", "version": "1.0.0", "description": "yup yup yup", "main": "conf.js", "dependencies": { "protractor-jasmine2-screenshot-reporter": "^0.3.1", "protractor": "3.3.0" }, "scripts": { "test": "echo \"error: no test specified\" && exit 1" }, "author": "", "license": "isc" }
conf.js
var screenshotreporter = require('protractor-screenshot-reporter'); exports.config = { seleniumaddress: 'http://localhost:4444/wd/hub', capabilities: { 'browsername': 'chrome' }, directconnect: true, framework: 'jasmine2', specs: ['specs/*spec.js'], onprepare: function() { jasmine.getenv().addreporter(new screenshotreporter({ basedirectory: 'target/screenshots' })); } };
many seem having issues this. found sound solution?
it looks package.json
using protractor-jasmine2-screenshot-reporter
using protractor-screenshot-reporter
in conf.js
. both different modules, please use 1 of , try again!
Comments
Post a Comment