Coded UI Test Extension for 3rd party Windows Forms controls–How to?
Oct 28, 2011Importer
Summary
This post details how to extend Coded UI Test support to third-party Windows Forms controls by implementing Microsoft Active Accessibility (MSAA) on the control, overriding accessibility methods for basic record and playback, and implementing a custom PropertyProvider to enable rich property validation (e.g., BackColor, ForeColor) via the Coded UI Test Builder. It also covers creating specialized classes for custom controls to enable code generation for these controls in recorded tests. The post provides detailed code examples for each level of implementation.
More from the Coded UI Test Deprecation and Alternatives trail
- Changes to Coded UI Test in Visual Studio 2019
- Troubleshooting launch issues with xaml based apps using Coded UI Test
- Coded UI Test Extensibility V2
- Coded UI testing support for Silverlight using Visual Studio 2013
- Test controllers are not visible or marked offline in MTM when multiple versions of MTM are installed