Best Practices for Screen Lock and Disconnected Virtual Desktop Infrastructure

The SAP Intelligent RPA tool sometimes requires the user to handle applications with low-level actions such as mouse clicks or direct keystrokes. In certain circumstances, these low-level actions can cause limitations.

This behavior isn't limited to unattended execution, as the user can be expected to launch attended scenarios on their machine and let it work while the screen is locked.

Context

The user confirms that a job is properly executed during the implementation and test stages:

  • With a debugger and tester tool.

  • By supervising the job execution in real time on their machine.

However, as soon as the agent is on a Virtual Desktop Infrastructure and with a locked screen, the job isn't executed properly and stops running during some technical actions, in the middle of the automation.

This issue occurs while:
  • The screen is locked on the user’s machine, during the execution of a job.

  • A session is open on the Virtual Desktop Infrastructure but there is no activity from the user.

  • The Virtual Desktop Infrastructure is minimized after a few dozen minutes.

Reason

To process specific automation actions such as mouse clicks and keystroke sequences, the user needs an open session that prevents the screen from locking during the execution of an automation. But the use of a physical or virtual keyboard isn't necessary.

This behaviour is characteristic of the technologies and applications that are manipulated within the automation.

This kind of issue mostly comes from simulations of using a mouse and a keyboard:
  • application.page.item.mouseClick();

  • application.page.item.keystroke("text");