CodedUITest is truly an exciting feature that has been with .NET for a while. Despite the fact that it's still generating too much code (in my opinion), and the naming convention for those UI windows are still confusing (hopefully you don't need to use too many of them), it has made UI test automation as easy as recording some simple actions, and that's way it should be.

CodedUItest can be easily run and debugged inside of Visual Studio, which essentially invokes MSTest as the framework to run those tests, and works like a charm. However, it's very likely that you might want to run your CodedUITest project and dlls without the dependency of having VS installed and launched. Here's one way of how you can make that happen, and I use TAEF (Test Authorizing and Execution Framework) as an example.

Step 1: Modify your test code

You will need to modify the class decoration (the line above your test class declaration) from [CodedUITest] to [TestClass], which will make the test methods in it discoverable by most testing frameworks.  

(To be continued)