This is part 6 in a series of posts on creating and maintaining Coded UI tests with Multiple UI maps. My intent here is to give a little more detail to help those new to Visual Studio.
Part 1: Creating a new Coded UI solution
Part 2: Adding a New UI Map
Part 3: Modifying an Existing Coded UI Map
Part 4: Adding a UI Map to the TestRunUtility
Part 5: Assembling the test
Part 6: Changing Recorded Methods
Part 7: Deleting actions when recording with the Coded UI Test Builder
Part 8: Modifying Generated Code
This technique is an extension of the technique found in the following links by Anu , a Program Manager in the Visual Studio ALM Test Tools group and the MDSN documentation. http://blogs.msdn.com/b/anutthara/archive/2010/02/08/scaling-up-your-cuit-ui-automation-for-real-world-projects.aspx
http://blogs.msdn.com/b/anutthara/archive/2010/02/10/walkthrough-using-multiple-coded-ui-maps-in-test-automation.aspx
http://msdn.microsoft.com/en-us/library/ff398056.aspx
If you are unhappy with the name of your asserts or methods, you can double click the <page>Map.uitest file to open the UI Map editor -> highlight the method you want to change and press the F2 key or click the rename toolbar button

If you have recorded something that needs to change, because the application changed or you recorded some action that shouldn?t be in the test, you may rerecord the actions and replace the old method.
First open the browser and navigate to the page you want to modify.
Right click on the <page>Map.uitest file and select Edit with Coded UI Test Builder

Record your actions but this time we want to reuse the existing method. Click the drop down arrow and select your method

Notice the button becomes ?Replace and Generate?.
