当我通过Jenkins运行我的selenium脚本时,浏览器没有在Jenkins服务器中实例化,但我的Jenkins构建是通过的

时间:2018-02-20 14:24:53

标签: selenium jenkins

当我通过Jenkins运行我的selenium脚本时,浏览器没有在Jenkins服务器中实例化,但我的Jenkins构建是通过的。构建应该失败。能帮我解决一下吗?

1 个答案:

答案 0 :(得分:0)

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.