3
端對端測試有以下protractor.conf.js:自動運行的webdriver在咕嘟咕嘟
exports.config = {
framework: 'jasmine',
specs: ['e2e-tests/**/*.js'],
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
seleniumServerJar: './node_modules/protractor/selenium/selenium-server-standalone-2.47.1.jar'
}
咕嘟咕嘟任務:
gulp.task('e2e-testing', ['webdriver_standalone'], function() {
gulp.src([]).pipe(protractor({ configFile: "protractor.conf.js" }))
.on('error', function(e) { throw e })
});
此代碼的工作很好,但我必須在開始之前執行webdriver-manager start --standalone
e2e
任務。我怎樣才能省略它?我怎樣才能自動做到這一點?在此先感謝