Back to Test Tracking

Summary

Mission and Status

How to run Struts scenario

  1. Configuration

3. Setup

3. Run

4. Results

How to customize Struts scenario

Mission and Status

Struts scenario is about running standard Struts examples on top of Apache Tomcat and Apache Harmony. The test suites consists of two parts: driver and tests. Driver is a web client implemented using HTMLUnit toolkit. Normally it should be run on top of some stable VM. The tests part is a web server part. It consists of Struts with its examples embedded into Tomcat installation.

Back to Summary

How to run Struts tests

1. Configuration

Make sure that PATH environment variable contains JDK 1.5 (use RI) and Apache Ant (v1.6.5 or later), and that JAVA_HOME and ANT_HOME are properly set up. If you use proxy server, specify proxy settings by setting ANT_OPTS environment variable:

Windows:
set ANT_OPTS="-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=1111"

Linux:
export ANT_OPTS="-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=1111"

Edit your framework.local.properties file:

The following system properties are used to control the scenario execution:

Back to Summary

2. Setup

$ cd buildtest/infra
$ ant -Dtest.suites=struts_test install
$ ant -Dtest.suites=struts_test setup

The last command copies required parameters from framework.local.properties file to required-parameters.properties file. You should run it after each modification to framework.local.properties.

Back to Summary

3. Run

$ cd buildtest/infra
$ ant -Dtest.suites=struts_test run

Back to Summary

4. Results

Results summary can be found at buildtest/infra/build/results/struts_test/test-results/

Back to Summary

How to customize Struts scenario

There are two main working modes for this test suite:

The following files are produced/used by the scenario:

NOTE: ALL THE ABOVE FILES MUST BE IN THE DIR SPECIFIED BY '<app.name>.resource.path' SYSTEM PROPERTY DESCRIBED ABOVE.

Back to Summary

Back to Test Tracking