Search code examples
windowsseleniumjenkinsselenium-webdriverjenkins-cli

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.

I want to run my tests on the server via Jenkins rebuild event. Is it possible run Selenium tests in browsers (Firefox, Chrome and IE) directly on this server, without separate slave machine?


Solution

  • Is it possible run Selenium tests in browsers (Firefox, Chrome and IE) directly on this server, without separate slave machine?

    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()