A
A
Antonio2020-06-05 13:11:12
Automation
Antonio, 2020-06-05 13:11:12

How to run desktop autotests via jenkins on a remote machine that require an active desktop?

Hello!
I'm having trouble running autotests (Java+Maven+TestNg) that check the functionality of the desktop application. The launch is implemented through jenkins: The job is launched - a redirection to the node (Windows Server) takes place, then on the Windows Server node, autotests should launch the application and perform checks. But the application window cannot be launched - such tests require an active desktop. Tried to use Autologon - did not help.

Share advice, who came across this - I will be very grateful!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem @Jump, 2020-06-05
curated by the

The user must be logged in locally.
If you need to perform actions remotely - autologin and task scheduler, if manually, then teamviewer or VNC and the like.
The main thing is no RDP and you will be happy.

V
Vitaly Karasik, 2020-06-05
@vitaly_il1

But the application window cannot be launched - such tests require an active desktop. Tried to use Autologon - did not help.

Weird.
I would look at the screen while the script is running.
Job starts - redirect to node (Windows Server)

On Windows, the jenkins agent is running, and the script is running there, right? That's how it works for me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question