使用gulp和量角器E2E启动IE的独立webdriver服务器

时间:2016-09-29 18:33:46

标签: selenium gulp protractor gulp-protractor

我试图在任何地方找到这个,但找不到任何解决办法。

我正在使用Gulp和量角器来开始我的E2E测试。以下是我在Gulp中使用的代码。

gulp.task('serve', function(cb) {
 runModule('webdriver-manager', ['start'], cb);
});
gulp.task('update', function(cb) {
runModule('./node_modules/.bin/webdriver-manager', ['update'], cb);
});
function runModule(name, params, cb) {
  new simpleCommand(path.join(binPath, name), params, process.cwd()).run(cb);
}

现在我想使用webdriver-manager start --standalone为IE启动一个独立的webdriver,但我不知道该怎么做。如果我使用下面的代码,它不起作用,它仍然要求我启动IE的独立webdriver。

gulp.task('serve', function(cb) {
     runModule('webdriver-manager', ['start','--standalone], cb);
    });

奇怪的是,如果我注释掉我的webdriver启动并更新上面的任务仍然我的chrome任务运行正常。我不知道如何让它从IE运行。 以下是我在protractor.conf文件中的内容。

multiCapabilities = [{
      browserName: 'internet explorer',
        maxInstances  : 2,
    }];

有人可以帮帮我吗?

0 个答案:

没有答案
相关问题