简体   繁体   English

在Linux计算机上安装了Jenkins的IE驱动程序上运行测试

[英]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.

相关问题 Selenium Webdriver测试在Jenkins(** Linux **)上失败,“驱动程序不可执行” - Selenium Webdriver Tests fail on Jenkins(**Linux**) “The driver is not executable” 无法将 Linux 机器作为从机添加到在 Windows 机器上运行的 Jenkins 主机 - Not able to add Linux machine as Slave to Jenkins master running on Windows machine JAVA:使用 GeckoDriver 在 Linux 上运行 Selenium 测试:驱动程序不可执行 - JAVA: Running Selenium Tests on Linux using GeckoDriver: driver is not executable 从安装在 Linux 上的 Jenkins 运行 windows 批处理文件 - Running a windows batch file from Jenkins installed on Linux 在Linux上的Jenkins中测试失败,并且在Windows本地计算机上的Jenkins中运行良好? - Tests are got failed in Jenkins on Linux and works good at Jenkins on windows local machine? Jenkins与Linux机器一起使用硒脚本 - Jenkins with linux machine for selenium script 在Linux机器上通过jenkins运行selenium脚本时,firefox无法启动 - When running selenium script through jenkins on linux machine firefox is not getting launch 在IE 11上运行量角器测试 - Running protractor tests on IE 11 嵌入式Linux设备上的USB驱动程序测试 - USB driver tests on embedded linux device 无法在Linux中的Jenkins上执行Chrome驱动程序 - Unable to execute the chrome driver on Jenkins in Linux
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM