FitBook

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

Examples from the FitBook ported to .NET by Paul Vlagsma

Fit for Developing Software: Framework for Integrated Tests

  By Rick Mugridge & Ward Cunningham

Publisher: Prentice Hall | Pub Date: June 29, 2005
ISBN-10: 0-31-26934-9 | ISBN-13: 978-0-31-26934-9

This great book ( hierinafter called 'the FitBook' ) introduces a number of  excellent Application Testing Tools and Project & Software Development Patterns for implementing Application Test Driven Development in your company. The book covers the development of system requirements, application tests and software in detail, using many examples to illustrate the processes involved. Implementing the methods illustrated in the book can change the way your company operates and make good friends of marketing people, project managers, testers and developers. This is the ultimate in application testing, the next step you need after Unit Testing.

Fit, FitNesse, & the FitLibrary extensions are revolutionary techniques for software Application Testing. The book shows how to introduce automated application testing into your company using an incremental approach, providing a pain-free evolutionary path to successful implementation.

The requirements gathering, testing interface and development patterns are universally applicable, but the examples given in the book are based on Java.


FitBook Examples ported to .NET 2.0, .NET 1.1

(New - 27 October 2006)
I have ported the java code used in the book examples into C# , Visual Basic.NET and J# in .NET 1.1 and .NET 2.0 and have included the original Java versions. go to Download Page . See also Latest Changes 27 Oct '06

This makes it easy for developers who are reading the book to immediately understand how to implement the test fixtures described, in their language of choice.
  • The tests in the test suite follow the chapters in the book
  • Individual test pages contain references to the book Tables and Fixture listings, and clickable links to the relevant fixture and application code.
  • The examples are downloadable in six combinations of development environment and fitlibrary version.
  • Each .NET version contains C# , Visual Basic.Net and J# versions of the examples.
  • The .NET 2.0 downloads contain examples of Windows Forms and Web forms testing using NUnitForms and Selenium RC.
  • The Java versions containing the original examples in Java can also be downloaded here.
  • The relevant FitLibrary documentation is included, slightly refactored, to allow for more than one version in the same fitnesse wiki.
  • The required fit & fitlibrary binaries are part of the download.
  • All downloads can exist side-by-side in the same fitnesse, with simple selection and navigation provided.
  • The examples can run on Windows or Linux (and probably, although not tested, on Unix).
  • On Linux the .NET examples run successfully if mono 1.1 ( and, for .NET 2.0 examples, mono-gcms ) is installed.

Using the examples while reading the book:

The tests are implemented as part of the FitNesse wiki. Each test page has a link to the fixture code and application code used in the test, as well as references to the relevant sections, figures and listings in the book. Reading the book while referring to the relevant test pages on your computer's FitNesse wiki site provides a simple way of directly relating the book text to code in your language(s) of choice. The fixture code can be copied and/or modified as required.

All the example code and the required FitNesse, fit and FitLibrary for .NET & Jre 1.5 have been compiled and are ready to run after you unpack the downloaded zip file to the location of your localhost, or other, FitNesse server.
 
The examples can be downloaded using the link below.

Download and Install the .NET & Java examples for the FitBook.

Development environments supported.


The tests, examples and the applications under test are included for:

Visual Studio 2005, .NET 2.0 (for Windows, or Linux with Mono 1.1 & mono-gcms ) and
Visual Studio 2003, .NET 1.1 (for Windows, or Linux with Mono 1.1) projects (20 Oct '06), as well as in
Java (for Windows or Linux), Jre 1.5 NetBeans 5.5 projects (20 Oct '06).

Each language environment is available in two FitLibrary versions:

.Net - FitLibrary.NET 20060117 & FitLibrary from fitnessedotnet (July 2006) and
Java - FitLibrary 20060116 & FitLibrary 20060906delta

The Visual Studio 2005 (.NET 2.0) versions also include examples for testing with:

Selenium. Both simple and more complex (using the RentAParty application) examples for Web Applications.
NUnitForms. Both simple and more complex (using the RentAParty application) examples for Windows Forms.

Each download can be installed as is and runs 'out of the box'.

All the required fit & FitLibrary binaries & documentation, as well as (for .NET 2.0) the necessary
Selenium binary & server and ASP.Net 2.0 Web Application (which must be installed in an IIS), and
NUnitForms library and Windows Forms
are included in the downloads.

The .NET 1.1 and Java versions can also be installed and run, as is, under Linux.
Under Linux the .NET version runs using Mono 1.1. The .NET 2.0 versions run under Mono 1.1 if mono-gcms is also installed.

All combinations can be installed in the same fitnesse 20060719 (or later) installation, and you can easily choose and navigate between languages, FitLibraries and .NET and Java environments within the wiki.


Please note :

 Copyright of the tests and the code remains with the original authors.



Links, Building, Help

If you wish to build your own versions of Fit and FitNesse, see the links below:

Links for downloading & using fitnesse, Fit and the FitLibrary

and My Build sources

and A little help debugging fitnesse errors .

Comments, Suggestion, Complaints, Bug reports :

Are very welcome!
Please post comments on my blog at http://paulvlagsma.bigblog.com.au/