I think I already auto-logon the windows slave. Is there a way to double 
check? I believe I am launching the slave via Java Web Start, because it 
would show 'connected via JLNP agent'.  I am not familiar with VNC. Could 
you please show me how to install and configure the VNC? Thanks a lot.

On Friday, October 18, 2013 8:14:05 AM UTC-7, Hugo Arès wrote:
>
> I had the same issue. GUI testing framework/tools require access to 
> windows desktop or they won't work. So prior to Windows Vista/Server 2008, 
> you could have started slave as a service since windows services were 
> running in the session 0 which is the session of user currently logged on 
> the computer (console session). From Vista/Server 2008, the services are 
> still running in session 0 BUT this session is no longer attacked to a 
> desktop so the jenkins slave that will run GUI testing cannot be started as 
> a window service.
>
> The other known issue of GUI testing framework/tools on Windows is that 
> they work work if the windows session is locked/disconnected. This explains 
> why it is working when you are connected with remote desktop but fails 
> otherwise because when you disconnect, it is doing the equivalent of 
> locking your screen and the window session state is disconnected.
>
> I am doing the same as Fred suggested to prevent the issue: auto-logon a 
> user on the slave, install VNC and disable RDC. You also need to make sure 
> you never lock the screen.
>
> Hugo
>
>
> On Friday, October 18, 2013 9:27:52 AM UTC-4, Fred G wrote:
>>
>> Hi,
>>
>> I'm currently running GUI tests on a Windows Server 2008 slave without 
>> any problems.
>> What I found out is, that the slave has to be connected via Java Web 
>> Start. (It did not work running the slave as a Windows service - even with 
>> access to the desktop).
>> A user has to be logged on and both screensaver and auto-log out should 
>> be deactivated.
>> I never connected to the slave via Remote Desktop Connection (RDC), only 
>> VNC.
>>
>> I'm not sure if it depends on the kind of GUI tests you are running.
>> In my case they are Eclipse based GUI tests (running with WindowTester 
>> Pro).
>>
>> So while I can't give you detailed instructions how to fix your specific 
>> problem, I can report that it's working for me at least. So there is a way! 
>> :)
>> I'd suggest trying to disable RDC and use VNC instead, if that is an 
>> viable option.
>>
>> Regards,
>>
>> Fred
>>
>>
>>
>> On Friday, October 18, 2013 9:19:45 AM UTC+2, Kelvin Lei wrote:
>>>
>>> It's connected via Java Web Start btw
>>>
>>> On Thursday, October 17, 2013 7:26:48 PM UTC-7, Kelvin Lei wrote:
>>>>
>>>> I have a jenkins agent set up on window 7, and I am running GUI testing 
>>>> on it. It runs fine if I have a remote desktop connection open, but fail 
>>>> otherwise. I found this link, Jenkins on Windows and GUI Tests without 
>>>> RDC<http://stackoverflow.com/questions/10177708/jenkins-on-windows-and-gui-tests-without-rdc>
>>>>
>>>> But the solution provided there is pretty vague. Could you any please 
>>>> clearly teach me how to solve this? Much appreciated!
>>>>
>>>>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to