[英]Running tests on IE driver with Jenkins installed on Linux machine
Currently I'm using Jenkins installed on Linux machine for automated testing Firefox and Chrome browsers. 目前,我正在使用Linux计算机上安装的Jenkins来自动测试Firefox和Chrome浏览器。
My company want to start automated testing on IE. 我的公司想在IE上开始自动化测试。 Is there any way to add virtual machine with Windows 7 os to Jenkins architecture (new node?) to run all tests from one Jenkins instance?
有什么方法可以将具有Windows 7操作系统的虚拟机添加到Jenkins架构(新节点?),以从一个Jenkins实例运行所有测试?
I want to have tasks with different builds : - first to run tests on Chrome driver using mvn (works fine now) - second to run tests on FF driver (works fine now) - third to run tests on IE driver (need to be created) 我想使用不同的版本执行任务:-首先使用mvn在Chrome驱动程序上运行测试(现在可以正常运行)-第二要在FF驱动程序上运行测试(现在可以正常运行)-第三要在IE驱动程序上运行测试(需要创建) )
If there is no way to do this should I prepare Windows machine with new Jenkins installation? 如果无法执行此操作,是否应该为Windows计算机准备新的Jenkins安装?
You can do this by using the hub option on your main selenium server 您可以通过使用主硒服务器上的hub选项来执行此操作
java -jar selenium-server-standalone-2.25.0.jar -role hub -hubHost localhost -hubPort 4444
And then on your windows machine (this is a chrome example as I am on my mac) do something like this 然后在您的Windows机器上(这是我在Mac上的Chrome例子)执行类似的操作
java -jar selenium-server-standalone-2.25.0.jar -role node -hubHost <ip of hub> -hubPort 4444\
-browser "browserName=chrome,maxinstance=2,platform=MAC" \
-Dwebdriver.chrome.driver="driver/chromedriver"
You will also need to download the iedriver to make it work selenium downloads 您还需要下载iedriver使其能够进行硒下载
You then connect to selenium through port 4444 (as a convention) on the main selenium server and it places requests accordingly 然后,您通过主硒服务器上的端口4444(按照惯例)连接到硒,并相应地发出请求
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.