Nested loop with files file1.csv and file2.csv in jmeter

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?

+4
source share
1 answer

, , .

http://www.testautomationguru.com/jmeter-looping-2-csv-files/


, , . . .

CSV Config 1 csv - var "vara". 10 , 1-10

CSV Config 2 csv, 3 a, b c -, var ref - 'varb'. " EOF?" True.

CSV Data set Config 1
CSV Config 2

enter image description here

+4

Source: https://habr.com/ru/post/1547755/


All Articles