Visual Studio 11 Beta - What is new in Coded UI Tests?

Visual Studio 11 Beta - What is new in Coded UI Tests?

Rate This
  • Comments 40

With Visual Studio 11 Beta, now available at this download location, you will see a number of enhancements to Coded UI Tests. This blog highlights the top features and points you to the MSDN articles which describe each feature in detail.

 

IE 9 & 10 New feature support

Coded UI Tests added support for a host of new features which are new in Internet Explorer 9 & 10. The features are described in detail in the following MSDN articles.

· Support for HTML5 in Internet Explorer 9 and Internet Explorer 10

· Support for Windows Internet Explorer 10 Spell Checking

· Support for 64-bit Windows Internet Explorer with Windows 8 Consumer Preview

· Support for Pinned Sites in Windows Internet Explorer 9

· Support for Windows Internet Explorer 9 Semantic Tags

· Seamless Handling of White Space Characters between Versions of Windows Internet Explorer

· The Notification Area of Windows Internet Explorer Are Now Recorded With the “Continue on Error” Attribute Set

 

New UI Testing API

We are increasing our focus on Developers building Coded UI Test. In order to improve the hand-coding experience for Coded UI Tests, we have added a set of new APIs.

clip_image002

The following MSDN articles describe the new API.

· HtmlControls

· WinControls

· WpfControls

 

Upgrading Coded UI Tests

A silent repair is performed on Test Projects which contain Coded UI Tests when opened in Visual Studio 11. After this repair, these tests projects can seamlessly round-trip between Visual Studio 11 & Visual Studio 2010 SP1.

A full backup of the project is taken before upgrade. An upgrade report is also created in the project folder. You can look at these, if you hit any issues after the repair. The project file will be checked out, if it is under source control as part of the repair process.

There are a few gotchas in the repair process, these are documented in the following MSDN article. Upgrading Coded UI Tests

 

Coded UI Test Editor

We had released Coded UI Test Editor, which is a graphical editor for the UI Maps, in Visual Studio 2010 Feature Pack 2. This feature has now been integrated into Visual Studio 11. The following MSDN article describes the features of Coded UI Test Editor. Editing Coded UI Tests using the Coded UI Test Editor

 

Changes in Coded UI Test Workflows

Coded UI Test Project creation workflow has changed. The New Project Wizard now looks like this.

clip_image004

Unit Test Explorer is now used to run Coded UI Tests.

clip_image006

The Data Source Wizard is no longer available. Please look at the following blogs if you want to hand-code data source attributes.

http://blogs.msdn.com/b/mathew_aniyan/archive/2009/03/17/data-driving-coded-ui-tests.aspx

http://blogs.msdn.com/b/mathew_aniyan/archive/2009/04/16/more-on-data-driving-coded-ui-tests.aspx

 

Coded UI Test Builder Enhancements

You can now add a description when generating a method. This description is added as a comment in the UIMap.Designer.cs file.

clip_image008

You can now add a message to be shown when an assertion fails.

clip_image010

 

Platform Support

3rd party Control Support

Important links on 3rd party control support: 

http://www.telerik.com/products/winforms/whats-new/roadmap.aspx

http://devexpress.com/products/net/controls/winforms/coded-ui

http://www.infragistics.com/community/blogs/jason_beres/archive/2012/08/31/announcing-coded-ui-support-for-windows-forms.aspx

http://our.componentone.com/2012/02/10/componentone-and-codedui-tips-and-tricks-part-i/ 

Send Your Feedback

We hope you like the new features in Coded UI Test. Please send us your feedback on Connect or in the Forums.

Leave a Comment
  • Please add 3 and 1 and type the answer here:
  • Post
  • @dotnetbee

    1. Coded UI Test Editor is available in VS11. Coded UI Test plugins for Silverlight & Firefor are not.

    2. The plan for cross-browser support in Coded UI Test is still being worked out.

    3. I am not aware of any new features in the Reporting area. Suggest posting a query on MSDN forums.

    4. We have not added any new API for visual verification. TestAPI is what we recommend using if you have do visual verification. (Use this only as a last resort).

    5. There is a codeplex tool available for UIMap manipulations - uimaptoolbox.codeplex.com. Please try it out and see if it meets your requirements.

  • Is Coded UI 2011 support testing windows applicaitons (Thick clients)?

  • 1. Why are the test results not shown in the “test results” window?

    2. How can I access the xml results? Where are they stored now?

    3. I’m missing a lot of simple information shown in the test results like: start time, duration, test machine, outcome

    Also I’m missing a real overview of the last test run.

    4. Is there a way to show ALL tests at once in the Unit Test Explorer?

    Or create a favorite tests category to find some tests faster?

    5. Is there no way to configure the Test Controller like in VS2010?

  • Why are the test results not shown in the “test results” window/panel?

    How can I access the xml results? Where are they stored now?

    I’m missing a lot of simple information shown in the test results like: start time, duration, test machine, outcome

    Also I’m missing a real overview of the last test run.

    Is there a way to show ALL tests at once in the Unit Test Explorer?

    Or create a favourite tests category to find some tests faster?

    Is there no way to configure the Test Controller like in VS2010?

  • Do CodedUI tests run as 64-bit process in VS 11?

  • @Manas, no, Coded UI Tests cannot be run as 64-bit in VS11. Coded UI Tests work on 64-bit apps though. Is there any scenario that is blocked for you?

  • @Neeraja, I had made this request to Mathew A. and Anutthara B. around 2 years back and was was told that it will be considered in a future release.

    >>When can we expect coded UI tests being able to run as 64-bit process? This is causing major pain for us, as we have had to create separate test setting files for codedUI and unit tests and then manually change the active test setting file between tests. The need for such manual intervention completely defeats the purpose of automation.<<

    It is very disappointing that there is still no 64-bit support!

  • @Neeraja

    If the application access 64-bit directories or 64-bit registry, then how do you recommend verifying operations or initializing conditions without redirection?

  • When probably Coded UI test will support Chrome,Safari & FF 4+?

  • Is there any tentative date as to when Chrome Support will be available. I was in touch with a couple of guys in MS and did hear about Chrome coming into the roadmap however I was not informed about the tentative date.

  • Rupesh/Abhinav,

    Cross-browser support is on the top of our backlog. You will soon hear from us.

  • Hi

    I would also like some feedback on when cross-browser support will be available for coded UI test in VS2012

  • Hi Peter,

    We are evaluating building the cross browser support. We have no timeframe to talk about.

  • So after looking at the list of "Upgrades" I'm left wondering why I would install the new version.  I can't see one single benefit.  You took away the data connection wizard, now I have to run tests from the "unit testing too"l and you changed the workflow of testing projects yet you can't find time to support Silverlight and other browsers.  

    You guys really need to find a direction.  You keep trying to straddle the fence between being a devlopers tool or a testers tool and as the tools currently sits it fits neithers bill.

  • @Greg

    We understand your concerns. I wanted to inform you that we have released VS 2012 Coded UI Test support for Silverlight 4 and Silverlight 5 support  on Visual Studio Gallery last month and there has been fair uptake (looking at the ~500 downloads).

    blogs.msdn.com/.../coded-ui-testing-support-for-silverlight.aspx

    visualstudiogallery.msdn.microsoft.com/28312a61-9451-451a-990c-c9929b751eb4

    Please try it out and give us your feedback. Regarding support for browsers, it is on the top of our backlog and you will hear soon from us.

Page 2 of 3 (40 items) 123