1

我已经为一个 Web 应用程序的 5 个不同的商店(英国、美国、法国、印度、PT)测试了一个套件。大约有 250 个测试用例。部署后,我需要为所有这些商店执行测试套件,一个商店大约需要 6 小时。我必须按顺序启动执行。

我打算并行执行它们。我有一个单独的桌面,我已经在上面配置了 Jenkins,我试过一次触发 2 个工作,不幸的是我的系统崩溃了。

是否有任何有效的方法可以使用 Jenkins 或其他(我听说过 docker 容器)来做到这一点?

4

1 回答 1

1

Selenium Grid is a pretty decent, plain vanilla way to run tests in parallel especially if you already using Selenium as your automation framework.

Documentation: https://www.seleniumhq.org/docs/07_selenium_grid.jsp

If your needs require, there are other options to look at including containerized solutions (as you've mentioned about Docker):

Both solutions above build on top of Selenium Grid so they're worth checking out as well.

Selenoid uses docker containers which is a cleaner way of running tests (as the containers gets destroyed and created for each test-case.

Personally, I've used Selenium Grid for years and it's about to handle my suite of about 450 test-cases.

于 2019-01-24T07:54:31.517 回答