By default, Windows services run under the Local System account, which does not have access to the desktop. JNLP slaves run as the user logged in who starts up JNLP. Likewise, starting from a war file you run as the user who issues the startup command (java -jar jenkins.war).

Eric

On 8/29/2013 2:52 AM, Gaurang shah wrote:
Thanks Roger,

For the update, however i figure out what was wrong.

Earlier i was starting Jenkins from the war file and everything was working fine. however after I install it as windows services it stopped working.

After searching i realize that i require node to be created where i want my test case to run. So i create JNLP node and now it works.

However it would be really nice, if someone would explain me why i require JNLP node when i have started jenkins as windows services as i didn't require it when it was started as WAR file.

Gaurang Shah

On Wednesday, 28 August 2013 02:28:59 UTC+5:30, JonathanRRogers wrote:



    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.

--
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.

Reply via email to