PRODUCT SUPPORT ANNOUNCEMENT
Some videos and Web Editions may be returning errors on launch. Learn more.
The rapid rise in popularity of Extreme Programming (XP) has put the practice of software testing squarely in the spotlight of application development. At one time, testing was a neglected practice, a highly specialized activity that came as an afterthought as complex, code-intensive projects were rushed to completion. But in today's world of escalating quality expectations, testing is a key component of the development process.
XP accelerates testing by demanding its complete integration with development. This in turn has pushed software professionals to rethink their traditional attitudes toward testing. XP asks the entire development team to embrace testing. In fact, testing is so critical to the XP methodology that programmers are required to write automated tests before they begin coding. Until now, however, there has been a distinct lack of instruction specific to testing and how it relates to XP.
Testing Extreme Programming is a practical tutorial that gives software builders a lucid understanding of this important aspect of development. This book demonstrates how testing is central to the XP project, clearly spelling out what testing should be done and when and how it should be performed. The authors teach by example, and readers will be able to improve their knowledge of the testing process by completing the book's exercises.
In addition, this book:
Many software engineers have dismissed XP as a throw-out-the-rulebook, anything-goes technique. It isn't. As this book shows, XP is a deliberate and disciplined approach to software development. Many software engineers have reaped the benefits of this agile methodology because its emphasis on testing eliminates much of the risk inherent in software projects. XP helps developers produce software on time, under budget, and at a higher quality level. But you can't XP if you don't test. With this book as a guide, you will learn to embrace testing. A sound testing program is the engine that drives an XP project.
Click below for Sample Chapter(s) related to this title:
Sample Chapter 2
I. THE XP TESTER ROLE.
1. An Overview.
Overview of XP.
How XP Solves Testing and Quality Assurance Problems.
System and Acceptance Testing Resources Wasted on Unit- and Integration-Level Bugs.
Missing and Out-of-Date Requirements.
Huge Gaps between the System and User Expectations.
Wolves in Sheep's Clothing.
2. Why XP Teams Need Testers.
Definition of Tester.
The Tester's Contribution, Illustrated.
Shun the Dark Side.
3. How XP Teams Benefit from Having Testers.
Checks and Balances.
Acceptance Tests versus Unit Tests.
Navigating for XP Projects.
4. XP Testing Values.
5. Overview of the XP Tester Role.
XP Tester's Bill of Rights.
XP Tester Activities.
6. Quality and XP.
Setting Quality Criteria.
Who Is Responsible for Quality?
II. TEST DRIVE THROUGH AN XP PROJECT.
7. User Stories and Release Planning.
The Tester's Role in Up-Front Activities.
Goals of Up-Front Tester Activities.
8. Identifying Hidden Assumptions.
A Process for Finding Hidden Assumptions.
Introducing the XTrack Application.
9. Defining High-Level Acceptance Tests.
Basic Acceptance Test Definitions.
10. High-Level Acceptance Test Estimates.
Ways to Estimate Acceptance-Test Effort.
A More Detailed Estimating Method.
11. Enabling Accurate Estimates during Release Planning.
Why We Care about Estimates.
How You Can Improve Estimate Accuracy.
12. Planning the First Iteration.
Overview of Iteration Planning.
The Tester's Role in Iteration Planning.
Thinking of All the Tasks.
13. Defining and Estimating Testing and Test Infrastructure Tasks.
Identifying and Estimating Test Infrastructure Tasks.
Identifying and Estimating Functional and Acceptance Testing Tasks.
A Note on Separate Test Teams.
Test Infrastructure Tasks.
Acceptance Testing Tasks.
14. Acceptance Tests and Quality.
Acceptance Test Details.
Internal and External Quality.
15. Nailing Down the Details.
Picking the Customer's Brain (and the Programmers'!).
The Good, the Bad, and the Ugly.
Lights-Out Test Design.
16. Writing Acceptance Tests.
If You Have Trouble Getting Started.
17. Organizing Acceptance Tests.
Version Control of Acceptance Tests.
Executable Test Files.
Organizing Acceptance Tests in Spreadsheets.
18. Test Design and Refactoring.
Establishing the Initial System State.
Tests That Leave the System State Unchanged.
Coupling between Tests.
Exercise 12 130
19. Manual Tests.
Manual Tests Are Unreliable.
Manual Tests Undermine the XP Testing Practice.
Manual Tests Are Divisive.
The Wings-Fall-Off Button.
What If You Have Manual Tests?
21. Test Automation.
22. Making Executable Tests Run.
Linking the Executable Test to an Application Test Class.
Defining the Application Test Class.
Calling the Code to be Tested.
Running the Test.
Getting Additional Tests to Run.
Combining Multiple Tests into Test Suites.
Exercise 16 156
23. Running Executable Tests through Other Interfaces.
Code Missed by Direct Calls.
Expanding Coverage of the Executable Tests.
Interfacing to a Test Tool.
Creating an Application Test-Interface Class.
Refactoring the Direct-Call Interface.
Refactoring the Application Test Class.
Creating a Tool-Specific Interface Class.
One Team's Experience with Direct-Call Test Automation.
24. Driving the System with a Test Tool.
Main WebART Script.
25. Bugs on the Windshield: Running Acceptance Tests.
How Often Do You Run Acceptance Tests?
Educating the Customer.
Road Food for Thought.
26. Looking Back for the Future.
27. Keep On Truckin': Completing the XP Road Trip.
When XP Projects End.
III. ROAD HAZARD SURVIVAL KIT.
28. Challenges in “Testability” .
Designing for Testability.
A Real-Life Example.
29. Selecting and Implementing Tools.
Other Tools Related to Quality.
Choosing an Off-the-Shelf Tool.
Experimenting with Tools.
30. Project Tune-Ups.
Accessorizing for XP.
Other Obvious Best Practices.
Additional Tester Duties.
31. Introducing XP to Your Organization: A Tester's Point of View.
Test Phases and Practices.
Introducing People to the XP Tester Role.
Helping XP Testers Succeed.
XP Testing with Blended Practices.
What If You Don't Have Enough Testers?
32. XP for Projects of Unusual Size.
Advance Planning Pays Off.
Working with Customers.
Satisfying Customer Test Documentation Requirements.
Iteration Planning and Execution for Large or Multilocation Projects.
33. Extreme Testing without Extreme Programming.
Planning and Defining Tests.
Let Worry Be Your Guide.
34. In Closing: May the Road Rise Up to Meet You.
Answers to Exercises.
This is a book about being a tester on an Extreme Programming (XP) team. It plugs a gap in the currently available XP materials by defining how an XP tester can contribute to the project, including what testers should do, when they should do it, and how they should do it. We are writing it because we think that XP is a better way to develop software and should be used by more teams. We believe that an acknowledged place in XP teams for testing and quality assurance will help bring that about.
Our goals in this book are to:
We hope that if you are not currently using XP, that you can influence your own organization to try it. Even if your team uses some other process for software development, we think you can apply "extreme testing" practices to add value.
Because not everyone will be familiar with XP, we provide an overview of the basic concepts in the introduction, and describe a few aspects in more detail as necessary throughout the text. But this will be a bare-bones summary, at best, and there are several excellent books on the subject, as well as a wealth of information on the Web.
The book is divided into three major parts:Part I - The XP Tester Role
This is where we define what we think the tester role is (and is not), how a project will benefit from it, what is in it for the tester, and generally why XP needs a tester role.Part II - The XP Test Drive
Here we go through an XP project step by step and suggest what goals to shoot for, which activities to engage in, and helpful techniques to try as a tester on an XP project.Part III - Road Hazard Survival Kit
Finally we provide some resources to help you cope when the real world doesn't conform exactly to the ideal XP project. Large projects, for instance, where an XP team is imbedded in a larger, non-XP effort, or when critical XP practices are modified or omitted.
We've tried to keep the things as practical as possible, and provided real-life examples as well as exercises for you to try it out for yourself. The exercises are built around an XP project to develop a simple web-based tracking application, and we provide portions of the application at various stages for you to practice on.
We think you will find this book helpful if you are already a member of an XP team, or if you are a testing/quality assurance professional, or if you are in any software development role and considering XP.
As I see it, I have two jobs to do in this foreword. The first is to persuade you that it's worth your time to keep reading this book. The second is to place the book in context: what does it say about the world of testing and about how that world is changing?
My first job is easy. The reason is that the book you're holding is both skimmable and eloquent. Stop reading this foreword. Go to Part II. Browse some chapters. Do you see tidbits you can put to immediate, practical use on an XP or agile project? That's a sign Lisa and Tip are writing from experience. Do the chapters seem to hang together into a coherent testing strategy? That's a sign they've thought about their experience. Is the tone flexible, avoiding dogmatism? That's a sign that you'll readily be able to adapt what you read to your local circumstances. These are the things that make the book worth reading. Don't believe me; check for yourself.
The second job is harder. How does this book fit in? As I write (May 2002), the world of testing seems stuck. We're all supposed to know certain fixed concepts: what the purpose of testing is, what the relationship of testers to programmers should be, what test planning means. When presented with a new project, it seems we're intended to take those concepts as givens, follow some methodology, and fill in the blanks through a process of top-down, stepwise refinement.
But that's not really what happens, at least not on good projects. The tester comes to a project equipped with a hodgepodge of resources: concepts, attitudes, habits, tools, and skills--some complementary, some contradictory. She begins by modeling her new situation after one she's experienced before. She applies her habits and skills. She keeps what works and changes what proves awkward. She fluidly adapts any of her resources to the situation. In her project, testing goes through what Andrew Pickering calls "the mangle of practice" (in his book of the same name).
All this is hidden, because it's disreputable in at least two ways. First, everything is up for grabs, including those seemingly fixed concepts we're all supposed to know. The practice of testing, when applied in specific contexts, changes the purpose of testing, the relations of people, what test planning means. There's precious little solid ground to stand on. Second, the trivial can be as important as the lofty. Knowing how to use 3 x 5 cards well may matter more than knowing test design techniques. Unthinking work habits may have more effect than reasoned decisions.
We need to make the mangle respectable. It's harmful when people feel vaguely ashamed of doing what has to be done. It's even worse when they don't do it because they think they must follow the rules to be "professional."
And that marks this book's significance beyond simply (!) helping XP testers. In it, you can see the traces of two people interactively adapting their practice of testing to a new sort of project, arriving at last at a point of stability: something that works well enough that they can gift it to others. It's an inspiring example. I mean that literally, in that I hope it inspires you to model your testing after it, run that model through the mangle of practice, and report back to us, saying, "Here. Here's what I do. Here's what I've seen. Here's what works for me. Try it."Brian Marick
Click below to download the Index file related to this title: