[英]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服务器 ,在这台服务器上安装了Jenkins和Selenium项目。
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: 您有两种选择:
You can setup a Grid, with only your computer as the node (connecting to itself) 您可以设置网格,只将您的计算机作为节点(连接到自身)
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.