selenium + testng + grid 例子

环境准备

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.测试代码如图



 

3.TestNG配置如图



 

4.结果如图



 

猜你喜欢

转载自jerome-wang.iteye.com/blog/2231619