Skip to content

UIMap Editor properties

by on July 11, 2012

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;

From → Coded UI Test

Leave a Comment

Leave a comment

NE1 Atoll

The Official blog of NE1 Games

Selenium for .Net using C# language

Adventures in Coding, gaming and other fun things in my life

Coded UI 101 - Understanding Coded UI Tests

Adventures in Coding, gaming and other fun things in my life