JMeter test setup

24 Views Asked by At

I have a problem with setup my stress test. I need auto increasing accesses on HTTP web page, stop test when load time of page will be more than 10 seconds and track number of accesses at this point. Can someone help me, please?

A tried it with Concurency Thread group

1

There are 1 best solutions below

0
Dmitri T On
  1. Gradually increasing load can be simulated using any Thread Group even the "normal" one via Ramp-up period input field

    enter image description here

  2. You can stop the test in 2 ways:

    • using Auto Stop Listener (however it will track the average response time)

      enter image description here

    • using JSR223 PostProcessor and the following Groovy code:

        if(prev.getTime() >= 10000) {
            prev.setStopTest(true)
            log.info('Number of threads when response time exceeded 10 seconds was: ' + ctx.getThreadGroup().getNumberOfThreads())
        }
      
  3. The number of active threads at any given moment of time using i.e. Active Threads Over Time listener or the equivalent chart from HTML Reporting Dashboard or last line of the above Groovy code