There are times where we need to do a Visual Verification to our application, in Coded UI tests this task is now possible using the TestApi.
“TestApi is a library of test and utility APIs that enables developers and testers to create testing tools and automated tests for .NET and Win32 applications. TestApi provides a set of common test building blocks -- types, data-structures and algorithms -- in a simple, layered, componentized and documented stack.”
The TestApi can be downloaded here.
A good explanation of how to add the Visual Verification to the Coded UI Test can be found in Ivo Manolov’s post: “Introduction to TestApi – Part 3: Visual Verification APIs”
Have Fun!!!