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: [EMAIL PROTECTED] Til: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

