Unanswered question

how to link random variable count number to another variable in neoload

i have a array in which im selecting the value randomly and the the value picked from that array position numbers should be the same to another array variable so that both the array's wil pick the same position values

radha K.
radha K.

radha K.

1 / 100


If i understand correctly, you extract a random value from an array that you have extracted with a variable extractor correct? And you will like the same position values from another array. Is it also coming from a variable extractor?

So i assume that the total number of occurrences is the same for both variables right?

Why don't you use a random value which will be used for both variables. For instance, ${var1}_${random} and ${var2}_${random] will get the same position value as soon as the total occurrence is the same.

The only issue with that is you have to know in advance the total number of occurrences. If you don't know it then you can still use that but you will have to create your random value from a Javascript and the max value will be ${var1_MatchNr} which is the total number of occurrences.

You have an example of such Javascript here

You just need to adapti it a bit.

I hope it helps.