The Ramblings of Two Microsoft .NET Developers, TFS, and Visual Studio ALM Guys --- "Yes, we are both named Ed."

Third-Party Support for Visual Studio Coded UI Testing



Bookmark this page! I’ll be updating this blog post article as I am informed of support for Coded UI testing in each of the products. Let me know if I’m missing any that should be in the list!

If you have been using Visual Studio 2010 and Microsoft Test Manager for automated UI testing, you may have experienced some issues with building the Coded UI tests if your application is using third-party components. It has been quite frustrating having been to several customer sites over the past year and running into this issue. My suggestion for anyone that has run into these issues is to open a support case with the component vendor and request that they add the necessary accessibility support to their component libraries. This will allow each of them to track the interest for this type of support in their products and then also provide a way to inform you whenever it is supported.

FYI – This is also the necessary implementation to get the “Fast-Forward” functionality from Microsoft Test Manager to work to record the actions of manual test cases.

There doesn’t seem to be a definitive list of the third-party controls that do or don’t support Coded UI testing at the moment. I have attempted to gather all of the information to provide a one-stop shop for this support. I’ll include links to updates, add-ons, etc. as I receive them.

Product Infragistics DevExpress Telerik ComponentOne Xceed
ASP.NET Controls Green Green Green Green N/A
Windows Forms Controls Green5 Green4 Green3 Red Red2
Windows Presentation Foundation (WPF)Controls Red Red Red Red Green1
Silverlight Controls Red Red Red Red Red2

Notes

  1. Added support Xceed WPF Controls: http://twitter.com/#!/Kosmatos/status/32527169318027264
  2. Added updates for other products for Xceed: http://twitter.com/#!/Kosmatos/status/32527901526065153
  3. Added update for Telerik Windows Forms controls. Now available in each release of Windows Forms after 2011 Q1. http://www.telerik.com/products/winforms/whats-new-full-story.aspx
  4. Added update for DevExpress Windows Forms controls. Introducing support in the DevExpress 12.1 release. Check out more information DevExpress here: http://devexpress.com/products/net/controls/winforms/coded-ui/. Additionally, Brian Harry has some details in his announcement as well: http://blogs.msdn.com/b/bharry/archive/2012/06/22/devexpress-announces-full-coded-ui-support.aspx
  5. Jason Beres has announced that support for Coded UI testing will be included with the Infragistics Windows Forms 12.2 release scheduled for early October 2012.  This first release will support the most popular subset of the Infragistics Windows Forms controls with more to follow in the future.  More information:  http://www.infragistics.com/community/blogs/jason_beres/archive/2012/08/31/announcing-coded-ui-support-for-windows-forms.aspx

Blog Post Updates

  • 2/1/2011: Updates for Xceed.
  • 2/1/2011: Added some links for implementing the appropriate accessibility hooks. Thanks to Jeff Levinson!
  • 2/16/2011: Added additional information about the Accessibility Checker. Thanks to Vinod Malhotra!
  • 3/24/2011: Update for Telerik Windows Forms controls.
  • 7/11/2012: Upgrade for DevExpress Windows Forms controls support.
  • 7/11/2012: Added additional details about the Coded UI Support Blog Post by Shubhra.
  • 10/1/2012:  Upgrade for Infragistics Windows Forms controls support.

Accessibility Support for Custom Controls

If you are building custom controls that are for internal use in your organization, you’ll want to make sure you implement the appropriate accessibility hooks to get full support from the Visual Studio Coded UI testing platform. Here are some links for you to get started:

Additionally, there is a tool called the UI Accessiblity Checker (also known as AccChecker) that is available to help you check your controls to make sure that the necessary accessibility implementation is correct. The tool can check for both MSAA and UIA implementations. It even has a plug-in architecture so that third parties can add additional verifications to the tool. All the source code and the binaries are available on the CodePlex site.

Additional Information

Shubhra Maji from the Visual Studio Test & Lab Management product team at Microsoft put together a great “basics” blog post about the different levels of Coded UI support for custom controls: http://blogs.msdn.com/b/visualstudioalm/archive/2011/10/28/coded-ui-test-extension-for-3rd-party-controls-the-basics-explained.aspx. The goal for all third-party custom controls should be to get to Level 4 which is the “Intent-Aware” stage.

clip_image002

Ed Blankenship

Posted in TFS | VSTS | VSTS Testing


Thursday, October 27, 2011 5:35:59 PM (Pacific Daylight Time, UTC-07:00)
Any more updates on this? I need support for DevComponents and Infragistics WPF controls. Would love to hear if you know of any more information on these two.
Friday, October 28, 2011 2:14:24 PM (Pacific Daylight Time, UTC-07:00)
Hi Russ!

I haven't received any updates so far from the third-party companies. Were you able to log your request with them and receive additional information that I can share with others?
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

[Captcha]Enter the code shown (prevents robots):

Live Comment Preview