[Opensource] How to write/run ControllerTestCase/Suite
Mike Traum
mtraum at jgroup.net
Wed Mar 24 11:12:31 PST 2004
Ivan,
I'm glad you worked your problems out. The docs don't talk about a
'test' context because it's only needed to run Expresso tests, which is
usually only needed by Expresso contributors. But, as always, I'd be
happy to commit your documentation. You can send them to me directly if
you like.
Thanks,
mike
On Wed, 2004-03-24 at 12:34, Ivan Ivanov wrote:
> Hi Mike, thank you for your answer
>
> --- Mike Traum <mtraum at jgroup.net> wrote:
> > Ivan,
> > First off, I don't know too much about Cactus
> > testing. Where is
> > ServletTestRunner coming from?
> ServlettestRunner is part of Cactus. According to
> Castus documentation you add it in your build.xml and
> you can invoke your test from the browser. For more
> information see here:
> http://jakarta.apache.org/cactus/integration/integration_browser.html
>
> Well, I felt my tests might not run because of an
> error while deploying and building expresso from very
> sources
> So I downgraded to expresso5-0-5 and deployed the
> binary version. After carefull configuration my tests
> now run correctly :)).
>
> However, while I fighted with tests I found that
> expresso docs is not full in the sense that it does
> not reflect all expresso feautures . For example it
> does not say that you should have a separate db
> context called test for testing needs. So I documented
> the configuration steps that I did and if it is
> suitable
> I can submit them to you or I can even submit it as a
> patch for expresso docs.
>
> Regards Ivan Ivanov
>
> > I tested
> >
> com.jcorporate.expresso.services.controller.tests.LoginControllerTest
> > and
> >
> com.jcorporate.expresso.services.controller.tests.DBMaintTests
> > and
> > they seem to work fine. Did you:
> > 1. Uncomment the servlet definitions and servlet
> > mappings for
> > ServletRedirector and JspRedirector in web.xml?
> > 2. Set the correct cactus.contextURL (which would be
> > ('http://localhost:8080/emaria' in your case) in
> > cactus.properties in
> > the root of your WEB-INF/classes
> > 3. Start mysql & Tomcat (or whatever your servlet
> > container is)
> > 4. Run your ControllerTest under JUnit (I use
> > Eclipse as my IDE, and I
> > can do this directly from Eclipse - I assume
> > IntelliJIdea has similar
> > capability)
> >
> > Try it on LoginControllerTest and DBMaintTests and
> > let us know the
> > results.
> >
> > mike
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> http://taxes.yahoo.com/filing.html
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mailman.jcorporate.com/mailman/listinfo/opensource
--
Mike Traum
--
JGroup Expert
Expresso Core Developer
Providing support and development services - Available Now!
More information about the Opensource
mailing list