Selenium webdriver grunt量角器转轮和跨浏览器测试

Selenium webdriver grunt量角器转轮和跨浏览器测试,selenium-webdriver,gruntjs,protractor,end-to-end,Selenium Webdriver,Gruntjs,Protractor,End To End,我能够在当前设置中成功地在chrome上运行测试,但是我无法将其他浏览器添加到我的测试中。我正在使用grunt模块“grunt量角器运行程序”运行e2e测试 环顾四周,我知道grunt量角器运行程序模块确实支持多容量,因此从表面上看,我希望编辑目标配置文件的简单任务包括多容量,并将chromeOnly更新为false 尽管我可以通过多容量测试,但我无法将chromeOnly选项更改为“false”,并使测试成功运行。将Firefox和Chrome传递给multiCapabilities时的错误

我能够在当前设置中成功地在chrome上运行测试,但是我无法将其他浏览器添加到我的测试中。我正在使用grunt模块“grunt量角器运行程序”运行e2e测试

环顾四周,我知道grunt量角器运行程序模块确实支持多容量,因此从表面上看,我希望编辑目标配置文件的简单任务包括多容量,并将chromeOnly更新为false

尽管我可以通过多容量测试,但我无法将chromeOnly选项更改为“false”,并使测试成功运行。将Firefox和Chrome传递给multiCapabilities时的错误

运行WebDriver[launcher]Runner进程的2个实例已退出,错误代码为:8

------------------------------------
PID: 7812 (capability: chrome #1)
------------------------------------

Using the selenium server at http://localhost:4444/wd/hub

C:\Project\node_modules\protractor\node_modules\selenium-     webdriver\lib\webdriver\promise.js:1702
    throw error;
          ^
------------------------------------
PID: 6444 (capability: firefox #1)
------------------------------------

Using the selenium server at http://localhost:4444/wd/hub

C:\Project\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:1702
  throw error;
        ^

我正在Windows 7上运行我的设置,使用grunt Gradurator runner 1.0.1、Gradurator 0.23.1、chromedriver 2.9和selenium server standalone 2.41.0

似乎我已经解决了这个问题-它与不启动独立的selenium服务器有关,而grunt Gradurator runner本身并不能做到这一点

解决方法是使用
webdriver manager start--standalone
在量角器web驱动程序的位置打开一个新控制台,并像以前一样使用grunt量角器runner运行测试;或者像我现在这样,使用grunt量角器webdriver模块,并将其包含在要调用的grunt任务中

在我的dragrator.conf.js文件中,我删除了
chromeOnly:true
,并添加了多功能浏览器阵列