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
Using JunitPerf in a servlet with JunitEE   Message List  
Reply | Forward Message #61 of 94 |

Hello. I am trying to use JUnitPerf through a servlet rather than
the command line. Is this possible? I have a few test cases built
with JUnit that are working fine. I am also using JUnitEE so that I
can run these tests in a servlet environment. JUnitEE comes with a
servlet runner and a couple of GUI screens for test selection and
results. That is working fine as well. However, when I try and
integrate JUnitPerf for a Timed test, it does not seem to be
working.

For example, one of my existing test cases takes about 2 minutes to
run normally. It runs a database query and it is successful if one
or more records come back. When I try and use JUnitPerf to wrap
around this test case for a timed test (less than 30 seconds is
successful), it only runs for about 1 second and comes back
successful. So, I'm not sure if the test is running at all. I've
tried using junit.textui.TestRunner.run() to run the test, but this
method is mainly used from the command line, so I'm not sure it will
work in my case. I've also tried Test.run(), but I get the same
results.

So, I guess my questions are 1) is JUnitPerf compatible with JUnitEE,
2) can JUnitPerf be run in a servlet/J2EE environment, 3) what are
some alternate techniques for running my test where I perhaps can
evaluate the results of the timed test to see if it actually ran
correctly?

Thanks!






Wed Oct 20, 2004 12:19 pm

ozonshak
Offline Offline
Send Email Send Email

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

Hello. I am trying to use JUnitPerf through a servlet rather than the command line. Is this possible? I have a few test cases built with JUnit that are...
ozonshak
Offline Send Email
Oct 20, 2004
12:19 pm

... I don't have experience running JUnitPerf inside of a J2EE container, so I can't speculate on how JUnitPerf might behave in that environment. That said,...
Mike Clark
clarkware
Offline Send Email
Oct 20, 2004
9:12 pm

Mike, Thank you for the information. I figured out why the JUnitPerf test was running so fast. I am trying to test pieces of code from a portlet. The Portal...
ozonshak
Offline Send Email
Oct 27, 2004
2:05 pm
Advanced

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