Technical Presentation

Fundamentals of GUI Automation Using C#

Many companies are requiring their testers to become more proficient in test automation. Many testers also know the benefits of test automation. But, for testers who lack a coding background the initial hurdle of learning a programming language can be a bit intimidating. To make matters worse, most courses on programming languages focus on building windows applications; not on how to use a programming language to develop automated tests. This presentation provides an introduction to test automation targeted towards testers with little or no programming background and shows them how easy it is to start writing effective automated GUI tests using the C# programming language.

This presentation provides a foundation for testers who lack a programming background or unfamiliar with automated testing using C# to test a Windows application written in C/C++ or VB using the popular and free version of Visual Studio Express Editions available at http://msdn.microsoft.com/vstudio/express/visualcsharp/. Attendees will learn the basics of the C# programming language and how using C# to write automated tests with free tools available on the Internet. You will learn how to launch a Windows application under test (AUT), manipulate the AUT menus and controls, apply data, verify and log results. The sample application under test (AUT), verbosely commented code samples, and additional tools will be distributed to attendees on a CD so they can further their investigation of test automation and C#. Attendees will also learn basic strategies for deciding what tests to automate and how to develop effective automation test suites. Attendees will learn:

  • Advantages of C# for test automation
  • Basic C# programming language syntax and structures
  • Essential C# namespaces and classes commonly used in automated test code
  • Basic techniques to automate GUI test cases for Windows applications
  • Deciding what to automate and establishing automated test suites