简体   繁体   English

当我通过Jenkins运行Selenium脚本时,未在Jenkins服务器中实例化浏览器,但我的Jenkins构建已通过

[英]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. 当我通过Jenkins运行Selenium脚本时,未在Jenkins服务器中实例化浏览器,但是我的Jenkins构建已通过。 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.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过GitHub #Jenkins运行Selenium脚本 - Run selenium scripts through GitHub #Jenkins 使用安装在服务器中的 jenkins 运行 selenium 脚本 - Run selenium scripts using jenkins installed in server Selenium Python配置Jenkins以运行构建。 我的构建失败 - Selenium Python Configure Jenkins to run build. My build fails 当我尝试通过 Jenkins 在 Linux 服务器中运行我的项目时,出现“java.lang.IllegalStateException: The driver is not executable” - "java.lang.IllegalStateException: The driver is not executable" when I try to run my project in Linux server through Jenkins 因此,当我通过jenkins运行python硒脚本时,应该如何编写“ driver = webdriver.Chrome()”? - So when I run my python selenium script through jenkins, how should I write the 'driver = webdriver.Chrome()'? 当我通过 jenkins 运行我的测试时,chrome 浏览器没有被触发并且还显示 testng.xml 文件不匹配 - When I run my test through jenkins chrome browser is not triggered and also showing testng.xml file is not matching 如何使用Jenkins / Maven进行硒测试? - How do I run my selenium tests with Jenkins/Maven? 通过Jenkins作为Windows服务运行Selenium脚本时,浏览器未最大化 - Browser is not maximized when running selenium scripts via Jenkins as windows service 詹金斯(Jenkins)不运行我的Selenium测试(“无测试可运行”) - Jenkins doesn't run my Selenium tests ('No tests to run') 当 Jenkins 运行测试时,无法看到浏览器上正在运行 Selenium 测试 - Unable to see Selenium tests are running on the browser when the test is run by Jenkins
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM