如何使用Selenium WebDriver同时在不同的浏览器上运行多个测试?

时间:2013-08-21 10:18:54

标签: java testing selenium-webdriver automated-tests

如何使用Selenium WebDriver同时在不同的浏览器上运行多个测试?

我在java工作,我甚至尝试过selenium grid 已下载:selenium-server-standalone-2.33.0.jar文件

即使在程序之后,

I am not able to execute these commands on the command prompt

  1. java -jar selenium-server-standalone-2.33.0.jar -role hub -port 4444
  2. java -jar selenium-server-standalone-2.33.0.jar -role node -hub ...
  3. 还有其他选择??

2 个答案:

答案 0 :(得分:1)

网格不会并行运行测试。您必须并行运行测试才能利用Grid。 Grid简单地提供了一种机制,允许您通过主服务器分发浏览器分配。

如何配置测试框架取决于您当前使用的框架(例如TestNG,JUnit)

答案 1 :(得分:0)

您可以使用selenium + TestNG组合 就在一天之前,我做了一个运行firefox&的程序。 chrome并行浏览

相关问题