Introduction
As explained earlier, FitNesse is a wiki server; it helps us to organize all our test scripts in the form or Wiki pages. It is a web server, it enables multiple people to work on automation scripts by keeping them at a central location. Even when fixture is doing all the work, at some point of time when the fixture has to be invoked, FitNesse wiki is the calling application. It supplies the fixture right automation scripts at right time as and when the tester wants to do the testing. FitNesse receives the statistics about the test status (pass or fail) and creates a report in wiki page itself which is easy to debug. For creating the wiki pages we should follow the following steps:
Downloading and Installing FitNesse
It really takes very little time and effort to get FitNesse running on your machine.
Go to http://fitnesse.org/FrontPage.FitNesseDevelopment.DownLoad and click on the most recent fitnesse.jar file. Download the fitnesse.jar to some location in local machine.
Type java -jar fitnesse.jar
- It will perform the installation /updates
- When it’s done, it will ask you to reload fitnesse. Type java -jar fitnesse.jar –p 8080.
- If you have nothing running on port 8080 on your machine, you should see a message similar to the following:
- Fitnesse (date code) Started…
- Port: 8080
- root page: fitnesse.wiki.FileSystemPage at ./FitNesseRoot
- logger: none
- authenticator: fitnesse.html.HtmlPageFactory
- If you don’t see this, you may have something running on port 8080 already,
- So try the command java -jar fitnesse.jar -p 8090
- If you are still having trouble then check out FitNesseWontStart.
Start up a browser and go to http://localhost:8080
The main FitNesse screen should come up. That’s it. You’re ready to start using FitNesse.
Process for creating/editing new wiki page:
- Go to the home page http://localhost:8080
- Click on edit link on LHS side
- Enter the CamelCase text as a name of the page link e.g. QueryTest, NewTestPage
(The names: newTestpage, newTestPage are invalid and the names: NewTestPage, NewtestPage, SampleTestPage, SampleTestpage, SampleExample are valid)
- Click on save button
- Check the frontpage displayed with the text QueryTest? With a link on “?”
- Click the link on “?”
- New page displayed with URL http://localhost:8080/QueryTest?edit&nonExistent=true
OR
- For creating or editing new wiki page directly through URL:
- current-url.NewPageName
- current-url.NewPageName?edit
- click on save and again go to this new page and click on ‘Properties’ link on LHS panel
- This displays the page for setting up the page properties for the page
- Select Test from Page type, check all check boxes from Actions and keep others default
- Click on ‘Save properties’ button at the bottom
- Check the new page with the buttons like Test, Edit and so on… at the LHS panel
For more detailed commands related to creating and editing the new wiki pages check out the page: http://fitnesse.org/FitNesse.UserGuide.QuickReferenceGuide



