I have watir Scripts which i'm executing in firefox every time they are executed. IS there any way i can run scripts in multiple Browsers simultaneously? Im using rspec and watir-webdriver
我有watir脚本,我每次执行时都在firefox中执行。有没有什么方法可以同时在多个浏览器中运行脚本?我使用rspec和watir-webdriver
or i want the set of scripts to execute first in one browser and then after completion execute in second browser with out duplicating code? is this possible
或者我希望这组脚本首先在一个浏览器中执行,然后在完成后在第二个浏览器中执行而没有复制代码?这可能吗
3 个解决方案
#1
0
There are grid testing frameworks, which execute tests in parallel in their own VMs (or processes).
有网格测试框架,它们在自己的VM(或进程)中并行执行测试。
-
You can try watirgrid, which satisfies your requirement to not duplicate code. It's a bit dated though.
您可以尝试watirgrid,它满足您不重复代码的要求。虽然有点过时了。
-
Another option is Selenium Grid 2 with watir-webdriver (which uses Selenium under the hood)
另一种选择是Selenium Grid 2,带有watir-webdriver(在引擎盖下使用Selenium)
-
You can also do it with Jenkins. Check out the following post: http://watirmelon.com/2011/08/29/running-your-watir-webdriver-tests-in-the-cloud-for-free/
你也可以用Jenkins做。查看以下帖子:http://watirmelon.com/2011/08/29/running-your-watir-webdriver-tests-in-the-cloud-for-free/
#2
0
Answer would be not straight forward however, try test load balancer
https://github.com/test-load-balancer . you have examples there which can get you started in no time. We are a global website and we have implemented this for our framework which had similar requirement like yours and it did the trick for us.
答案不是直截了当的,请尝试测试负载均衡器https://github.com/test-load-balancer。你有那里的例子可以让你立刻开始。我们是一个全球性的网站,我们已经为我们的框架实现了这个,它有类似于你的要求,它为我们做了诀窍。
#3
0
You can do that with Selenium. I recommend you to look at this video on Youtube which shows you as an example how to use Selenium as a Service as a post-build option when you build your application with Jenkins.
你可以用Selenium做到这一点。我建议你在Youtube上看一下这个视频,它展示了如何在使用Jenkins构建应用程序时将Selenium作为服务用作后期构建选项。
#1
0
There are grid testing frameworks, which execute tests in parallel in their own VMs (or processes).
有网格测试框架,它们在自己的VM(或进程)中并行执行测试。
-
You can try watirgrid, which satisfies your requirement to not duplicate code. It's a bit dated though.
您可以尝试watirgrid,它满足您不重复代码的要求。虽然有点过时了。
-
Another option is Selenium Grid 2 with watir-webdriver (which uses Selenium under the hood)
另一种选择是Selenium Grid 2,带有watir-webdriver(在引擎盖下使用Selenium)
-
You can also do it with Jenkins. Check out the following post: http://watirmelon.com/2011/08/29/running-your-watir-webdriver-tests-in-the-cloud-for-free/
你也可以用Jenkins做。查看以下帖子:http://watirmelon.com/2011/08/29/running-your-watir-webdriver-tests-in-the-cloud-for-free/
#2
0
Answer would be not straight forward however, try test load balancer
https://github.com/test-load-balancer . you have examples there which can get you started in no time. We are a global website and we have implemented this for our framework which had similar requirement like yours and it did the trick for us.
答案不是直截了当的,请尝试测试负载均衡器https://github.com/test-load-balancer。你有那里的例子可以让你立刻开始。我们是一个全球性的网站,我们已经为我们的框架实现了这个,它有类似于你的要求,它为我们做了诀窍。
#3
0
You can do that with Selenium. I recommend you to look at this video on Youtube which shows you as an example how to use Selenium as a Service as a post-build option when you build your application with Jenkins.
你可以用Selenium做到这一点。我建议你在Youtube上看一下这个视频,它展示了如何在使用Jenkins构建应用程序时将Selenium作为服务用作后期构建选项。