FitNesse provides an easy-to-use wiki to create a Web page for testing. The test page has a button that allows all tests to run on this page, so anyone can go to this page at any time to click on this button to see if the test passed. FitNesse provides a way to run tests automatically, so it can simply add a use case to an automated scripting build.
What should the test page look like? A test page should be a wiki word with a page name > two or more than two string-level words , with each word starting with an uppercase letter.
Although FitNesse is a tool for writing acceptance tests, you may want to learn some techniques for using wikis:
Edit FitNesse Page: A simple introduction, using Wiki Markup language to create and change a FitNesse page;
Shortcut keys: Shortcut keys for buttons
Markup Language Reference: Formatting reference documents for FitNesse pages in wiki markup language
Sub-wiki page: How to create a hierarchical FitNesse page
Pour wiki: import wiki page from a remote Wiki service
Page properties: Enable and Disable page properties
Symbolic Link: Dynamically change the page structure of a wiki
Refactoring pages: Renaming, moving, and deleting existing pages
Where to use: Find out which pages refer to the current page
Head and Foot: Make a page header and footer for a wiki page
File parts: Location of attachments, files, etc.
Here are the separate explanations:
Edit the FitNesse page as follows:
editing and creating pages in FitNesse
FitNesse is a Web server. Before you start creating Test Table , you need to know how some wikis work.
Wikis allow any authenticated user to change an editable page by using a Web browser, or to create a page. If you are working on a fitnesse on your own machine, authorization may not be the same.
Edit a page
Once you want to change a page, click the Edit button in the upper left corner (if this button doesn't appear, which is not editable);
An editable box that contains a markup language pops up on the current page. You can format it using a simple markup language. If you have not entered the Wiki Markup Language page, switch to Rich text editing mode. Change the page content and then save the page, and the content you changed will appear on the page.
Create a new page
Each FitNesse page has a format called a camel-named style, capitalized in the first letter, at least one letter in the word. This convention is really cheap. Create a new page and links to these pages;
When you edit an existing page, insert a new hump word, such asthis here+ewpage, and then click the Save button, FitNesse explains the new link to the page where the seat is not created, which indicates that you put a question mark at the end of the name;
If you click on the question mark, FitNesse displays an edit box that allows you to put some content on the new page. If you type anything in this box and then save it, the new page is created and the link is connected to the original editable page;
Create a page with a return connection
Try it yourself. At the end of the name Word thisherenewpageexample Click on the question mark, on the page shoes something, click the Save button and then return to the original location. The good thing is that the ' editing Fit Nesse page ' appears on the new page , so you can easily return to this page;
Using templates
If you find that you need to add the same template wiki text in different places, it might be worth using it as a template. All pages direct Word class is named Templatelibrary is labeled as a template page of the word page or uncle. It will appear in the text area above the drop-down box in the plain text editing area. When the ' Insert Template ' button is clicked, the current option is overwritten with the selected template;
Some examples of formatting
The wiki markup language is quite powerful. Lycra how we do the following examples of each format, you can simply click the Edit button and then check;
You can make the text bold, using three quotation marks.
You can make text italic, using double quotes.
You can draw a line in the middle, use ! C.
You can spend a horizontal line, using three or more dashes.
For more examples of wiki markup language formatting, see Markup Language Reference.
Page Properties
Each FitNesse page has several properties that you can learn about and set up through the page Properties section.
Paste a table from Excel
In the Plain file edit box, there are two buttons that manipulate spreadsheets in each edit window, similar to Excel. The first FitNesse spreadsheet converts the copy spreadsheet content to the FitNesse table. You must paste the spreadsheet contents into the edit window and click;
The second button, FitNesse to a spreadsheet, is useful. After clicking on it, all the tables in the conversion editing window will be a formatted copy-and-paste spreadsheet.
Shortcut keys:
Some buttons on the wiki page have shortcut keys. They may be working in your browser.
FitNesse provides an easy-to-use wiki to create a Web page for testing. The test page has a button that allows all tests to run on this page, so anyone can go to this page at any time to click on this button to see if the test passed. FitNesse provides a way to run tests automatically, so it can simply add a use case to an automated scripting build.
What should the test page look like? A test page should be a wiki word with a page name > two or more than two string-level words , with each word starting with an uppercase letter.
Although FitNesse is a tool for writing acceptance tests, you may want to learn some techniques for using wikis:
Edit FitNesse Page: A simple introduction, using Wiki Markup language to create and change a FitNesse page;
Shortcut keys: Shortcut keys for buttons
Markup Language Reference: Formatting reference documents for FitNesse pages in wiki markup language
Sub-wiki page: How to create a hierarchical FitNesse page
Pour wiki: import wiki page from a remote Wiki service
Page properties: Enable and Disable page properties
Symbolic Link: Dynamically change the page structure of a wiki
Refactoring pages: Renaming, moving, and deleting existing pages
Where to use: Find out which pages refer to the current page
Head and Foot: Make a page header and footer for a wiki page
File parts: Location of attachments, files, etc.
Here are the separate explanations:
Edit the FitNesse page as follows:
editing and creating pages in FitNesse
FitNesse is a Web server. Before you start creating Test Table , you need to know how some wikis work.
Wikis allow any authenticated user to change an editable page by using a Web browser, or to create a page. If you are working on a fitnesse on your own machine, authorization may not be the same.
Edit a page
Once you want to change a page, click the Edit button in the upper left corner (if this button doesn't appear, which is not editable);
An editable box that contains a markup language pops up on the current page. You can format it using a simple markup language. If you have not entered the Wiki Markup Language page, switch to Rich text editing mode. Change the page content and then save the page, and the content you changed will appear on the page.
Create a new page
Each FitNesse page has a format called a camel-named style, capitalized in the first letter, at least one letter in the word. This convention is really cheap. Create a new page and links to these pages;
When you edit an existing page, insert a new hump word, such asthis here+ewpage, and then click the Save button, FitNesse explains the new link to the page where the seat is not created, which indicates that you put a question mark at the end of the name;
If you click on the question mark, FitNesse displays an edit box that allows you to put some content on the new page. If you type anything in this box and then save it, the new page is created and the link is connected to the original editable page;
Create a page with a return connection
Try it yourself. At the end of the name Word thisherenewpageexample Click on the question mark, on the page shoes something, click the Save button and then return to the original location. The good thing is that the ' editing Fit Nesse page ' appears on the new page , so you can easily return to this page;
Using templates
If you find that you need to add the same template wiki text in different places, it might be worth using it as a template. All pages direct Word class is named Templatelibrary is labeled as a template page of the word page or uncle. It will appear in the text area above the drop-down box in the plain text editing area. When the ' Insert Template ' button is clicked, the current option is overwritten with the selected template;
Some examples of formatting
The wiki markup language is quite powerful. Lycra how we do the following examples of each format, you can simply click the Edit button and then check;
You can make the text bold, using three quotation marks.
You can make text italic, using double quotes.
You can draw a line in the middle, use ! C.
You can spend a horizontal line, using three or more dashes.
For more examples of wiki markup language formatting, see Markup Language Reference.
Page Properties
Each FitNesse page has several properties that you can learn about and set up through the page Properties section.
Paste a table from Excel
In the Plain file edit box, there are two buttons that manipulate spreadsheets in each edit window, similar to Excel. The first FitNesse spreadsheet converts the copy spreadsheet content to the FitNesse table. You must paste the spreadsheet contents into the edit window and click;
The second button, FitNesse to a spreadsheet, is useful. After clicking on it, all the tables in the conversion editing window will be a formatted copy-and-paste spreadsheet.
Shortcut keys:
Some buttons on the wiki page have shortcut keys. They may be working in your browser.
Edit |
Alt+e |
Properties |
Alt+p |
Test |
Alt+t |
Search |
Alt+s |
Version |
Alt+v |
Wiki Markup Language Reference:
FitNesse Markup Language is easy to learn, and powerful enough to let you create neatly formatted and customizable wiki pages. Here is a small working reference to the so-called formatted text on the wiki page and other things done;
Italics |
Set a word or paragraph of text as italic, double quotation marks |
I want this in italics |
Bold |
Set a word to live a paragraph of text in bold, three-quote |
I want this in bold. |
Strike |
A line through a word or a phrase,--this-- |
I want this to be struck |
Style |
Set the style of some text |
|
Cross Reference |
Point to other pages,!see. FrontPage |
See: . Front Page |
Headers |
Set a line as a title or as part of a title |
!1 Title:title !2 Header:header !3 Second Header:second Header |
Centering |
One line in the!c this |
This |
Notes |
Generate a note,!note this |
This |
Horizontal Rules |
Draw a horizontal dividing line, above----below |
The middle link characters are 4,6, and8 , respectively, to control the ratio of the upper and lower |
Images |
Insert a picture or an image |
!img link, must be jpg and gif format |
External Links |
Create a hyperlink linking to an external page |
text that starts with HTTP //www |
|
|
|
Working with FitNesse wiki pages