Installation.

The test application comes with preconfigured Tomcat 5.5.9 for easies installation - nothing tricky, it just

  • has necessary jdbc driver in the shared/lib directry;
  • stripped from default webapps like jsp samples, docs etc.;
  • context descriptors in the conf/Catalina/localhost point to the webapps;

Download archive or get everything from SVN repository.

Database::

Postgres 7 or 8 (nothing specific about DB, I just love Postgres)

Create database called webapp_demo that belongs to dbuser with password dbuser, then go to mgr directory and run
ant recreate-db
.

(Note: you can easily change all that by editing default.properties file or by creating my.properties and adding -Drelease=my to all the Ant commands )

Build::

Note: Please add ant-dependencies.jar to the ${ant}/lib directory (instructions) to take advantages of SourceLab profile definition and repository to get dependencies from Maven repositories.

  1. To build everything cd to mgr directory and type ant (provided that you have Ant in your classpath).
  2. Lets start tomcat that comes with the project:
    in the tomcat/bin directory start tomcat with startup.sh or catalin.sh run commands. Note: this is tomcat 5.5.9 therefore we need JDK5 to run it.
  3. As soon as Tomcat start and deploy all the web applications we can start test process ( in the mgr directory):
    ant test-all
    The process might take many minutes to complete ( about 8 minutes on my PowerBooki G4 with very verbose Postgres RDBS settings /-d 2 )

All the results now in build/log/grinder/${technology}/out_xxx-0.log files
If you are on some *nix machine you can run ant combine-test-results to compile more human friendly page of testing results.