简体   繁体   中英

How to run multiple tests on different browsers simultaneously using Selenium WebDriver?

How to run multiple tests on different browsers simultaneously using Selenium WebDriver?

I am working in java, I even tried selenium grid Downloaded: the selenium-server-standalone-2.33.0.jar file

Even after the procedures,

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 ...

Any other alternative ??

Grid does not run tests in parallel. You have to run your tests in parallel in order to take advantage of Grid. Grid simply provides a mechanism to allow you distribute browser allocation via a master server.

How you configure your test framework is dependent on which framework you currently use (eg TestNG, JUnit)

您可以在一天前我使用selenium + TestNG组合进行此操作,因为我做了一个运行firefox和chrome浏览器并行运行的程序

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM