环境准备
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.结果如图
