Running CodedUI tests on VM having test Agent installed,but TestCases are getting failed

144 Views Asked by At

I configured the test agent on VM, but when initiate a test from MTM/TFS build, the test agent is not performing the GUI test. i can see a successful call from the test controller to the VM test agent. The VM is not lock and in active window screen but somehow its not performing the GUI action that i coded. it threw below exception after test failed:

Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: TechnologyName: 'MSAA'ControlType:" followed by exception thrown from TestCleanup "DB File can not be access as it is being used by another process

This is very common exception where cannot find the control, but the control is on the screen. the script is running fine on local system and some other Testcases are getting passed on VMS so there is no problem with testscript,testcontroller and tfs build. Is there any missing config or permission on my VM? or VM do not have mouse/keyboard causing the GUI test failure?

0

There are 0 best solutions below