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
problem with simple load test   Message List  
Reply | Forward Message #94 of 94 | Next >
Re: [junitperf] Re: problem with simple load test


On Jun 30, 2008, at 12:34 PM, prabhat wrote:

> Thanks Mike.
>
> That works. I was hoping that not calling the constructor that takes
> method name would result into calling all test methods automatically.
> Most of the test cases that I have are already written and they do not
> have such constructors.
>
> Now that I know you are alive :-), is there a way to avoid setup/tear
> method? My use case is such that my setup and tear methods are very
> expensive so my unit load testing wont give me the right metrics that
> I want.

The design of JUnit only allows decoration around the setup/test/
teardown lifecycle, so it can't easily be avoided. If your setup
method is expensive because it's priming the database, for example,
you may want to refactor that step out into a method you can call
explicitly before running the performance tests.

Mike



Mon Jun 30, 2008 7:38 pm

clarkware
Offline Offline
Send Email Send Email

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

Hi, I just downloaded junitperf version 1.9.1 and I am doing a POC with jdk 6 (tried jdk1.5 as well) as stated in junitperf page. My simple load test case not...
prabhat jha
prabhat143
Offline Send Email
Jun 27, 2008
4:59 pm

... You'll need to call the constructor that takes a name and pass in the name of the test method, like so: LoadTest test = new LoadTest (new ...
Mike Clark
clarkware
Offline Send Email
Jun 30, 2008
5:06 pm

Thanks Mike. That works. I was hoping that not calling the constructor that takes method name would result into calling all test methods automatically. Most of...
prabhat
prabhat143
Offline Send Email
Jun 30, 2008
6:34 pm

... The design of JUnit only allows decoration around the setup/test/ teardown lifecycle, so it can't easily be avoided. If your setup method is expensive...
Mike Clark
clarkware
Offline Send Email
Jun 30, 2008
7:38 pm
< Prev Topic  |  Next Topic >
Advanced

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