Tuscany End User Sample Testing

Initial Setup

     Most of the following only needs to be done once unless noted otherwise.

 Running

In the java/das/samples/testing/tomcat directory run maven:
mvn

Explanation

Maven does the following:
If all goes well at the end you should see:
[INFO] ----------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ----------------------------------------------------------------------------
[INFO] Tuscany Testing in Tomcat .............................. SUCCESS [0.340s]
[INFO] Tuscany Testing Tomcat DAS Sample - Companyweb ......... SUCCESS [48.350s]
[INFO] ----------------------------------------------------------------------------
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 49 seconds
[INFO] Finished at: Tue Aug 08 15:30:28 EDT 2006
[INFO] Final Memory: 7M/15M
[INFO] ----------------------------------------------------------------------------

Cleanup

Close the Tomcat window and issue mvn clean.

Note

Because the html unit tests execute multiple user actions that change the contents of the database tables, is recommended that you always run these tests in a clean environment (after a mvn clean), otherwise you may experience failure on some tests as the expected result data might have been affected by previous test runs.