jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alf Høgemark" <...@i100.no>
Subject RE: JUnit & Connection setup
Date Fri, 13 Apr 2007 12:53:41 GMT
Hi

I haven't tried your scenario myself, but I noticed that there is an
option in the JUnit GUI "Do not call setUp and tearDown". That option
might affect your results.

Regards
Alf

---- Opprinnelig melding ----
Fra: jw@jwi.de
Til: jmeter-user@jakarta.apache.org
Emne: JUnit & Connection setup
Dato: Fri, 13 Apr 2007 12:48:31 +0200

>Hi,
>
>I want to run a JUnit-Test from Jmeter. During the test setup()
>should 
>be called exactly once (to open a Corba connection), then the
>individual 
>tests should be all run and then the connection be closed.
>
>The JUnit way to do this is use TestSetup 
>(http://junit.sourceforge.net/javadoc/junit/extensions/TestSetup.html
>) 
>to wrap the actual test.
>
>Unfortunately, JMeter does not cope with TestSetup as it assumes that
>
>the given unittest class is the test to run (Jmeter gets the test
>with 
>the code cited below).
>
>Has anybody ever gotten to run a Unittest scenario like I described?
>
>Thanks,
>Juergen
>
>public Method getMethod(Object clazz, String method){
>        if (clazz != null && method != null){
>            // log.info("class " + clazz.getClass().getName() +
>            //        " method name is " + method);
>            try {
>                return clazz.getClass().getMethod(method,new
>Class[0]);
>            } catch (NoSuchMethodException e) {
>
>---------------------------------------------------------------------
>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