jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Learmonth <James.Learmo...@datalexuk.com>
Subject RE: Can Jmeter exercise existing Junit test cases
Date Tue, 23 Aug 2005 06:35:15 GMT
OK sorted it, the problem was I installed the bin/src but did not installed
the lib.
So I can now seem my unit test cases "SimpeTest" with its two tests test0
which passes and test1 which fails , see code below.
Unfortunately jmeter seems to show that they both pass ?
Looking into it in more detail, any ideas appreciated.
JimL

import junit.framework.*;
public class SimpleTest extends TestCase {
	public SimpleTest( String s ) {
	        super(s);
	}
	public static void main(String args[]) {
	        junit.textui.TestRunner.run(suite());
	}
	public static Test suite() {
	        TestSuite suite = new TestSuite(SimpleTest.class);
	        return suite;
	}
	public void test0() {
	        assertEquals( "Should not fail" , "Jim" , "Jim" );
	} 
	public void test1() {
	        assertEquals( "Should fail" , "Jim" , "John" );
	} 
}


-----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 <James.Learmonth@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 <James.Learmonth@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


Mime
View raw message