FitNesse. UserGuide.
QuickReferenceGuide [add child]

FitNesse Cheat Sheet


Sections
Glossary
PagePath PageName.[PageName]
AnyPagePath [< |. |>]PagePath </font>
Symbolic Link A locally-defined alias to any accessible page.
Symbolic links are created by clicking  Properties 
and entering information in the bottom section
titled "Symbolic Links".


See run.sh and run.bat for examples of default start-up scripts.
FitNesse Command Line and Options
[path/to/java/]java -cp fitnesse.jar[;other.jar.or.path]... fitnesse.FitNesse [-o] [-p port#] [-d /path/to/fitnesse/root] [-r NameOfRootPage] [-e days] [-l /log/file/path/and/name] [-a {username:password | /auth/file/path/and/name}] [other arguments] </font>
option default description
-a <i>username</i><b>:</b><i>password</i></font> no auth </font> Enforces access for one user
-a /auth/file/path/and/name</font> no auth </font> Enforces access for a file of users with encrypted passwords
-d /path/to/fitnesse/root</font> . </font> Path to the fitnesse wiki home where FitNesseRoot or -r name resides
-e days</font> 14 </font> Number of days to retain older versions (.zip files)
-l /log/file/path/and/name</font> off </font> Where to put and what to call the run log
-o</font> update </font> Prevents (omits) updating from fitnesse.org
-p port#</font> 80 </font> Port for FitNesse to listen on
<b>-r</b> <i>NameOfRootPage[?]</i></font> FitNesseRoot </font> Name of root folder in the fitnesse wiki home or -d path

FitNesse Actions         (to top)
Edit this page url?edit </font>
Create a new page directly current-url.NewPageName</font>
or
current-url.NewPageName?edit</font>
Test this page url?test </font>
Suite test this page url?suite </font>
Set properties of this page url?properties </font>
See versions of this page url?versions </font>
Refactor this page url?refactor </font>
Search pages from here url?searchForm </font>
Where is this page referenced? url?whereUsed </font>
Debug this test page url?debug </font>
Suite test this page with a suite filter "passing" url?responder=suite&suiteFilter=passing </font>

Character Formatting <font style="font-family:Arial;font-size:8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div>
Comment #text </font> Can also be used to comment-out markup
Italics ''text'' </font>  
Bold '''text''' </font>  
Style !style_(text) </font> The style of text will be the CSS class <someStyle>
Strike-through --text-- </font>  
"As-is"/escaping !-text-! </font> Can also be used to insert HTML tags directly
"As-is" !<text>! </font> Will escape HTML tags so they display in plain text.
Alias Link [[text][AnyPagePath]] </font>  

Line & Block Formatting <font style="font-family:Arial;font-size:8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div>
workflow break ---- </font>...separates each "phase"
Horizontal Line
over-text----under-text</font> thinnest
over-text-----under-text</font> safest - no conflict with workflow phase separators
over-text---------under-text</font> thicker
Note !note text </font>
Headings !1 largest heading text
!2 middle heading text
!3 smaller heading text
and so on up to !6
</font>
Centered !c text </font>
Formatted "as is" {{{text}}} </font> note: causes extra line afterward
Collapsible
!* [title]
   multi-line wiki text
   N.B.: Multiple asterisks are allowed, e.g., !**** text
*!
</font>
expanded  
!*> [title]
   multi-line wiki text
   N.B.: Multiple asterisks are allowed, e.g., !****> text
*!
</font>
collapsed  
!*< [title]
   multi-line wiki text
   N.B.: Multiple asterisks are allowed, e.g., !****< text
*!
</font>
invisible useful for hidding define's, etc.

Links & References <font style="font-family:Arial;font-size:8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div>
Page links
.RootPage[.ChildPage] </font> from root
SameLevelPage[.ChildPage] </font> sibling
>ChildPage[.ChildPage] </font> child or symbolic
Cross-reference &
Suite Include
!see AnyPagePath </font>
Define "in-page" label !anchor label-name </font> a.k.a. anchor
Jump to "in-page" label
text #label-name text </font> in-line
.#label-name </font> left-justified
[[text][#label-name]] </font> in an alias
External Links
http://url-path
</font>
Web
http://files/localPath </font> Local
[[text][/files'/localPath'']] </font> Alias
[[text][AnyPagePath#label-name]] </font> Alias
text@text.text </font> mailto

Includes & Informational <font style="font-family:Arial;font-size:8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div>
Timestamp !lastmodified </font>
Timestamp !today </font>
Contents List !contents </font>
Contents Tree !contents -R </font>
Contents Sub-tree !contents -R[nn]</font>
Contents List - Graceful !contents -g </font>
Contents List - Properties !contents -p </font>
Contents List - Suite Filters !contents -f </font>
Contents List - Help Text !contents -h </font>
Include Page
!include AnyPagePath </font> expanded border
!include -c AnyPagePath </font> collapsed border
!include -seamless AnyPagePath </font> no border
!include -setup AnyPagePath </font> appears like SetUp
!include -teardown AnyPagePath </font> appears like TearDown
| !include AnyPagePath  | </font> in a table cell
Picture Insert
!img url-to-image-file </font> in-line
!img-l url-to-image-file </font> image left-justified, text wraps on right
!img-r url-to-image-file </font> image right-justified, text wraps on the left
[[!img[-l |-r] url-to-image-file][some-link]] </font> as a clickable link

Variables <font style="font-family:Arial;font-size:8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div>
Variable Definition !define name {value}
!define name (value) </font>
Variable Usage ${name} </font>
Expression Evaluation ${=expression=} </font> expression may contain variables

Global Variables <font style="font-family:Arial;font-size:8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div>
NAME Java Default FitLibrary (Unix) Default .NET Default
COMMAND_PATTERN </font> java -cp %p %m java -cp %p %m %m %p
REMOTE_DEBUG_COMMAND</font> java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -cp %p %m java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -cp %p %m java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -cp %p %m
PATH_SEPARATOR </font>   :   (system-dependent)   :   (system-dependent)   ;  
TEST_RUNNER </font> fit.FitServer fitlibrary.suite.FitLibraryServer dotnet\FitServer.exe

NAME Default Values Notes
TEST_SYSTEM </font>
fit
fit|slim
Selects the test system to use for this, and descendant pages.
SLIM_PORT </font>
8085
integer
Selects the starting port number in a range of 10 for slim.
CLASSPATH_PROPERTY </font>
nil
an environment variable
If not nil, loads classpath (as gathered from !path) into the named environment variable. See CustomizingTestExecution.
CM_SYSTEM </font>
nil
java class
Selects the class that will handle CM system events.
COLLAPSE_SETUP </font>
false
true |false
Collapses all SetUps
COLLAPSE_TEARDOWN </font>
false
true |false
Collapses all TearDowns
FILTER_TOC </font>
false
true |false
Append suite fiters to TOC
HELP_PREFIX_TOC </font>
:<space>
any string
Define prefix for help text suffix
HELP_TOC </font>
false
true |false
Append help text to TOC
MORE_SUFFIX_TOC </font>
<space>...
any string
Define sequence to show more TOC levels
PROPERTY_CHARACTERS </font>
*+@>-
any characters
Define property icons for TOC
PROPERTY_TOC </font>
false
true |false
Append property icons to TOC
REGRACE_LINK </font>
false
true |false
Makes links graceful
REGRACE_TOC </font>
false
true |false
Makes !contents list graceful
RSS_PREFIX </font> !c !c Link prefix for RSS Feeds
PAGE_NAME </font> !c
Read Only
Name of current page
PAGE_PATH </font> !c
Read Only
Fully qualified name of parent.
FITNESSE_PORT </font> !c
Read Only
Port number that fitnesse is using.

(See the root page for overrides)


Global Properties <font style="font-family:Arial;font-size:8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div>
path.separator </font> (system-dependent)
(See the root page for overrides)

Testable Tables <font style="font-family:Arial;font-size:8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div>
Classpath include !path java.path.spec </font>
"Insert Fixture Table"
Edit List Include
!fixture path.fixture </font>
Prevent Wikification ! | "as is" or escaped content | </font>
Smallest Table | text | </font>
Fixture Table ! | fixture specification |
[ | optional table row |[ optional 2nd column |]...]
[ | optional table row |[ optional 2nd column |]...]
       :
</font>
Graceful Naming
The cells below are on one line regardless of word-wrapping
table spec Searches for:
! | Grace Full Name | </font> GraceFullName
fit.GraceFullName
GraceFullNameFixture
fit.GraceFullNameFixture
! | grace full method | </font> graceFullMethod()
getGraceFullMethod()
setGraceFullMethod() (if setter context)
! | method name |p1 | </font> methodName(p1)
getMethodName(p1)
setMethodName(p1)
! | method name |p1 | too | </font> methodNameToo(p1)
getMethodNameToo(p1)
setMethodNameToo(p1)
! | method name |p1 | also |p2 | </font> methodName(p1,p2)
getMethodName(p1,p2)
setMethodName(p1,p2)
! | method name |p1 |' also |p2'' | too | </font> methodNameToo(p1,p2)
getMethodNameToo(p1,p2)
setMethodNameToo(p1,p2)