You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Roman Bargezi, Infonic AG" <rb...@infonic.net> on 2013/02/18 16:06:37 UTC

Randomness in for each loop

Hi,

I store a set of request parameter in a variable table
Name

Value

Description

PfoIV_1

7,7

Item 1

PfoIV_2

12,12

Item 2

PfoIV_3

14,14

Item 3

...

...

...

I then use a ForEach Controller to iterate through the variables and execute my request. Thing is that for concurrency testing I would actually want each 'user' to randomly go through all values from this list, i.e. use a shuffled list. Anyone has an idea how to achieve this?

Roman

Re: Randomness in for each loop

Posted by Shmuel Krakower <sh...@gmail.com>.
Put into a csv file and use csv dataset config element shared with all
threads.
On Feb 18, 2013 5:08 PM, "Roman Bargezi, Infonic AG" <rb...@infonic.net>
wrote:

> Hi,
>
> I store a set of request parameter in a variable table
> Name
>
> Value
>
> Description
>
> PfoIV_1
>
> 7,7
>
> Item 1
>
> PfoIV_2
>
> 12,12
>
> Item 2
>
> PfoIV_3
>
> 14,14
>
> Item 3
>
> ...
>
> ...
>
> ...
>
> I then use a ForEach Controller to iterate through the variables and
> execute my request. Thing is that for concurrency testing I would actually
> want each 'user' to randomly go through all values from this list, i.e. use
> a shuffled list. Anyone has an idea how to achieve this?
>
> Roman
>