I am using Apache JMeter and I need to run a function call in 2 nested loops controlled by csv datafiles. There is a similar Q & A in How to implement a nested loop in jmeter? but it is not based on data files.
I have 2 files:
long.csv
1
2
3
...
100.000
and short.csv :
a
b
c
I need to run a nested loop test with data from these files
foreach x from long.csv
foreach y from short.cvs
call(x,y)
and I want the calls to look like this:
call(1,a)
call(1,b)
call(1,c)
call(2,a)
call(2,b)
call(2,c)
call(3,a)
call(3,b)
call(3,c)
...
call(100000,a)
call(100000,b)
call(100000,c)
Calls can be reordered, but I need a unique call for each combination of inputs.
Suggestions?
source
share