Search code examples
loopsurljmeterexecution

How can I keep executing the same url n number of times in jmeter?


We have a scenario where url is "xyz/abc/0". The count keeps on incrementing from 0 to n depending upon list of data we have in table(id="tble") where I have to take the count of total id within table and pass the value to next url


Solution

  • Please check the below plan:-

    Below, using regEx fetching all the count or tr in the response:-

    enter image description here Using For each for iteration only. Not taking any output from it:-

    enter image description here Using counter to start from 1 and end value is fetched from regEx:-

    enter image description here

    Passing the counter variable to the URL request:- enter image description here This is just a sample, you can use anywhere as per your requirement. Please check if this helps with your scenario.