O'Reilly logo

Fit for Developing Software: Framework for Integrated Tests by Ward Cunningham, Rick Mugridge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Testing Business Processes with ActionFixture Tables

An ActionFixture table tests that a sequence of actions made to a system have the desired effects. For example, pressing keys on a simple calculator leads to changes in the numbers shown on the calculator display. ActionFixture uses the metaphor of a device to control the test; values can be entered into input fields, buttons pressed (clicked), and output fields checked against expected values. In this chapter, we look at two simple examples of using ActionFixture tables.

4.1 Buying Items

Here’s the business rule for the first example of an ActionFixture table.

A user selects a number of items to buy. The total price is accumulated for those items.

Figure 4.1 shows a simple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required