TFS build fails to trigger coded UI tests.

We have come across an issue where TFS build fails to trigger coded UI tests, based on how the Test Settings file is specified in the build definition. The failure message returned is as below: Error calling Initialization method for test class <projectname>.CodedUITest1: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: To run tests that interact with the desktop, you must set…


Reference missing errors when building coded UI projects with automation on VS 2013 for TFS 2012.

We had an interesting scenario where a customer was using automation with the coded UI projects they had. The customer was using the name space (System.Windows.Automation) for getting the classes like PropertyCondition and AutomationElement to solve his UI automation problems. What was weird in the customer’s case was that customer was using VS 2013 as…