【发布时间】:2018-02-21 00:53:07
【问题描述】:
当我通过 Jenkins 运行我的 selenium 脚本时,浏览器没有在 Jenkins 服务器中实例化,但我的 Jenkins 构建通过了。构建应该失败。你能帮我提供解决方案吗?
【问题讨论】:
-
你有什么可以给我们看的吗?可能有一些配置?
-
显示作业控制台输出,您可以屏蔽ip/主机名/文件路径/git repo等敏感信息。
当我通过 Jenkins 运行我的 selenium 脚本时,浏览器没有在 Jenkins 服务器中实例化,但我的 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.
【讨论】: