问题
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!!
回答1:
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.
来源:https://stackoverflow.com/questions/9714497/browser-automations-using-webdriver-when-running-from-jenkins-are-running-a