Section 16.6. Exercises


16.6. Exercises

  1. Write some further test rows based on Figure 16.7.

  2. Write a new test table that includes days and weeks.

  3. Design a variant of Figure 16.7 that calculates in terms of the charge rather than in terms of the actual time periods to be used in the charge.

  4. Write late-return tests based on the format of Figure 16.7. Assume that the charges in the table are all that count and that negative quantities may be used in the calculated fields.

  5. Consider whether there is any point in having a test table that includes hours, days, and weeks. If you think so, make up some tests that use it. (Hint: Think about what time period charge rates would make this so.)

  6. Should we consider the case in which the hourly rate is greater than the daily rate? What assumptions and/or higher-level policies do you draw on? What tests may this thinking lead to?

  7. Choose an area for which you have written, or could imagine writing, many workflow tests. Copying a workflow test repeatedly and making small changes to it is a good indication that there may be calculation-based tests waiting to get out. Look for such tests and extract 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