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?
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.
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.
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
2) Open properties window of the service -> Logon-> enable the checkbox "Allow service to interact with desktop"
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With