Coded UI Testing Cheat Sheet
Coded UI Testing Cheat Sheet
Key Features
Create Multiple UI Maps to better support a more modular approach to testing. By creating a UI map per complex control or page the testing team can be working on different UI maps at the The Coded UI test code generating capabilities in Visual Studio do a fine job of generating code from action recordings or using the Coded UI test builder, but if you do not take control of your test projects using multiple UI maps you will have some challenges maintaining your test projects. Multiple UI Maps allow you to better organize your UI testing assets to make testing a large application with a team approach much easier. It will require some code on your part, but much of the glue to support multiple UI maps and more robust assertions is straightforward and does not require an expert command of your .Net language of choice.
Epic: As Doris, the developer, I would like to understand how to build Coded UI Tests that can be shared across UI components for unit testing.
Overview
same time without worrying about conflicts with other team members. Multiple UI maps will make your test project easier to fix in the case of a breaking change to the UI because you do not have all the UI code in one giant monolithic UI Map. Additionally, by using the Coded UI Test builder, you can easily add new UI controls to an existing map. Use the UI Map Editor to move the code you want to modify out of the designer and into the code file so changes are not lost the next time the UI map is generated. Override or Customize Assertions dynamically change the recorded value to a test specific value. You can also write completely custom assertions that call numerous other assertions within a map so the Coded UI test cases can validate an entire page, complex control, or some portion thereof with a single call.
References
http://blogs.msdn.com/b/anutthara/archive/2010/02/08/scalingup-your-cuit-ui-automation-for-real-world-projects.aspx