We have been using ant (http://jakarta.apache.org/ant/) to do a nightly
build of all of our classes and ejbs and then deploy them to an instance of
Orion application server.

For each bean we write we write a corresponding JUnit test class that is
named by prefixing the name of the bean with "Test" (so the Customer bean
would have a corresponding TestCustomer class).

The final step was to write a Perl script that performs the following steps.
1)Shuts down the test instance of Orion
2)Checks the latest version of the application out of CVS
3)Runs our ANT script to build and deploy the classes and Beans to Orion.
4)Starts Orion
5)Runs all of the junit "Test" classes (see above).
6)Emails a log of all compile and test failures to the development team.

We run this script (called the Nun) on a nightly basis.  This automated
build-deploy-test process (very XP in conception) has led to much better
code, immediate notification of both compile time and integration errors,
and has made our team development environment possible.

We are doing our front end testing using a product called E-Tester developed
by Empirix
(http://www.empirix.com/Empirix/web+test+monitoring/products/functional+test
ing.html).  We looked into open source options but the only one we found was
HTTPUnit http://httpunit.sourceforge.net/.  We found this to be more
complicated to use as you have to write code for the tests.  Since we have a
non-coder developing the front end test suites, this approach would not have
worked for us.  We have had great success with E-Tester.

Dave Boardman
Integral7

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Barry Nauta
Sent: Tuesday, October 23, 2001 8:00 AM
To: [EMAIL PROTECTED]
Subject: Testing within Struts Framework


I am currently looking at how to test my EJBs within Struts.
I have been reading about JUnit, Cactus (
http://jakarta.apache.org/cactus/ ), MockObjects etc.

I would like to go as far as implementing mouseclicks within the webpage
to simulate user-interaction.

Any suggestions/comments/known pitfalls?

Barry
--
Whatever you do will be insignificant, but it is very important that you
do it -- Mahatma Ghandi

Reply via email to