是否可以 运行 同时使用多个不同的浏览器进行 selenium 测试?

is it possible to run a selenium test using multiple different browsers at once?

我有一套涉及多个用户登录服务的测试。我们目前使用 selenium 网格允许 Firefox 和 Chrome 最多同时 运行 5 个会话,但是我们只能 运行 1 个 Internet Explorer 会话。

一种解决方法是创建多个 VM,但这并不理想。

最终我希望能够一次 运行 多个 IE 会话,但目前首选的解决方案是同时使用多个浏览器。

所以:

User A logs into IE8
User B logs into Chrome
User C logs into Firefox
user A communicates with User B&C 

作为功能文件是否可行? TestNg 是去这里的方法吗?我们目前正在使用 JUnit

...however we can only run 1 Internet Explorer session

您可以自行配置。在您的 nodeConfig.json 文件中,指定如下内容:

{
  "capabilities":
    [
      {
        "browserName": "firefox",
        "version": "3.6",
        "platform": "WINDOWS",
        "maxInstances": 5
      },
      {
        "browserName": "internet explorer",
        "version": "8",
        "platform": "WINDOWS",
        "maxInstances": 5
      }
    ],
    "configuration": {
      "nodeTimeout":120,
      "port":5555,

      "hubPort":4444,
      "hubHost":"localhost",

      "nodePolling":2000,

      "registerCycle":10000,
      "register":true,
      "cleanUpCycle":2000,
      "timeout":30000,
      "maxSession":XXXXX,
    }
}