Chapter 16: Automated Testing


Overview

In Chapter 3, I talked about unit tests and explained why unit testing is such a vital part of producing high-quality code. For those of us who work mostly on an application's internal logic, unit tests can be fairly simple. Look at this book's sample files in BugslayerUtil\Tests, and you'll see all the unit tests I used to develop BUGSLAYERUTIL.DLL. Almost all those tests are console applications that do their jobs admirably.

Unfortunately, testing user interface (UI) code is more difficult, no matter whether the application is a Microsoft .NET fat client or is browser based. In this chapter, I'll present a utility I wrote, Tester, that will help you automate your UI testing. Compared with the version of Tester included in the first edition of this book, the new Tester tool now borders on the capabilities of a full-blown commercial regression-testing tool. In fact, I've been extremely pleased to see how many development shops are using Tester. Not only is it easier to deal with than many commercial systems, it's quite a bit less expensive, too.




Debugging Applications for Microsoft. NET and Microsoft Windows
Debugging Applications for MicrosoftВ® .NET and Microsoft WindowsВ® (Pro-Developer)
ISBN: 0735615365
EAN: 2147483647
Year: 2003
Pages: 177
Authors: John Robbins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net