I have been trying to do a nested API call Where in my calls as to go like this-
- first call - 1 time
- second call - n number of times (usually 800)
- third call- 1 time
The API would be the same and the request body differs-
first call -
{
"id" : 1,
"last" : false ,
"value" : "" ,
"order" : 0
}
second call -
{
"id" : 1,
"last" : false ,
"value" : "A" ,
"order" : 1 to n
}
third call -
{
"id" : 1,
"last" : true ,
"value" : "" ,
"order" : 1
}
My CSV looks like this -
file-1
id |
---|
1 |
2 |
3 |
4 |
5 |
file-2
order | value |
---|---|
1 | A |
2 | B |
3 | C |
4 | D |
5 | E |
File-1: I pick id from file 1 which is used in all three calls.
File-2: I pick order and value which is to be looped n number of times.
I want the execution to happen like this -
for() {
// first call
for() {
// second call
}
// third call
}
When I do this with my JMeter configuration -
Thread ends at second call ( end of CSV file content ), I'm not able to make 3rd API call.
Thanks in advance