#!anchor ?
| ? |
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] </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"> <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_ |
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"> <a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div> |
|||||||||||
| workflow break | ---- </font>...separates each "phase" | ||||||||||
| Horizontal Line |
|
||||||||||
| 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 |
|
||||||||||
Links & References <font style="font-family:Arial;font-size:8pt"> <a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div> |
||||||||||||
| Page links |
|
|||||||||||
| Cross-reference & Suite Include |
!see AnyPagePath </font> | |||||||||||
| Define "in-page" label | !anchor label-name </font> | a.k.a. anchor | ||||||||||
| Jump to "in-page" label |
|
|||||||||||
| External Links |
|
|||||||||||
Includes & Informational <font style="font-family:Arial;font-size:8pt"> <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 |
|
||||||||||||
| Picture Insert |
|
||||||||||||
Variables <font style="font-family:Arial;font-size:8pt"> <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"> <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"> <a href="#TopOfPAGE"><b>(</b>to top<b>)</b></a></font></div> |
|
| path.separator </font> | (system-dependent) |
Testable Tables <font style="font-family:Arial;font-size:8pt"> <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 |
|
||||||||||||||||
Add Child Page to QuickReferenceGuide