Section 13.10. Exercises


13.10. Exercises

1.

Consider the tests in Figure 13.8. Write some tests that are likely to be useful additions.

2.

Invent a business rule for the calculated grace period. Design a Fit table and add some tests.

3.

Consider other possible table structures for Figure 13.8.

4.

Select a business rule of relevance to you that involves calculations or decisions.

5.

Work with one or two others to discuss the selected business rule as a Fit test.

6.

What are the givens? What is being calculated?

7.

If your business rule is at all complex, start with a small part of it and evolve the table step by step by adding more cases, as we showed in this chapter.

8.

As your tables evolve, reconsider the vocabulary as you progress. Can it be made clearer?

9.

Feel free to completely change things at any point; as you attempt to express the tests, you may find better ways to do so.

10.

Try to use realistic examples, even if you have to simplify them initially.

11.

You may find it useful to break the test into several tables.

12.

Are you in fact tackling two or more related business rules? If so, split them.



    Fit for Developing Software. Framework for Integrated Tests
    Fit for Developing Software: Framework for Integrated Tests
    ISBN: 0321269349
    EAN: 2147483647
    Year: 2005
    Pages: 331

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