Upgrade VS Beta 2 Coded UI Test Project to VS 2010 RC

The new Visual Studio 2010 RC brings significant changes in the domain of the coded UI tests. You can realize that if you try to build a test project in this new environment as you probably get more than 1000 errors. A few errors seem to happen a few hundred times each:

  • Microsoft.VisualStudio.TestTools.UITesting.UITestControlProperties’ is inaccessible due to its protection level.
  • The name ‘HtmlProperties’ does not exist in the current context.
  • The name ‘UITestControlProperties’ does not exist in the current context.
  • The name ‘WinProperties’ does not exist in the current context.

However, you can upgrade your project with an automatic upgrade script to move your automation:

  1. Launch the Visual Studio Command Prompt from Start Menu > All Programs> Microsoft Visual Studio 2010> Visual Studio Tools
  2. Run the script

UITestUpgrade.exe < folder to upgrade>

The upgrade tool will fix all of the changes listed below:

  • All of the folders under the specified folder(s) is searched recursively and all projects under it upgraded.
  • If a project is under source control, the upgrade tool will perform a check out and make changes.
  • Tool will create a backup folder with all contents of the specified folder.

Tags: , ,

Leave a Reply