RE: Testing Frameworks - experience/recommendation

2003-07-03 Thread Brian McSweeney
Thanks to both Erik and Simon for the 
excellent advice/links,
Regards,
Brian


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: 02 July 2003 17:11
To: Struts Users Mailing List
Subject: Re: Testing Frameworks - experience/recommendation



Brian McSweeney wrote:
> Hi all,
>  
> I know this has been discussed previously, but I’d like some user
> feedback.
> I’m going to start writing test cases soon, and I’d like to know
> people’s experience 
> using the various frameworks available.
>  
> First off, my environment: I’m using Struts talking to ejbs (session
> façade to entity beans).
> So to test, I’d like to test both functionality, and performance under
> load.
> 
> My understanding is about the frameworks available is that they pretty
> much all use Junit.
> I know that strutstestcase is recommended a lot, but it doesn’t seem
> obvious to me how 
> to do load testing with it, like I could with JunitPerf.
>  
> Anyone’s experience, advice would be very much appreciated,

Not specific to load or performance testing, but I found the following 
article helpful in testing some parts of my model/domain code:

<http://www-106.ibm.com/developerworks/library/j-mocktest.html>


The only problem is that if you are using ServiceLocator pattern, and 
you wish to subclass the ServiceLocator to override its behavior (so 
that you can have it provide mock objects instead of actual database 
connections or EJB handles, etc), static methods are not inherited in 
subclasses.  For instance, I am using a static method to access the 
ServiceLocator singleton instance


Erik


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


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



Re: Testing Frameworks - experience/recommendation

2003-07-02 Thread Erik Price


Brian McSweeney wrote:
Hi all,
 
I know this has been discussed previously, but I’d like some user
feedback.
I’m going to start writing test cases soon, and I’d like to know
people’s experience 
using the various frameworks available.
 
First off, my environment: I’m using Struts talking to ejbs (session
façade to entity beans).
So to test, I’d like to test both functionality, and performance under
load.

My understanding is about the frameworks available is that they pretty
much all use Junit.
I know that strutstestcase is recommended a lot, but it doesn’t seem
obvious to me how 
to do load testing with it, like I could with JunitPerf.
 
Anyone’s experience, advice would be very much appreciated,
Not specific to load or performance testing, but I found the following 
article helpful in testing some parts of my model/domain code:



The only problem is that if you are using ServiceLocator pattern, and 
you wish to subclass the ServiceLocator to override its behavior (so 
that you can have it provide mock objects instead of actual database 
connections or EJB handles, etc), static methods are not inherited in 
subclasses.  For instance, I am using a static method to access the 
ServiceLocator singleton instance

Erik

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


RE: Testing Frameworks - experience/recommendation

2003-07-02 Thread Chappell, Simon P
Brian,

I'm currently trying JMeter (also a Jakarta project) and am finding it very useful. It 
has the advantage that it is possible to record web sessions and play them back in 
testing mode. This eliminates the need for coding of tests.

The tools that extend Junit typically require coding, so they take more time. If you 
have the time, you might want to consider a combination of JMeter and the 
HttpUnit/JUnitPerf.

I was unable to get StrutsTestCase working on my W2K box (it worked on my Mac OS X 
box), so I've decided not to use it on this iteration of testing. I'll come back to it 
in the spring.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

"Never give in - never, never, never, never, in nothing great or
small, large or petty, never give in except to convictions of
honor and good sense." - Sir Winston Churchill


>-Original Message-
>From: Brian McSweeney [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 10:57 AM
>To: [EMAIL PROTECTED]
>Subject: Testing Frameworks - experience/recommendation
>
>
>Hi all,
> 
>I know this has been discussed previously, but I'd like some user
>feedback.
>I'm going to start writing test cases soon, and I'd like to know
>people's experience 
>using the various frameworks available.
> 
>First off, my environment: I'm using Struts talking to ejbs (session
>façade to entity beans).
>So to test, I'd like to test both functionality, and performance under
>load.
>
>My understanding is about the frameworks available is that they pretty
>much all use Junit.
>I know that strutstestcase is recommended a lot, but it doesn't seem
>obvious to me how 
>to do load testing with it, like I could with JunitPerf.
> 
>Anyone's experience, advice would be very much appreciated,
>Thanks,
>Brian 
> 
> 
>

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