私はgractを構成してプロトラクター(およびwebdriver)を起動しようとしていますが、「[ランチャー]エラー:ReferenceError:システムが定義されていません。私は以前にシステムを認識するようにカルマを設定しましたが、分度器で同じことをする方法はわかりません。エラー:ReferenceError:システムが定義されていません
gulp.task('e2e', function(callback) {
gulp
.src(['./dist/**/*e2e.js'])
.pipe(angularProtractor({
'configFile': 'protractor.conf.js',
'debug': true,
'autoStartStopServer': true
}))
.on('error', function(e) {
console.log(e);
})
.on('end', callback);
});
と分度器関連(package.json)
"gulp-protractor": "^2.1.0",
"protractor": "2.5.1",
"selenium-standalone-jar": "2.45.0",
:ここ
は私のprotractor.conf.js
exports.config = {
framework: 'jasmine',
specs: ['./dist/**/*e2e.js'],
// seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
seleniumServerJar: './node_modules/selenium-standalone-jar/bin/selenium-server-standalone-2.45.0.jar'
// seleniumServerJar: './node_modules/selenium/selenium-standalone-jar/bin/selenium-server-standalone-2.48.2.jar'
}
私の一気タスク(gulpfile.js)でありますどんな提案も高く評価されました!
http://stackoverflow.com/questions/35040502/referenceerror-system-is-not-defined-when-using-protractor-with-angular2-and –
はい、わかります。私はそこに解決策が表示されません... –
誰も分度器と角度2の簡単な動作例がありますか?私はgitですべての例を試したと思うし、実際にはhttps://github.com/mgechev/angular2-seedというテストを実行することができた。他のすべての例で私は同じエラーが発生しました。 –