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?
I see on the JUnit FAQ about the RepeatedTest decorator.....because
of limitations in my understanding of design patterns and that we
have extended JUnit classes I am not sure about this approach.
I have modified a base class we use and have set a protected
variable...++ it in setUp()...and only do the work if this variable
== 1. And in tearDown() I -- it and again, only do the undeploy if
this variable == 1. Seems to work.
Other approaches?
Thanks,
Mike Foley
michael01612@...