How to run single selenium test case in two different nodes

转自

http://stackoverflow.com/questions/31023861/how-to-run-single-selenium-test-case-in-two-different-nodes

实测通过

前提准备:

1.请参考 selenium + testng + grid 例子 + Jenkins 集成selenium grid (Jenkins 配置 网上 一大堆)

2.集成到jenkins,当ant的build.xml base.dir使用相对路径时,testng 产生报告可能会有问题 要修改下testng-result.xsl的absolute-path如下


How to run single selenium test case in two different nodes
 实战代码

1.初始化Driver


How to run single selenium test case in two different nodes
 2.测试代码


How to run single selenium test case in two different nodes
 3.testng .xml配置


How to run single selenium test case in two different nodes
 4.ant build.xml


How to run single selenium test case in two different nodes
 

相关推荐