【问题标题】:When I run my selenium scripts through Jenkins, browser was not instantiated in Jenkins server but my Jenkins build was pass当我通过 Jenkins 运行我的 selenium 脚本时,浏览器没有在 Jenkins 服务器中实例化,但我的 Jenkins 构建通过了
【发布时间】:2018-02-21 00:53:07
【问题描述】:

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

【问题讨论】:

  • 你有什么可以给我们看的吗?可能有一些配置?
  • 显示作业控制台输出,您可以屏蔽ip/主机名/文件路径/git repo等敏感信息。

标签: selenium jenkins


【解决方案1】:
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.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-10-09
    • 1970-01-01
    • 1970-01-01
    • 2020-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多