Category Archives: 14323

UITestException: Automation engine is unable to playback the test because it is not able to interact with the desktop.

You receive the following message as part of a build process that contains UI automation:

UITestException: Automation engine is unable to playback the test because it is not able to interact with the desktop.  This could happen if the computer running the test is locked or it’s remote session window is minimized."

Solution

  • If you are connected to the build server using Remote Desktop make sure the Windows is not minimized. Do not close or minimize the window. If you close the Remote Desktop window you disconnect from the session and the workstation will be locked, therefore interactive tests cannot be executed anymore.
    (If you enable autologin on the build server you need to restart in ordner to unlock the station once you finished working with Remote Desktop)
  • If you are not connected using Remote Desktop make sure that the session is not locked and the build account is logged on.
    (You can turn on autologin using the Autologon tool)