jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Kanade" <rkan...@hotmail.com>
Subject Re: Fw: Doing scenario based testing
Date Tue, 26 Feb 2002 00:06:32 GMT

Great to see you guys responding.

Let's get started by putting together our requirements and take it from 



----Original Message Follows----
From: Shane Celis <Shane@terraspring.com>
Reply-To: "Cactus Users List" <cactus-user@jakarta.apache.org>
To: Bill Laird <wlaird@wildfire.com>
CC: cactus-user@jakarta.apache.org, rkanade@hotmail.com
Subject: Re: Fw: Doing scenario based testing
Date: Mon, 25 Feb 2002 11:16:11 -0800

I would definitely be interested in putting together our experiences
from functional testing and developing a project of our own to address
these issues.  An extension to JUnit would be my approach.  As for the
name of the project, I find the name "JFunc" appealing.  Anyone else?


p.s.  Should I get on the cactus mailing list?

On Thursday, February 21, 2002, at 11:31  AM, Bill Laird wrote:

 > Hi Rajesh - your scenario testing , aka 'functional testing'  is
 > something
 > that there is a growing interest in the junit/cactus community. Shane
 > has
 > done some good stuff in the area of dynamic proxies with some colleagues
 > of
 > his (see http://www.gnufoo.org/junit/index.html ), which open up Junit
 > to be
 > more flexible, which is critical to those of us who want to use Junit
 > (and
 > thus cactus) to do functional testing.
 > I say we spec out a little project here and collaborate and get
 > something
 > done. Vincent has shown me where some of the code changes need to go in
 > cactus.
 > Cheers,
 > Bill
 > ----- Original Message -----
 > From: "Rajesh Kanade" <rkanade@hotmail.com>
 > To: <cactus-user@jakarta.apache.org>
 > Cc: <rkanade@hotmail.com>
 > Sent: Monday, February 18, 2002 7:43 PM
 > Subject: Doing scenario based testing
 > Hi All
 > I am new to cactus and new to testing arena itself.
 > My company writes web based applications ( using MVC ) and I am looking
 > at
 > automating testing at various levels.The server side code is entirely
 > return
 > in Java ( no EJB ).
 > I am trying to come up with a framework ( or use one if it exists
 > already )
 > so that we can test our application at various levels like
 > class level, component level, sub system , system ( all this done
 > without UI
 > in picture )
 > So for a class level I can use JUnit to do my testing.
 > My idea was to build upon this to do component testing & then reuse
 > these
 > stuff as I move higher in the chain to do sub system and system testing.
 > I was planning on doing something like this.
 > I am taking an auction example where we wanted to test a ( auction
 > creation
 > / bidding )scenario
 > So let's say we wanted to create company, users, set up an auction, Bid
 > on
 > the auction, Approve Winner.
 > So in this case a Scenario specification Definition file could look like
 > CreateCompany <DataFile to Use>
 > create Users<DataFile to Use>
 > Create Auction<DataFile to User>
 > Bid1<DataFile to User>
 > Bid2<DataFile to Use>
 > <parallel>
 > Bid3<DataFile to Use>
 > ..
 > Bidn<DataFile to Use>
 > <parallel>
 > ApproveWinner<DataFile to Use>
 > The above file could be XML  or csv.
 > Probably it needs more parameters like expected result from this step
 > etc.
 > For each of the activities( each step in the scenario file ) there is a
 > executeActivity meta data file which is registered with the engine which
 > tells the test engine what it needs to do when it encounters a specific
 > activity
 > So for CreateCompany activity this file would specify something like
 > execute create() method com.mycompany.auction.Company object .
 > Now using jave reflection the test engine can go and execute this method
 > with the data being read from the datafile specified to it from the
 > scenario
 > file .
 > One thing I have to think in detailed is how do I chain these activities
 > pass results from one activity to another one etc. Might be we can have
 > a
 > vector of objects passed from one activity to another.
 > There are some engine specific tags like <parallel> which indicate that
 > all
 > the steps embedded in those tags should be run con currently.
 > Advantages of having such a engine are
 > Theritically we just identify the activities in a product & specify the
 > execution details for this activity and we are ready to go.
 > My questions to you all is
 > Can I use Cactus to achive some thing like this.
 > Is there a commercial or open source tool to achieve something like
 > this.
 > Thanx
 > Rajesh
 > _________________________________________________________________
 > Join the world's largest e-mail service with MSN Hotmail.
 > http://www.hotmail.com
 > --
 > To unsubscribe, e-mail:
 > <mailto:cactus-user-unsubscribe@jakarta.apache.org>
 > For additional commands, e-mail:
 > <mailto:cactus-user-help@jakarta.apache.org>

To unsubscribe, e-mail:   
For additional commands, e-mail: 

Chat with friends online, try MSN Messenger: http://messenger.msn.com

To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message