Section 8.8. Exercises


8.8. Exercises

The following exercises assume that FitNesse has been installed.

1.

Experiment with the markup of pages. See the user guide for details of the markup.

2.

Experiment with adding pages at the same level, using wiki words without a leading ^ and within subwikis, using wiki words with a ^. See how full wiki words, with a leading ., and ordinary wiki words work from different pages within your page hierarchy.

3.

Enter one of the early example test tables into FitNesse, such as TestDiscount, as discussed in Section 3.1 on p. 13. Ask for programmer support to set up your page to refer to the associated fixtures so that the tests can be carried out. Run the test.

4.

Now make some simple changes to the table, such as entering data in the wrong format to see what happens under FitNesse when things don't work properly.

5.

Create a new FitNesse page with a single table that uses the same fixture as in the previous exercises. Test it.

6.

Now create a new FitNesse page with one or more tables that use a new fixture that doesn't yet exist. Test the table with the missing fixture code. It will give an error.

7.

Experiment with a working table by adding and removing cells in rows of the table. Noting what happens when things go wrong will help when you later make mistakes with table layout of your real tests.



    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