Fitnesse - Getting Started

Fitnesse Architecture


A little getting started guide for fitness



Fitnesse - Installation

BasicTest with a DecisionTable

Slim has several test written in table format.

We will use the decision table

|10       |2          |5        |
|12.6     |3          |4.2      |
|100      |4          |33       |


  • eg specifies a Java package (or other language namespace), and Division specifies the actual class to be called.
  • the rows are processed from left to right,
  • the input values are headers without a question mark ?
  • the input values are passed to the corresponding fields using setter functions
  • the expected value are the header with a question mark (ie quotient?)

This decision table would test this Java class:

public class Division {
  private double numerator, denominator;
  public void setNumerator(double numerator) {
    this.numerator = numerator;
  public void setDenominator(double denominator) {
    this.denominator = denominator;
  public double quotient() {
    return numerator/denominator;

Test Run

You can run a test with one of the following options:

Web Page

When you are on a web page, you can start a run with:

  • the Test button at the top of the page.
  • shortcut ALT-t from a web page

Http request

Http request example: http://localhost/FitNesse.UserGuide.TwoMinuteExample?test&format=text

Starting Test System: slim:fitnesse.slim.SlimService.
F 11:43:36 R:5    W:1    I:0    E:0    TwoMinuteExample	(FitNesse.UserGuide.TwoMinuteExample)	0.307 seconds
1 Tests,	1 Failures	0.719 seconds.


You can see in the output that the engine is slim

Command line

Command line example:

java -jar fitnesse-standalone.jar -c "MyTestPage?test&format=text"

REM Example
java -jar fitnesse-standalone.jar -c "FitNesse.UserGuide.TwoMinuteExample?test&format=text"
Starting Test System: slim:fitnesse.slim.SlimService.
F 14:38:15 R:5    W:1    I:0    E:0    TwoMinuteExample (FitNesse.UserGuide.TwoMinuteExample)   0.470 seconds
1 Tests,        1 Failures      1.152 seconds.



Discover More
Fitnesse Architecture
Fitnesse - Test Table

A table (test table) is the basic statement of Fitnesse in order to defined test. The format is table dependent but they generally take the basic form of: a constructor row (that defines the test...
Fitnesse Architecture
Slim - Decision Table (test case as a row)

A decision table is a language structure of Fitness that defines tests run and expectation. Similar to Fit Column Fixture See Basic test with a decision table where eg.division is the fixture...
Fitnesse Architecture
Test - Fitnesse Framework

Fitnesse is test framework based on two components: The front-end, a wiki of a page and as two backend engine that runs wiki page marked as test page slim or Fit The tests are written in a...

Share this page:
Follow us:
Task Runner