On Nov 16, 2004, at 10:04 AM, Mike Foley wrote:
> Hi,
>
> I have some JUnit/Cactus tests that I am converting to JUnitPerf
> timed and load tests. The JUnit test deploys and undeploys in setUp
> () and tearDown(). For the JUnitPerf tests I only want setUp() to
> occur for the first user first iteration....and for tearDown() I
> only want to undeploy for last user last iteration. How best to
> accomplish this?
You could wrap all of the JUnitPerf tests in a TestSetup fixture:
http://junit.sourceforge.net/doc/faq/faq.htm#organize_3
Hope that helps.
Mike