同时运行多个 Selenium 测试 [英] Running multiple Selenium tests at the same time

查看:48
本文介绍了同时运行多个 Selenium 测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想同时运行多个 Selenium 测试(在 Jenkins 服务器上).

I would like to run multiple Selenium Tests (on a Jenkins server) at the same time.

它目前一次只运行一个测试,因为 ChromeDriver 似乎通过一个特殊的端口进行通信.所以不知何故,我想我必须通过 Selenium 将某种端口设置传递给 ChromeDriver 以启动多个测试.

It currently runs only a single test at a time cause ChromeDriver seems to communicate over a special port. So somehow I guess I have to pass some kind of port settings via Selenium to the ChromeDriver to start up multiple tests.

不幸的是,Selenium 网站上没有关于该主题的内容:http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp#parallelizing-your-test-runs

The Selenium website unfortunately is empty for that topic: http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp#parallelizing-your-test-runs

在我看来,测试是在本地运行还是在 Jenkins 上运行没有区别,问题是一样的.我们需要以某种方式配置 ChromeDriver.问题是如何.

From my point of view it makes no difference if the Test runs locally or on Jenkins, the problem is the same. We need to somehow configure ChromeDriver. The question is just how.

任何人都有一些想法或指示在哪里查看以及完成此操作涉及哪些文件?

Anybody has some ideas or pointers where to look at and what files are involved to get this done?

推荐答案

您要找的是 硒网格 2.

网格允许您:

  • 通过在多台机器上分发测试来扩展(并行执行)
  • 从一个中心点管理多个环境,从而可以轻松地针对大量浏览器/操作系统组合运行测试.
  • 允许您实施自定义挂钩以利用虚拟基础架构等,从而最大限度地减少网格的维护时间.

这篇关于同时运行多个 Selenium 测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆