Search the web
Sign In
New User? Sign Up
junitperf
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Question about creating a fixture for JUnitPerf   Message List  
Reply | Forward Message #64 of 94 |

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







Tue Nov 16, 2004 5:04 pm

mike_foley_0...
Offline Offline
Send Email Send Email

Forward
Message #64 of 94 |
Expand Messages Author Sort by Date

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()....
Mike Foley
mike_foley_0...
Offline Send Email
Nov 16, 2004
5:05 pm

... 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...
Mike Clark
clarkware
Offline Send Email
Nov 17, 2004
11:56 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help