----- Original Message -----
From: "David Boardman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 2:38 PM
Subject: RE: Testing within Struts Framework
> 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).
>
how do you test code that uses the Servlet API for example (or Struts) ?
> 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.
you don't need perl for that ... :) All of this can be done within Ant (this
is actually how it is done in Cactus - http://jakarta.apache.org/cactus)
>
> 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.
I agree 100%. I also do that for all the projects I work on !
>
> 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
>
>