UIMap Editor properties
Each property that you can set within the UIMap Editor when using Coded UI Testing, can also be set programmatically. In other words, you don’t have to spend time sifting through the UIMap Editor to set up properties such as ContinueOnError, etc. All you need to do is find out what the code would be for a specific property. This can then be added to any part of your test. An easy way to do this is to set it once, then go and find the method in the UIMap.Designer.cs file and look for the property that got set.
For example, if you wanted to make sure that testing would continue even if a specific test failed. Normally you would go into the UIMap Editor and set the ContinueOnError to True. Now you can add it directly to your code like so:
Playback.PlaybackSettings.ContinueOnError = true;