Archive

Posts Tagged ‘Testing’

Installing FitNesse as service

February 10th, 2009
Requirements
  1. A Java runtime – needed to run FitNesse .
  2. The srvany.exe and instsrv.exe from the Windows 2003 Resource Kit.
  3. An account on the machine that has Log On As Service rights and full rights to the directory where FitNesse runs and keeps its files.
  4. The .NET Redist if you want to use the .NET version of the FitNesse server.
  5. An account with access to the machine to install it on and sufficient rights to do that – this usually means local administrator rights.
Installing FitNesse as service
  1. Install FitNesse :)
  2. Install Java
  3. In FitNesse root folder find start.bat theres something like this:
    java -cp fitnesse.jar fitnesse.FitNesse -p 8080

    where -p is port number. You should start it and check if under http://localhost:8080 runs your installed FitNesse.

  4. Install Windows Resource Kit (or srvany.exe and instsrv.exe only)
  5. Install new service:
    instsrv.exe FitNesse "<path to the srvany.exe file>\srvany.exe" -a AcoountName -p AccountPassword
  6. Add AccountName account required rights (modify) to FitNesse folder
  7. Create file FitNesseAsService.reg:
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\FitNesse\Parameters]
    "Application"="C:\\Program Files (x86)\\Java\\jre6\\bin\\java.exe"
    "AppDirectory"="<path to the FitNesse folder>\\FitNesse"
    "AppParameters"="-cp fitnesse.jar fitnesse.FitNesse -p 8080"

    and run it. This will add required keys to the registry.

  8. And thats it. If you want to remove FitNesse service, run this:
    instsrv FitNesse REMOVE
  9. You can uninstall Windows Resource Kit (save instsrv and srvany if you want).
Source

http://fitnesse.org/InstallingFitNesseAsaService

Development, Tools , ,