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

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

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 #93 of 94 |
Re: problem with simple load test

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.

Regards,
Prabhat

--- In junitperf@yahoogroups.com, Mike Clark <mike@...> wrote:
>
>
> On Jun 27, 2008, at 10:59 AM, prabhat jha wrote:
>
> > 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 running properly.
> >
> > When I just want to run one iteration of the test, it goes to setup
> > and tear method but it does not run the actual test which is
> > testOneSecondResponse . You can take a look at my very simple test
athttp://anonsvn.jboss.org/repos/qa/junitperf/
> > . SampleTestCase.java is the test case and SampleLoadTestCase.java
> > is corresponding load test case.
>
>
> 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
> SampleTestCase("testOneSecondResponse"),1,1);
>
> Hope that helps.
>
> Mike
>





Mon Jun 30, 2008 6:34 pm

prabhat143
Offline Offline
Send Email Send Email

Forward
Message #93 of 94 |
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