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.961s]
[INFO] Tuscany Testing Tomcat DAS Sample - Companyweb ......... SUCCESS [1:09.771s]
[INFO] Tuscany Testing Ajax DAS Web Sample .................... SUCCESS [47.458s]
[INFO] ----------------------------------------------------------------------------
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ---------------------------------------------------------------------------- [INFO] Total time: 1 minute 59 seconds [INFO] Finished at: Sun Jun 10 01:23:19 VET 2007 [INFO] Final Memory: 9M/17M [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.