环境准备

TestNG + Grid + Webdriver

1.启动Grid hub + node

  hub端:

java -jar selenium-server-standalone-2.4x0.jar -role node -hub

 Node 端

java -jar selenium-server-standalone-2.4x0.jar -role webdriver -hub http://hubIP:port/grid/register -port 5555

 

 

2.测试代码如图


selenium + testng + grid 例子
 

3.TestNG配置如图


selenium + testng + grid 例子
 

4.结果如图


selenium + testng + grid 例子
 

 

 

相关文章:

  • 2021-06-16
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-05-18
  • 2021-10-04
猜你喜欢
  • 2021-09-23
  • 2021-09-19
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案