FitNesse Cheat Sheet
|
|
|||||||||||||||||||
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_ |
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 |
|
|||||||
| 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 *!
multi-line wiki text N.B.: Multiple asterisks are allowed, e.g., '''!****'''> text *!
multi-line wiki text N.B.: Multiple asterisks are allowed, e.g., !****< text *!
|
|||||||
Links & References (to top) |
||||||||||||
| Page links |
|
|||||||||||
| Cross-reference & Suite Include |
!see AnyPagePath | |||||||||||
| Define "in-page" label | !anchor label-name | a.k.a. anchor | ||||||||||
| Jump to "in-page" label |
|
|||||||||||
| External Links |
|
|||||||||||
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 |
|
||||||||||||
| Picture Insert |
|
||||||||||||
Variables (to top) |
||
| Variable Definition | !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. |
| 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. |
| 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) |
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 |
|
||||||||||||||||
Add Child Page to QuickReferenceGuide