Kristina Naumova
Kristina Naumova

Reputation: 11

How to make in JMeter test that will make 100 requests on one site,and every fifth on another one?

How can I create a test in JMETER that will:

Upvotes: 1

Views: 1210

Answers (1)

Aliaksandr Belik
Aliaksandr Belik

Reputation: 12873

1) You can possibly use set of Throughput Controllers - but they will work properly only in loop (as "children" of Loop Controller e.g.).

You can try to use something like below e.g.:

. . .
    Loop Controller
    Loop Count = 100
        Throughput Controller
        Percent Execution
        Throughput = 80.0
            HTTP Request Sampler
            Request to 1st site
        Throughput Controller
        Percent Execution
        Throughput = 20.0
            HTTP Request Sampler
            Request to 2nd site
. . .

Look into these for details:

2) Another construction can be implemented only using Loop Controllers e.g.:

. . .
    Loop Controller
    Loop Count = 20
        Loop Controller
        Loop Count = 4
            HTTP Request Sampler
            Request to 1st site
        HTTP Request Sampler
        Request to 2nd site
. . .

Upvotes: 3

Related Questions