Embed
Email

setup

Document Sample

Shared by: hedongchenchen
Categories
Tags
Stats
views:
0
posted:
12/3/2011
language:
English
pages:
4
Get the sources

To setup FitNesse from scratch, open \\demo\share\setup and copy the content to a directory on your PC.



\\demo\share\setup

Username: guest

Password: (niets, rien, nada)









If at any moment you’re lost during this demo, you can always get the version being demoed on

\\demo\share\current. To make this easier, we’ve prepared a batch file called GetLatest.bat. Just double-click

on it to get the latest version.



If you want to download the latest version of FitNesse, go to http://fitnesse.org/FitNesseDevelopment.DownLoad



The .net 2.0 testrunner can be downloaded at http://sourceforge.net/projects/fitnessedotnet/





Setup the project directories

Extract "fitnesse20090214.zip". This will be our FitNesse directory from here on.

Extract "fitnesse.net.rel.1.8.for.net.2.0.zip" under FitNesse\dotnet2



Extract “jre.zip” to FitNesse\jre









Customize files

Edit the file FitNesse\run.bat



Change jre\bin\java -jar fitnesse.jar %1 %2 %3 %4 %5 -p 8888



This changes the following:



When you have the java runtime installed, you can run the "java" command. In this workshop, we do not assume you

have the java runtime installed. That's why we copied the "jre" directory as a subdirectory of FitNesse.



The option -p changes the port on which FitNesse will run. The default is port 80. Since most .net developers already

have IIS running on port 80, we randomly choose port 8888 to run FitNesse.



Make the same changes to the file FitNesse\stop.bat



jre\bin\java -cp fitnesse.jar fitnesse.Shutdown %1 %2 %3 %4 %5 –p 8888

Setup FitNesse

We can now start run.bat to start FitNesse. Open your browser and go to http://localhost:8888. You might get a dialog

box asking to open your firewall.









Since FitNesse is basically a java tool, we need to customize it a little. First of all, we’ll need to edit the root. Go to

http://localhost:888/?edit



Add the following lines to the dialog box. This tells fitnesse to use the .net testrunner instead of the java one.



!path classes

!path fitnesse.jar



!path dotnet2\*.dll

!define COMMAND_PATTERN {%m %p}

!define TEST_RUNNER {dotnet2\FitServer.exe}

!define PATH_SEPARATOR {;}

Now go to http://localhost:8888/. the page. Erase everything and type something along the lines of:



We're now going to add some PreparedTests

Mind the PascalCasing, because this is what FitNesse recognizes as a potential wiki page.



Click on the [?] next to PreparedTests. FitNesse

will tell you that this page doesn’t exist, and it will

give you the choice to create it. Just accept the

default, and you will have your first FitNesse

page:

http://localhost:8888/PreparedTests



This is where we will be building our tests before we have any implementation.



Other docs by hedongchenchen
AMS11-AV-Order-form
Views: 0  |  Downloads: 0
Rural Telephone Bank
Views: 5  |  Downloads: 0
04tbl2-32a
Views: 0  |  Downloads: 0
CG9 Licence No.
Views: 0  |  Downloads: 0
1996
Views: 0  |  Downloads: 0
2011 CATALOG
Views: 11  |  Downloads: 0
NEURO-_summary.doc - STJ PA 2012
Views: 1  |  Downloads: 0
1995-1996 Prepaid Health Plan Contract
Views: 0  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!