Effective Software Test Automation: Developing an Automated Software Testing Tool

Front Cover
John Wiley & Sons, Feb 20, 2006 - Computers - 408 pages
"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.

 

Contents

Developing an Automated Software Testing Tool Chapter 2 Current Testing Infrastructure vs the Proposed Testing Methods
19
Developing an Automated Software Testing Tool Chapter 3 NET Namespaces and Classes for Software Testing
35
Developing an Automated Software Testing Tool Chapter 4 NET Reflection for Test Automation
63
Developing an Automated Software Testing Tool Chapter 5 Spreadsheets and XML for Test Data Stores
99
Developing an Automated Software Testing Tool Chapter 6 NET CodeDom Namespace
149
Developing an Automated Software Testing Tool Chapter 7 Generating Test Scripts
187
Developing an Automated Software Testing Tool Chapter 8 Integration Testing
241
Developing an Automated Software Testing Tool Chapter 9 Verification Validation and Presentation
277
Developing an Automated Software Testing Tool Chapter 10 Finalizing the AutomatedTest Tool
317
Developing an Automated Software Testing Tool Chapter 11 Updating the AutomatedTest Tool for Testing the Windows Registry
343
Developing an Automated Software Testing Tool Chapter 12 Testing the AutomatedTest Tool
367
Developing an Automated Software Testing Tool Index
391
Copyright

Other editions - View all

Common terms and phrases

About the author (2006)

Kanglin Li is a software engineer responsible for software development, testing, and deployment at Communication Data Services. He has developed applications in Basic, Pascal, C++, Java, Visual Basic, and C#. Li taught at North Carolina A&T State University as an assistant professor and is the author of 14 journal articles and technical papers. He has a B.S degree in Agronomy, an M.S. degree in computer science, and a Ph.D. degree in soil physics and statistics.

Bibliographic information