Take the 2-minute tour ×


I would like to probe our own map tile server and for this I'd like to have a loop from which I could request individual tiles, each time a different one. Our tile server is based on switch2osm and from outside could be proben with the HTTP requests having the pattern like this:


Where zoom is the zoom level, x is the horizontal tile index and y a vertical tile index. For testing this we've chosen Apache JMeter, however we cannot figure out, how to create a loop with the fixed range of iterations and use the iterator value in the HTTP request pattern. Is it possible to make a test plan like is shown in the following pseudo-plan ?

Test Plan
└ Thread Group
  └ X Loop from 1 to 100
    └ Y Loop from 1 to 100
      └ HTTP Request

And if so, is it possible to use the loop iterator values in the HTTP Request sampler Path parameter, like:



Is it possible to create a loop in JMeter's test plan and use its iterator value in the HTTP Request sampler Path parameter?

If it's possible, could someone sketch how such plan should look like and how to write the Path parameter of the HTTP Request sampler to use the iterator value ?


share|improve this question

1 Answer 1

up vote 4 down vote accepted

JMeter is an excellent choice for your requirements. JMeter has a loop controller: http://jmeter.apache.org/usermanual/component_reference.html#Loop_Controller, you may want to add a counter or simply use a user defined variable. Both options will work. The easiest is using counters

- Thread Group
-- Loop A
--- Counter 1 (Var name: C1)
--- Loop B
---- Counter 2 (Var name: C2)
---- HTTP Sampler using ${C1} and ${C2}

you can use variables in the path. Let's assume you set a variable named: var1. You can then use ${var1} almost anywhere.You can see a more detailed example here: http://community.blazemeter.com/knowledgebase/articles/65146-using-user-defined-variables-in-jmeter-2-6

share|improve this answer
Thanks a lot for this! –  TLama Nov 4 '13 at 17:10

Your Answer


