当我通过Jenkins运行Selenium脚本时,浏览器并未在Jenkins Server中实例化,但我的Jenkins



当我通过Jenkins运行硒脚本时,浏览器未在Jenkins Server中实例化,但是我的Jenkins构建已通过。构建应该失败。您能帮我提供解决方案吗?

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.

最新更新