Questions tagged [junitperf]

JUnitPerf is a collection of JUnit test decorators used to measure the performance and scalability of functionality contained within existing JUnit tests.

JUnitPerf is a collection of JUnit test decorators used to measure the performance and scalability of functionality contained within existing JUnit tests.

JUnitPerf contains the following JUnit test decorators:

TimedTest

A TimedTest is a test decorator that runs a test and measures the elapsed time of the test.

A TimedTest is constructed with a specified maximum elapsed time. By default, a TimedTest will wait for the completion of its decorated test and then fail if the maximum elapsed time was exceeded. Alternatively, a TimedTest can be constructed to immediately signal a failure when the maximum elapsed time of its decorated test is exceeded.

LoadTest

A LoadTest is a test decorator that runs a test with a simulated number of concurrent users and iterations.

Read more here.

6 questions
2
votes
3 answers

Running a junit4 test with junitperf

It' possible to use Junitperf with junit4? I've a simplet Junit4 test class with several tests and I want to do a TimedTest on single test of that class. How can I do that? To be more clear my Junit4 class is something like: public class TestCitta…
Carlo
2
votes
0 answers

Does JunitPerf Support TestNG tests

Can I use JunitPerf: http://www.clarkware.com/software/JUnitPerf.html with TestNG tests?
andyrocks369
  • 75
  • 1
  • 5
1
vote
1 answer

Tomcat Blocks and Not Responding

I have a tomcat server and I'm running Performance Test with junitperf against it. I create 20 simultaneous requests each time. OK, here's the problem: sometimes, it returns really fast, all 20 requests are responded within 3 seconds; but at the…
firstprayer
  • 808
  • 2
  • 11
  • 18
1
vote
0 answers

JUnitPerf Sample XML

I have a custom stats module for some load tests on a prototype app, and I'm trying to get them into a Hudson CI server. Hudson can read JUnitPerf XML output, but I don't know what that XML looks like. Does anyone have some sample output from junit…
David Souther
  • 8,125
  • 2
  • 36
  • 53
0
votes
1 answer

How to use @BeforeClass and @AfterClass in JunitPerf?

I want to do some actions before the whole test suite (also after the suite). So I wrote like: public class PerformanceTest extends TestCase { @BeforeClass public static void suiteSetup() throws Exception { //do something } …
allenzzzxd
  • 331
  • 1
  • 10
  • 24
0
votes
1 answer

Test problem using JUnitPerf

I'm writing a JUnit test using JUnitPerf. Here, I want to generate some entries and use them to update a database. To test the capacity of the database, I want several test to run simultaneously or randomly, so I use, for example: Test loadTest =…
allenzzzxd
  • 331
  • 1
  • 10
  • 24