Аннотация

"If you'd like a glimpse at how the next generation is going to program, this book is a good place to start." —Gregory V. Wilson, Dr. Dobbs Journal (October 2004) Build Your Own Automated Software Testing Tool Whatever its claims, commercially available testing software is not automatic. Configuring it to test your product is almost as time-consuming and error-prone as purely manual testing. There is an alternative that makes both engineering and economic sense: building your own, truly automatic tool. Inside, you'll learn a repeatable, step-by-step approach, suitable for virtually any development environment. Code-intensive examples support the book's instruction, which includes these key topics: Conducting active software testing without capture/replay Generating a script to test all members of one class without reverse-engineering Using XML to store previously designed testing cases Automatically generating testing data Combining Reflection and CodeDom to write test scripts focused on high-risk areas Generating test scripts from external data sources Using real and complete objects for integration testing Modifying your tool to test third-party software components Testing your testing tool Effective Software Test Automation goes well beyond the building of your own testing tool: it also provides expert guidance on deploying it in ways that let you reap the greatest benefits: earlier detection of coding errors, a smoother, swifter development process, and final software that is as bug-free as possible. Written for programmers, testers, designers, and managers, it will improve the way your team works and the quality of its products.

Аннотация

Have you tried using an «automated» GUI testing tool, only to find that you spent most of your time configuring, adjusting, and directing it? This book presents a sensible and highly effective alternative: it teaches you to build and use your own truly automated tool. The procedure you'll learn is suitable for virtually any development environment, and the tool allows you to store your test data and verification standard separately, so you can build it once and use it for other GUIs. Most, if not all, of your work can be done without test scripts, because the tool itself can easily be made to conduct an automatic GUI survey, collect test data, and generate test cases. You'll spend virtually none of your time playing with the tool or application under test. Code-intensive examples support all of the book's instruction, which includes these key topics: Building a C# API text viewer Building a test monkey Developing an XML viewer using xPath and other XML-related classes Building complex, serializable classes for GUI test verification Automatically testing executable GUI applications and user-defined GUI controls Testing managed (.NET) and unmanaged GUI applications Automatically testing different GUI controls, including Label, TextBox, Button, CheckBox, RadioButton, Menu Verifying test results Effective GUI Test Automation is the perfect complement to Li and Wu's previous book, Effective Software Test Automation: Developing an Automated Software Testing Tool. Together, they provide programmers, testers, designers, and managers with a complete and cohesive way to create a smoother, swifter development process—and, as a result, software that is as bug-free as possible.