简体   繁体   中英

When I run my selenium scripts through Jenkins, browser was not instantiated in Jenkins server but my Jenkins build was pass

When I run my selenium scripts through Jenkins, browser was not instantiated in Jenkins server but my Jenkins build was pass. Build should be failed. can you please help me to provide solution on this ?

It seems you are using windows, "you need to allow Jenkins service to interact with desktop"
 follow below step in order to enable Jenkins service to interact with desktop.

1- open run and search for "services.msc"
2- Scroll down to the Jenkins service and right-click, select Properties.
3- Now click on Log on Tab and you will see "Allow service to interact with desktop" check this checkbox and you are done.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM