As part of our effort to make it easier to test applications, we would like to share some of the test technology we use internally on the WPF team with the community.

We are making a library available, and although this first release is fairly small, it can already provide value to existing applications. New features will be added in no small part based on the feedback we receive from the community!

Some of the current APIs in the library include:

  • Command Line Parsing: Arguments are parsed and can be strongly typed
  • Visual Verification: Screenshot comparison
  • WPF Dispatcher Helper: Manage the dispatcher queue to make testing more predictable
  • Input Helpers: Keyboard, Mouse input APIs
  • Accessibility Helpers

The project is called TestApi. Binaries, source code and samples were released on CodePlex at http://codeplex.com/TestApi.