FitBook

FitBook Examples for .NET 2.0, .NET 1.1 & Java

Download & Install

see for additional installation details

System Requirements

This port has been compiled and tested on  Windows XP Pro SP2, Athlon, 1GB, IE6 & 7 & Firefox and Visual Studio .NET 2005 & 2003 professional edition. It has also been tested on Ubuntu Dapper Drake 6.06, with Mono 1.1 installed.

Fitnesse & Wiki

Fitnesse 20060719 (or later) must be installed to use the examples.

FitBook Examples .NET1.1, .NET 2.0 & Jre1.5

Downloads available: Windows: Linux:
.NET 2.0 & latest FitLibrary from fitnessedotnet (svn version 17) FitBookEx_Net20Fdn.zip FitBookEx_Net20Fdn.tar.gz
.NET 2.0 & FitLibrary.NET20060117 FitBookEx_Net20Fpl.zip FitBookEx_Net20Fpl.tar.gz
.NET 1.1 & latest FitLibrary from fitnessedotnet (svn version 17) FitBookEx_Net11Fdn.zip FitBookEx_Net11Fdn.tar.gz
.NET 1.1 & FitLibrary.NET20060117 FitBookEx_Net11Fpl.zip FitBookEx_Net11Fpl.tar.gz
Java (Jre 1.5) & latest FitLibrary 20060906delta FitBookEx_Jre15F96.zip FitBookEx_Jre15F96.tar.gz
Java (Jre 1.5) & FitLibrary 20060116 FitBookEx_Jre15F16.zip FitBookEx_Jre15F16.tar.gz
Note: See Latest Changes 27 October '06 for latest changes. Current version is 1.0.2

Installation

  1. Download the required file from the table above.
    (Start with one, others can be installed if you need them.)
  2. Extract the zip or tar.gz file to the drive where FitNesse is installed (N.B. tick 'Use folder names' & 'overwrite files' in WinZip!) .
  3. Start the FitNesseWiki,
    On Windows, navigate to the fitnesse directory and click on runfitnesse.bat .
    On Linux, open a terminal, cd to the fitnesse directory and type ./runfitnesse.sh .
    (This installs fitnesse on port 8081.)
  4. Go to the FrontPage (by pointing your browser to http://localhost:8081 )
  5. Edit the FitNesse FrontPage.
  6. Add the line
    !include FitBookExamplesMenu
    The FIT BOOK EXAMPLES section should appear when you save the page,
    shown in the image below (In this case 3 combination have been downloaded.):

    or

Run the Tests

  • Start Fitnesse.
  • Go to the FitNesse FrontPage (by pointing your browser to http://localhost:8081 )- click on the FitNesse icon top-left.
  • Click on C# (or VB or J# or Java) icon in the FIT BOOK EXAMPLES table.
  • The TestSuite should appear with a button bar

    at the top. Which buttons appear depends on the what has been installed.
  • To run all the tests, click on Suite (under the FitNesse icon )
The tests for with the red, green, yellow indications should appear as shown
(place cursor over Test Suite Results below).
  1. To run all tests for a chapter, click on ^ChapterNNdescription, on the TestSuite page, then click on Suite on the resulting page.
  2. To run individual tests, click on ^FigNTestDescription, then click on Test on the resulting page.

N.B.

  1. Individual tests contain links to the Fit Fixtures and Application code, in the language chosen, relevant to the test.
  2. The Visual Studio projects for the Fixtures and Applications are in
    <YourDir>/fitnesse/FitNesseRoot/files/<environment>/<fitlibrary>/Fixtures/<language> <YourDir>/fitnesse/FitNesseRoot/files/<environment>/Application/<language>
    respectively.
  3. The Fit, FitLibrary, FitServer etc. binaries are extracted to
    <YourDir>/fitnesse/FitNesseRoot/files/<environment>/<fitlibrary>/
  4. The documentation for the relevant FitLibrary can be accessed by clicking on 'FitLib Docs' in the button bar.
  5. Basic help is available under 'Help' on the button bar.
See more installation details in extended instructions
It is not necessary to compile the sources before running the ported tests.