Lightweight .NET User Interface Testing

James McCaffrey, Volt Information Sciences, Inc.

The .NET environment provides a surprising but little known way to create user interface (UI) test automation scripts. By employing objects in the System.Threading and System.Reflection namespaces, test engineers can write ad hoc automated UI test scenarios in minutes. James McCaffrey presents an example of a Windows-based application and creates a test program written in C# that verifies UI functionality by simulating user typing and clicking. James explains the code in detail so you can modify and extend the program to meet your own needs. Learn how to write ad hoc UI test automation for .NET-based Windows applications.

  • How to use System.Threading for test harness communications in .NET
  • Simulate .NET user interactions with System.Reflection
  • A look ahead to Avalon and its effect on user interface test automation

Upcoming Events

Apr 13
May 03
Jun 01
Jun 07