是否可以并行运行 Watir 测试? [英] Is it possible to run Watir test in parallel?
本文介绍了是否可以并行运行 Watir 测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有简单的 Watir 测试.
每个测试都是独立的,没有任何类型的共享状态或依赖项.每个测试打开和关闭浏览器.
I have simple Watir tests.
Each test is self-contained, no shared state or dependency of any kind. Each test open and close the browser.
是否可以并行运行测试以减少运行所有测试的时间?即使只有 2 或 3 个并行测试也可以显着减少时间.
Is it possible to run the test in parallel to reduce the time to run all tests? Even only 2 or 3 tests in parallel can reduce the time dramatically.
推荐答案
看一看 parallel_tests Ruby gem.根据您的设置,并行运行测试可能就像这样简单:
Take a look at parallel_tests Ruby gem. Depending on your setup, running the tests in parallel could be as simple as this:
parallel_cucumber features/
这篇关于是否可以并行运行 Watir 测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文