FitNesse. UserGuide.
QuickReferenceGuide [add child]

FitNesse Cheat Sheet


Sections
Glossary
PagePath PageName.[PageName]
AnyPagePath [< |. |>]PagePath
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]
option default description
-a username:password no auth Enforces access for one user
-a /auth/file/path/and/name no auth Enforces access for a file of users with encrypted passwords
-d /path/to/fitnesse/root . Path to the fitnesse wiki home where FitNesseRoot or -r name resides
-e days 14 Number of days to retain older versions (.zip files)
-l /log/file/path/and/name off Where to put and what to call the run log
-o update Prevents (omits) updating from fitnesse.org
-p port# 80 Port for FitNesse to listen on
-r NameOfRootPage[?] FitNesseRoot Name of root folder in the fitnesse wiki home or -d path

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

Character Formatting         (to top)
Comment #text Can also be used to comment-out markup
Italics ''text''  
Bold '''text'''  
Style !style_(text) The style of text will be the CSS class <someStyle>
Strike-through --text--  
"As-is"/escaping !-text-! Can also be used to insert HTML tags directly
"As-is" !<text>! Will escape HTML tags so they display in plain text.
Alias Link [[text][AnyPagePath]]  

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

Links & References         (to top)
Page links
.RootPage[.ChildPage[?]] from root
SameLevelPage[?][.ChildPage[?]] sibling
>ChildPage[?][.ChildPage[?]] child or symbolic
Cross-reference &
Suite Include
!see AnyPagePath
Define "in-page" label !anchor label-name a.k.a. anchor
Jump to "in-page" label
text #label-name text in-line
.#label-name left-justified
[[text][#label-name]] in an alias
External Links
http://url-path
Web
http://files/localPath Local
[[text][/files'''/localPath]] Alias
[[text][AnyPagePath#label-name]] Alias
text@text.text mailto

Includes & Informational         (to top)
Timestamp !lastmodified
Timestamp !today
Contents List !contents
Contents Tree !contents -R
Contents Sub-tree !contents -R[nn]
Contents List - Graceful !contents -g
Contents List - Properties !contents -p
Contents List - Suite Filters !contents -f
Contents List - Help Text !contents -h
Include Page
!include AnyPagePath expanded border
!include -c AnyPagePath collapsed border
!include -seamless AnyPagePath no border
!include -setup AnyPagePath appears like SetUp[?]
!include -teardown AnyPagePath appears like TearDown[?]
| !include AnyPagePath  | in a table cell
Picture Insert
!img url-to-image-file in-line
!img-l url-to-image-file image left-justified, text wraps on right
!img-r url-to-image-file image right-justified, text wraps on the left
[[!img[-l |-r] url-to-image-file][some-link]] as a clickable link

Variables         (to top)
Variable Definition !define name {value}
!define name (value)
!define name [value]

Variable Usage ${name}
Expression Evaluation ${=expression=} expression may contain variables

Global Variables         (to top)
NAME Java Default FitLibrary (Unix) Default .NET Default
COMMAND_PATTERN java -cp %p %m java -cp %p %m %m %p
REMOTE_DEBUG_COMMAND 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   :   (system-dependent)   :   (system-dependent)   ;  
TEST_RUNNER fit.FitServer fitlibrary.suite.FitLibraryServer dotnet\FitServer.exe

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

(See the root page for overrides)


Global Properties         (to top)
path.separator (system-dependent)
(See the root page for overrides)

Testable Tables         (to top)
Classpath include !path java.path.spec
"Insert Fixture Table"
Edit List Include
!fixture path.fixture
Prevent Wikification ! | "as is" or escaped content |
Smallest Table | text |
Fixture Table ! | fixture specification |
[ | optional table row |[ optional 2nd column |]...]
[ | optional table row |[ optional 2nd column |]...]
       :
Graceful Naming
The cells below are on one line regardless of word-wrapping
table spec Searches for:
! | Grace Full Name | GraceFullName[?]
fit.GraceFullName[?]
GraceFullName[?]Fixture
fit.GraceFullName[?]Fixture
! | grace full method | graceFullMethod()
getGraceFullMethod[?]()
setGraceFullMethod[?]() (if setter context)
! | method name |p1 | methodName(p1)
getMethodName[?](p1)
setMethodName[?](p1)
! | method name |p1 | too | methodNameToo(p1)
getMethodNameToo[?](p1)
setMethodNameToo[?](p1)
! | method name |p1 | also |p2 | methodName(p1,p2)
getMethodName[?](p1,p2)
setMethodName[?](p1,p2)
! | method name |p1 | also |''p2 |' too | methodNameToo(p1,p2)
getMethodNameToo[?](p1,p2)
setMethodNameToo[?](p1,p2)