简体   繁体   English

是否有可能在没有活动桌面和Jenkins奴隶的情况下运行Selenium测试?

[英]Is it possible run Selenium test without active desktop and Jenkins slave?

I have a Windows Server 2012 server , with Jenkins and Selenium tests project on this server. 我有一台Windows Server 2012服务器 ,在这台服务器上安装了JenkinsSelenium项目。

I want to run my tests on the server via Jenkins rebuild event . 我想通过Jenkins rebuild事件在服务器上运行我的测试。 Is it possible run Selenium tests in browsers (Firefox, Chrome and IE) directly on this server, without separate slave machine ? 是否可以直接在此服务器上运行浏览器 (Firefox,Chrome和IE)中的Selenium测试 ,而无需单独的从机

Is it possible run Selenium tests in browsers (Firefox, Chrome and IE) directly on this server, without separate slave machine? 是否可以直接在此服务器上运行浏览器(Firefox,Chrome和IE)中的Selenium测试,而无需单独的从机?

Of course. 当然。

You have two options: 您有两种选择:

  1. You can setup a Grid, with only your computer as the node (connecting to itself) 您可以设置网格,只将您的计算机作为节点(连接到自身)

  2. Since it's Windows, it does have a desktop and you will be able to run tests just by setting webdriver.chrome|ie.driver and as easy as instantiating Chrome|IEDriver() 既然它是Windows,它确实有一个桌面,只需设置webdriver.chrome|ie.driver就可以运行测试,就像实例化Chrome|IEDriver()一样简单Chrome|IEDriver()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何强制在 jenkins 从节点上运行的 Selenium 测试在前台运行? - How can I force Selenium tests running on a jenkins slave-node to run in the foreground? 如何通过编程方式启动Jenkins从属服务器而无需手动登录到从机 - How to launch Jenkins slave programmatically without manual login to Slave machine 詹金斯不会在奴隶上运行Windows Batch - Jenkins won't run windows Batch on slave 被要求使用Selenium来测试Windows桌面应用程序UI - 这怎么可能? - Been asked to use Selenium to test Windows desktop application UI--how is this possible? 运行我的Selenium脚本以测试通过远程桌面连接连接的网页吗? - Run my Selenium Scripts to test the Web page which is connected via Remote Desktop Connection? 无法在Windows上使用主/从设备在Jenkins上运行mvn.bat - Unable to run mvn.bat on Jenkins with master/slave on Windows 使用Jenkins部署到Linux服务器,然后从Windows服务器运行硒测试 - Using Jenkins to deploy to a Linux server and then run selenium test from a windows server 如何运行依赖于jenkins slave OS的jenkins预构建步骤? - How to run a jenkins pre-build step that depends upon the jenkins slave OS? 运行Selenium测试对Jenkins不起作用 - Running Selenium test do not work on Jenkins 詹金斯奴隶与特定的端口 - Jenkins slave with specific port
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM