0

I'm using jmeter for testing. I have 1 thread group setup and multiple http requests under that thread group. Jmeter will run those requests sequentially. But how do I get them to run sequentially multiple times?

My setup is as follows: Thread Group -http request 1 * variables * save file * results tree -http request 2 * variables * save file * results tree -http request 3 * variables * save file * results tree

I want jmeter to run them multiple times in order. For example I want them to run twice. So I want request 1 to run, then request 2 and then request 3. Then I want request 1 to run, then request 2 and finally request 3. jmeter test plan updated test plan

http request defaults http request defaults variables

http request 1 http request 1 variables

http request 2 htpp request 2 variables

1 Answer 1

1

Put the loop count to 2 in the thread group and then it will run in sequence twice.

Please check below:- enter image description here enter image description here

Updated:- enter image description here

Sign up to request clarification or add additional context in comments.

8 Comments

I've tried that but it still isn't working the way I want. I should mention I'm using the CSV Data Set Config to pass variables to each call. The variable file contains 4 records, 2 per request, each using different data. But it seems like the 1st variable record is being used for each http request. Then when it loops for the 2nd time it uses the 2nd record in the variable file. How can I get it so that http request 1 loop 1 uses the 1st variable record, http request 2 loop 1 ruses the 2nd record, http request 1 loop 2 uses the 3rd record and http request 2 loop 2 uses the last record
Added image of jmeter request to main questions
Add two csv with two variables for each for both the request. Then, 1st run will pick first value from respective csv's...Check the updated snapshot.
Ok I tried that, I don't get the results your snapshot shows. http request 1 will run and grab the first row of variables from it's file, then http request 2 will run and it will grab the 2nd row of variables from it's file. I added another screen shot. Is it because I'm using the same variable names for each request? Is it because I have a http request defaults setup using those variables names (so I don't have to fill them out on every single http request)? Are there special settings on the csv data config I need to set? This isn't making sense to me
Do not use same variable names in csv as well as in sampler.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.