Automated Test Sets remain in Pending when the VM is disconnected but run correctly when logged in, despite having Testing and Non-Production licenses assigned.how can this be resolved?

Hello,

I am facing an issue with Test Sets in Test Manager.

When I launch a Test Set with the “Execute Automated” option, it stays in Pending if I am disconnected from the machine. However, if I connect to the VM, the Test Set starts and runs correctly.

Regarding licensing, the machine has both a Testing license and a Non-Production license assigned.

Has anyone encountered this issue before?
What could be causing this behavior, and how can I resolve it so the Test Set runs even when no user is connected to the VM?

1 Like

@rpa92

Welcome to the community

the issue might be that the robot is installed in user mode and not service mode

please check the same

in task manager → Services → UiPath.service.host should be there not UiPath.service.userhost

you might need to install the robot in unattended/service mode

and the machine is to be connected using client ID and secret from the orchestrator

cheers

Hi @rpa92

This usually means the robot is not truly unattended. Even if licenses are assigned, if the machine or robot is configured as attended or user-based, the Test Set will stay Pending until someone logs in.

Check that the machine is set up as unattended, the robot has unattended credentials stored, and the Test Set is using an unattended runtime. Once that’s configured correctly, the Test Set should run even when no one is connected to the VM.

Thank you all for your help.
It helped me identify that the installation on the machine was not complete, the “Install Robot as a Service” option was missing.
After fixing this, the issue was resolved

Hi @rpa92
Pls install robot in service mode, it’ll resolve .
Happy Automation