Alex Rivera | Logout

JMeter CSV Dataset Config: how to move through variables in the same thread?

Asked 2011-09-06T09:46:40.703
17

I'm using a CSV dataset config element, which is reading from a file like this:

abd
sds
ase
sdd
ssd
cvv

Which, basically, has a number of 3 letter random string.

I'm assigning them to a variable called ${random_3}.

Now, I want to use values from this list multiple times within the same thread, but each time I want to move to next. For example, I want the first sampler to use abd, the 2nd to use sds, then ase, etc. But if I just use ${random_3} then only the first one (abd) is used wherever it's referred to. Is there a way I can specify to loop through the values from the CSV dataset within a thread?

Edit
Report

1 Answer

1

Note that you need to have the values for a given variable name in the same column.

Doing: abd sds ase sdd ssd cvv is very different from

abd 
sds 
ase 
sdd 
ssd 
cvv

The first has 6 variables with one value each; the second has one variable with 6 values.

answered 2011-09-06T16:15:32.390

Your Answer