내 config.js
파일을 스크린 샷 테스트에 포함 할 때까지 각도기 테스트가 잘 돌아가고있었습니다. \ 사용자 \ hhhhhh \ MMMM \ 테스트 \ E2E> 각도기 conf.js각도기 스크린 샷 테스트 오류 코드 105
[10시 50분 13초] E/configParser : 각도기를 실행 한
오류
C를 conf.js - 오류 코드 : 105
[10시 50분 13초] E/configParser - 설명 :로드 실패 구성 파일 conf.js
C : \ 사용자 \ hhhhhh \의 AppData \ 로밍 \ NPM \ node_modules \ 뻗치다 `
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의 (+ 파일 이름 '구성 파일을로드 실패', 로거) (130) 던져 새로운 exitCodes_1.ConfigError : 또는 \는 \ configParser.js을 만들었습니다. 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'
}));
}
};
많은이 문제가있을 것 같다. 누구나 건전한 솔루션을 찾았습니까?
설정 파일을 붙여 넣을 수 있습니까? –
@ igniteram1'conf.js'가 추가되었습니다. –
'''saveScreenshot'''을 어디에 정의 했습니까? –