Slava,

You actually touched on a issue that bugs me with Cactus.  I love Cactus,
but doing multipage tests from the perspective of the browser is relatively
cumbersome.  However, Canoo tests are not nicely integrated into the
Cactus/Junit/Maven world of testing.  So, here is what I am ruminating
about...

I am thinking of creating a Cactus testcase called CactusCanooTestCase that
allows you to run a canoo webtest script (just an ant script) from a Cactus
test.  Now, I believe the test would actually end up running from inside the
container, but that shouldn't matter.  Better though would be to run it from
the client.

At any rate, attached to the ant script would be a build listener that
interpreted any errors in the webtest script as a unit test failure, and
wrote it out to the junit .xml report file as such.

This would allow webtest to run inside the container, therefore allowing the
test to configure the environement, email servers etc...

However, where cactus does shine is testing your business objects.  I would
definitly take the baby step approach, and check out some of the sourcecode
for Turbine's cactus tests in src/test-cactus.  If you are interested, I
have my "TurbineTestCase" that handles creating the rundata and context
objects for me...

Good luck!
Eric

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 11:13 AM
To: [EMAIL PROTECTED]
Subject: cactus to test a turbine app



Dear Eric.

my turbine webapp growing complexity brings me to take a dive in thorough
testing

I've peeked through the turbine pages, turbine-user mailing cactus lists to
see
that you are the person with most of posts using  Cactus to test  turbine
app.


the question which i have is whether it's possible to use cactus  in testing
of
turbine webapp over several pages. e.g.  to write a user interaction  test
case.

Logging
going to chart
selecting items
pressing "buy"
logging out.


or you'd rather use canoo framework for this as you say in one of your
posts?

>>Then, using Canoo, I can test easily from a web browser perspective.


Has there been some integration work  in cactus  to test  turbine webapps
easily ?


what's the short way to read how to use cactus ?

use it onver a simple   servlet,
then try to run  code snippets  which you posted in wiki's turbine faq ?



kind regards.

slava zimine


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to