Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins : Selenium GUI tests are not visible on Windows

When I run my selenium test (mvn test) from jenkins (windows) I see only the console output. I don't see the real browsers getting opened . How can I configure jenkins so that I can see the browsers running the test?

like image 723
Rajesh Avatar asked Mar 08 '12 13:03

Rajesh


People also ask

How do I run Selenium test cases in Jenkins?

Step 1: Start the Jenkins server. Step 2: Open the browser and navigate to the localhost and the port in which Jenkins is running. Step 3: Click New Item in the dashboard. Step 4: Enter the project name and select the project type as Maven project.

Which plugin is used to run the Selenium test cases in Jenkins?

The maven-surefire-plugin is used to configure and execute tests. Here plugin is used to configure the testing. xml for TestNG test and generate test reports.


1 Answers

I had the same problem, i got the solution after many attempts. This solution works ONLY on windows XP

If you are using jenkins as a windows service you need to do the following :

1) In windows service select the service of jenkins

Opening Service.msc view

2) Open properties window of the service -> Logon-> enable the checkbox "Allow service to interact with desktop"

Jenkins properties

After then you should reboot the service jenkins

Hope this help you :)

UPDATE:

Actually, I'm working on a an automation tool using Selenium on Windows 10, I've installed Jenkins ver. 2.207 as windows application (EXE file), it's running as windows service and ALL drivers (Chrome, FireFox, IE) are visible during test executions WITHOUT performing a mere configuration on the System or Jenkins

like image 148
Shessuky Avatar answered Sep 28 '22 04:09

Shessuky