Selenium-Grid Windows下的安装

Selenium Grid官方定义是:

Selenium Grid is a tool that dramatically speeds up functional testing of web-apps by leveraging your existing computing infrastructure. It allows you to easily run multiple tests in parallel, on multiple machines, in an heterogeneous enviroment. 

Selenium Grid是一种可以显著提高Web应用功能测试的工具,他会帮你改进已有的测试架构,让你更容易的在各种各样的环境下分布式并行运行测试用例。

借助java,SeleniumGrid可以在任何机器上跑,所以我们的Selenium Grid是需要java环境的,下面是他的要求:

 安装好后(安装过程就不多说了),如下就可以来大概搭一个环境:

  • ant launch-hub启动服务器,然后在 http://127.0.0.1:4444/console 就可以看到你的服务了。

  • ant -Dport="5555" –Dhost=127.0.0.1 -DhubURL=http://127.0.0.1:4444 -Denvironment="*iexplore" -DseleniumArgs="-multiWindow"  launch-remote-control 运行一个客户端,可以通过端口号不同在一台机器上运行多个客户端

  • 加载脚本运行。