Section 11.2. Testing Associations


11.2. Testing Associations

Sometimes, a test is easier to read with a picture than with text. For example, the table shown in Figure 11.2 tests the occupancy of various users in various rooms. The Fit fixture doesn't check the image itself but uses an internal format to make the check. If the test fails, a picture of the actual associations is provided (see also Plate 6).

Figure 11.2. A Table Containing an Image


Programmers

The fixture code for the tests here is given in Section 29.2 on p. 248.


Questions & Answers

Q1:

Could associations be used to show hierarchical information, such as a parts breakdown?

A1:

Yes, that would work well, as long as not too many parts are included.

Q2:

What about something like a PERT chart?

A2:

Yes, that could also work well, as long as it's not too big.



    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