You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by James Learmonth <Ja...@datalexuk.com> on 2005/09/01 08:43:33 UTC

RE: Can Jmeter exercise existing Junit test cases

OK Peter tried that. With ref to attached SimpleTest.java

test1 which passes reports OK
test0 which should fail does not report anything, an error appears in
jmeter.log attached.

Hope that helps 
Regards Jim Learmonth


-----Original Message-----
From: Peter Lin [mailto:woolfel@gmail.com] 
Sent: 31 August 2005 12:48
To: JMeter Users List
Subject: Re: Can Jmeter exercise existing Junit test cases

hi james,

I've placed a version in my directory.

http://cvs.apache.org/~woolfel/jakarta-jmeter.zip

peter


On 8/31/05, James Learmonth <Ja...@datalexuk.com> wrote:
> 
> Hello Peter
> 
> I can only find
> 
> jakarta-jmeter-2_1.20050818_bin.zip 18-Aug-2005 14:38
> jakarta-jmeter-2_1.20050818_lib.zip 18-Aug-2005 14:38
> jakarta-jmeter-2_1.20050818_src.zip 18-Aug-2005 14:38
> 
> on the nightly builds.
> 
> Am I looking in the wrong place,
> e.g. http://cvs.apache.org/builds/jakarta-jmeter/nightly/
> 
> Regards
> JimL
> 
> 
> 
> -----Original Message-----
> From: Peter Lin [mailto:woolfel@gmail.com]
> Sent: 26 August 2005 13:49
> To: JMeter Users List
> Subject: Re: Can Jmeter exercise existing Junit test cases
> 
> Hi James,
> 
> have you given the patched a try? any feedback on the JUnitSampler is
> appreciated. yesterday I added an additional catch for throwable, so
> hopefully that will catch more unexpected exceptions.
> 
> peter lin
> 
> 
> On 8/24/05, James Learmonth <Ja...@datalexuk.com> wrote:
> > Thanks Peter, if you cannot it's not that critical.
> > But it would be nice to execute my existing Junit tests.
> > Probably best to put your feet up with a glass of some "suitable" tonic.
> >
> > Regards
> > JimL
> >
> >
> > -----Original Message-----
> > From: Peter Lin [mailto:woolfel@gmail.com]
> > Sent: 24 August 2005 15:57
> > To: JMeter Users List
> > Subject: Re: Can Jmeter exercise existing Junit test cases
> >
> > my apologies, I came down with a cold on Sunday and last night was was
> > sneezing and coughing. I'll try to implement that tonight if I'm not
> > too sick.
> >
> > peter lin
> >
> >
> > On 8/24/05, James Learmonth <Ja...@datalexuk.com> wrote:
> > > Hello Peter did you get chance to make the change as you suggested.
> > > Just to re-cap.
> > > The SimpleTest should pass test0 but fail test1, however they both
> appear
> > to
> > > pass.
> > >
> > > Jim Learmonth.
> > >
> > > -----Original Message-----
> > > From: Peter Lin [mailto:woolfel@gmail.com]
> > > Sent: 23 August 2005 13:57
> > > To: JMeter Users List
> > > Subject: Re: Can Jmeter exercise existing Junit test cases
> > >
> > > it could be a bug in the sampler. In general I followed junit
> > > convention, so if an unexpected exceptions occurs when the method is
> > > invoked, I set error code and message. The code and message are
> > > defined in the JUnitsampler gui.
> > >
> > > the current implementation doesn't pass the error, but I can do that.
> > > I'll make a change to it tonight.
> > >
> > > peter
> > >
> > >
> > > On 8/23/05, James Learmonth <Ja...@datalexuk.com> wrote:
> > > > Attempting to trace though the code for JUnitSampler.java
> > > > Seems when a test case gets an error and throws an exception the bit
> of
> > > code
> > > > below is executed. It seems the getErrors don't return anything.
> > What/when
> > > > do the associated set methods get called ?
> > > > Or have I missed some setup process.
> > > >
> > > > } catch (InvocationTargetException e) {
> > > > sresult.setResponseCode(getErrorCode());
> > > > sresult.setResponseMessage(getError());
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Peter Lin [mailto:woolfel@gmail.com]
> > > > Sent: 22 August 2005 16:58
> > > > To: JMeter Users List
> > > > Subject: Re: Can Jmeter exercise existing Junit test cases
> > > >
> > > > I'm not sure what the problem is. try using this version in my home
> > > > directiory
> > > >
> > > > http://cvs.apache.org/~woolfel/jakarta-jmeter.zip
> > > >
> > > > peter
> > > >
> > > > On 8/22/05, James Learmonth <Ja...@datalexuk.com> wrote:
> > > > > OK found the CVS tutorial
> > > > > Can't get the nightly build to run out the box
> > > > > Complains about org.apache.log.Formatter , I have scoured the net
> but
> > > > cannot
> > > > > find this.
> > > > >
> > > > > Regards Jim Learmonth
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Peter Lin [mailto:woolfel@gmail.com]
> > > > > Sent: 19 August 2005 11:49
> > > > > To: JMeter Users List
> > > > > Subject: Re: Can Jmeter exercise existing Junit test cases
> > > > >
> > > > > there's a new junitsampler in the nightly build and there's a
> tutorial
> > > > > for it in CVS.
> > > > >
> > > > >
> > > > > peter lin
> > > > >
> > > > >
> > > > > On 8/19/05, James Learmonth <Ja...@datalexuk.com> wrote:
> > > > > > I am new to Jmeter though have used Junit
> > > > > > I have hundreds of existing Junit Test suites/Test cases
> > > > > > Up to now for load testing I have used scripts running as
> background
> > > > > > processes, it would be nice to use Jmeter.
> > > > > >
> > > > > > Can Jmeter use the test cases as they stand?
> > > > > > Or
> > > > > > Do I have to re-engineer the test cases in Jmeter format?
> > > > > >
> > > > > > Thanks Jim Learmonth
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: 
> jmeter-user-unsubscribe@jakarta.apache.org
> > > > > > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail: 
> jmeter-user-help@jakarta.apache.org
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail: 
> jmeter-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > >
> > > > 
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > > >
> > > > 
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
>



Re: Can Jmeter exercise existing Junit test cases

Posted by Peter Lin <wo...@gmail.com>.
hi james,

the attachment didn't get through, can you try sending it to me directly, 
thanks

peter


On 9/1/05, James Learmonth <Ja...@datalexuk.com> wrote:
> 
> OK Peter tried that. With ref to attached SimpleTest.java
> 
> test1 which passes reports OK
> test0 which should fail does not report anything, an error appears in
> jmeter.log attached.
> 
> Hope that helps
> Regards Jim Learmonth
> 
>