Hi, I am running robot gui automation test in windows agent node which is attached to Jenkins. As the test case are running in headless mode, I need to see the Gui execution of robot framework test cases, how to see that? can any body let me know on this?
Because of the nature of Windows and how agents are generally run (as a service) you have to jump through some hoops for what you want to do. There are a couple of options, none of which are really great.
- Instead of launching the agent as a service, have an account that automatically logs in and launches the agent jar as a Windows application so that you see the Jenkins Agent GUI. This will connect the agent to Jenkins and when processes are launched, they will launch as normal Windows processes and show their GUI.
- Give the service account access to interact with the desktop, this is a deprecated method, so not super recommended, but it does still work. You can Google for service interact desktop to find out how to allow an account to do this. This will still require that you have a console session connected, either via remote desktop or on the actual agent machine.
I’ve toyed with the idea of creating something like the Xvfb plugin but using remote desktop, but haven’t worked through all the details and I don’t have a Windows setup that I really need it for anyway.
Thank you slide, will try that