Thursday, June 9, 2016

Faile execute test(s): Error calling Initialization method for test class




Hi.
Today  I want discuss short issue with execute codedUI test on test agent.
If you see this error:

Error calling Initialization method for test class ***: Microsoft.VisualStudio.TestTools.UITest.Extension.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.

 Make sure, that:
  • you didn't close rdp session;
  • you have open rdp session and windows wasn't locked;
  • you or somebody didn't sign in under another account to this machine;
  • you open rdp session and didn't minimize this.
If you use this advice, you won't see this error again.

To fix this issue I suggest reboot VM, when you want close session.

P.S. If your machine doesn't automatic login, you will need use control userpasswords2 or edit regedit to auto logon.


No comments:

Post a Comment