Tuesday, May 17, 2011

Adding Coded UI Test support to Third Party WinForm Controls Series

Mathew Aniyan's Blog - Enabling UI Testing for Third party WinForms custom controls - 1 

“Most of the leading Third party WinForms custom control vendors implement Microsoft Active Accessibility(MSAA). Since Visual Studio UI Testing framework uses MSAA for WinForms controls, it is natural to expect that users can test these custom controls also. The custom control vendors have implemented sufficient accessibility for Narrator. There are some subtle differences in the requirements for Screen Narrator & UI Test Framework. In this article, I will describe the additional requirements from a Visual Studio UI Testing Framework perspective.

For the purposes of this article, I have picked up the DevExpress XtraScheduler Scheduler Control. The guidance in this article should be applicable for all custom WinForms controls.

…”

Mathew Aniyan's Blog - Enabling UI Testing for Third party WinForms custom controls - 2

“In the previous article, I described how we can make the DevExpress Scheduler Control & Appointments visible to Visual Studio UI Testing Framework. In this article, I will describe how we can retrieve rich properties for both these controls. These properties can then be used for validation in Coded UI Test.

In order to achieve this, we need to implement a Property Provider extension for the Visual Studio UI Testing framework.

…”

Given that I like to buy over build where possible, I thought this might be useful…

No comments: