On Monday, August 26, 2013 5:32:08 AM UTC-4, Gaurang shah wrote: > > Hi Guys, > > I have configured my maven project with jenkins. This maven project is a > webdriver automation project. > > Project works find when i run from the command line, it launches the > browser > and then shows that test case has passed. > > However when i run the same project thorough jenkins it is not launching > any > browser, however test result says that test case passed. Without any > stack > trace or error I am not able to debug it either. Can someone let me know > what could have been wrong. > > I am getting following output when I run though jenkins. > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running TestSuite > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.356 sec > > Results : > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 > > [JENKINS] Recording test results > [JENKINS] Archiving C:\Users\gaurang_shah\workspace\MavenTest\pom.xml to > C:\Users\gaurang_shah\.jenkins\jobs\TestNGMavenDemo\modules\gaurang$MavenTest\builds\2013-08-26_14-51-48\archive\gaurang\MavenTest\0.0.1-SNAPSHOT\MavenTest-0.0.1-SNAPSHOT.pom > > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 44 seconds > [INFO] Finished at: Mon Aug 26 14:52:40 IST 2013 > [INFO] Final Memory: 17M/42M > [INFO] > ------------------------------------------------------------------------ > Waiting for Jenkins to finish collecting data > Finished: SUCCESS >
There may be something missing from the environment when running from Jenkins that keeps the browser from starting. For example, in my setup, I have to make sure a headless X11 server is running and the Jenkins job has a DISPLAY variable set which points to the server. It looks like your job is running on Windows so I don't know what issues it might be specifically. Maybe the Jenkins process doesn't have permission to access the desktop or something? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.