Command line tool to upgrade Coded UI Test projects created in Visual Studio 2010 Beta2 to Visual Studio 2010 RTM.
Setup
Make sure that Visual Studio 2010 RTM (Ultimate or Premium) is installed.
Download the setup.msi and run it.
Steps to Upgrade
In order to upgrade the project to Visual Studio 2010 RTM, perform the following steps.
Launch the Visual Studio Command Prompt
Run the following script
UITestUpgrade.exe <name of folder(s) to upgrade>
NOTE: If you have already upgraded the projects with the tool in Visual Studio 2010 Release Candidate, you don't have to run this tool.
Tool Details
The following changes were made in Coded UI Test between Visual Studio 2010 Beta2 and RTM
UserControls.cs file has been removed. All specialized classes (HtmlButton, WinEdit, WpfCheckbox etc) are now part of the product.
'Internet Explorer Server' control used to be part of the UI Control hierarchy for Html Controls. This has been removed to enable better support for extensibility.
For searching a Browser Window, exact name match will be used.
The names of properties (e.g: DisplayText of a HtmlButton) previously used to be in a separate class hierarchy (e.g: HtmlProperties.Button.DisplayText). This has now been modified to be part of the definition of each specialized class. Therefore, HtmlButton.PropertyNames.DisplayText will now give the name of the DisplayText property of HtmlButton.
Classes which did not have any additional property on them will now be treated as a Custom class. e.g: HtmlForm will now be treated as a HtmlCustom and its TagName property will be set to 'Form'. WinForms controls which don't have additional properties will be treated as a WinControl. WPF controls which don't have additional properties will be treated as a WPFControl.
This upgrade tool will fix all the changes listed above.
All the folders under the specified folder(s) is searched recursively and all projects under it upgraded.
Multiple folders may be specified, separated by space.
If a project is under source control, the upgrade tool will check it out of source control and make changes. This will need Team Foundation Server 2010.
A backup folder is created and all contents of the specified folder copied to it before making changes.
This tool wont work with Coded UI Test projects created with Visual Studio 2010 Beta1 and older bits.