从Jenkins运行时的浏览器自动化(使用Webdriver)正在作为Process运行,但不可见 [英] Browser Automations ( using Webdriver ) when running from Jenkins are running as Process but not visibl
问题描述
详细信息: -使用Webdriver和TestNG开发了一个测试自动化框架 -使用ANT作为触发工具来驱动浏览器自动化.一切正常,我可以看到浏览器已打开并查看所有导航 -在我的本地&上设置詹金斯配置为调用ANT -单击作业中的立即构建"链接 -浏览器不可见,而是作为进程运行...可以在Windows Task Manager中看到它
Details : - Developed a test automation framework using Webdriver and TestNG - Using ANT as triggering tool to drive browser automations. This is working fine, I could see Browser getting opened and see all the navigations - Setup Jenkins on my local & configured to invoke ANT - Clicked on Build Now link in the Job - Browser is not visible, instead running as a process...could see it in Windows Task Manager
非常感谢您的帮助/输入/指针!
Any help / Inputs / Pointers is much appreciated!!
推荐答案
您可能正在使用Jenkins随附的可执行文件在后台运行Jenkins,您需要在前台运行java -jar jenkins.war [other options]
.另外,请确保您正在查看实际运行Jenkins的机器. 查看此答案.
You are probably running Jenkins in the background using the executable provided with it, you need to run it in the foreground: java -jar jenkins.war [other options]
. Also, make sure you are looking at the machine where Jenkins is actually run. See this answer.
这篇关于从Jenkins运行时的浏览器自动化(使用Webdriver)正在作为Process运行,但不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!