Don't worry.. I'm an idiot!

I setup the following and it works correctly (I'd assumed that each thread 
group would start from the beginning of the CSV)

Thread Group 1 (Use csv1)
 - CSV Dataset (csv1)
  - Login
Thread Group 2 (Use csv1)
- CSV Dataset (csv1)
 - Login
Thread Group 3 (Use csv2)
- CSV Dataset (csv2)
 - Login

-----Original Message-----
From: J.E.C.Brisland [mailto:[email protected]] 
Sent: 16 November 2010 14:17
To: 'JMeter Users List'
Subject: RE: Multipule Global CSV Data Sets

Hi Guys,

OK lets try and actualy type text that makes sense this time!

What I want is several CSV's defined globally, then I want to be able to define 
which CSV to use on each thread.

Take these 2 CSV's for example

CSV1
user1,pass1
user2,pass2
user3,pass3
user4,pass4

CSV2
user5,pass5
user6,pass6
user7,pass7
user8,pass8

And the following thread groups

Thread Group 1 (Use csv1)
  - Login
Thread Group 2 (Use csv1)
 - Login
Thread Group 3 (Use csv2)
 - Login

Each thread group loops three times, and has 3 threads, and the CSV's are told 
to recycle on EOF.

These are the results I want to achieve

- Loop 1 -
# Thread 1 #
Thread 1 - Login (user1)
Thread 2 - Login (user2)
Thread 3 - Login (user5) 

# Thread 2 #
Thread 1 - Login (user3)
Thread 2 - Login (user4)
Thread 3 - Login (user6) 

# Thread 3 #
Thread 1 - Login (user1)
Thread 2 - Login (user2)
Thread 3 - Login (user7)
- Loop 1 -

- Loop 2 -
# Thread 1 #
Thread 1 - Login (user3)
Thread 2 - Login (user4)
Thread 3 - Login (user8) 

# Thread 2 #
Thread 1 - Login (user1)
Thread 2 - Login (user2)
Thread 3 - Login (user5) 

# Thread 3 #
Thread 1 - Login (user3)
Thread 2 - Login (user4)
Thread 3 - Login (user6)
- Loop 2 -

- Loop 3 -
# Thread 1 #
Thread 1 - Login (user1)
Thread 2 - Login (user2)
Thread 3 - Login (user7) 

# Thread 2 #
Thread 1 - Login (user3)
Thread 2 - Login (user4)
Thread 3 - Login (user8) 

# Thread 3 #
Thread 1 - Login (user1)
Thread 2 - Login (user2)
Thread 3 - Login (user5)
- Loop 3 -

I hope that makes more sense.

-----Original Message-----
From: Deepak Shetty [mailto:[email protected]]
Sent: 16 November 2010 13:37
To: JMeter Users List
Subject: Re: Multipule Global CSV Data Sets

Look at sharing mode in CSV Dataset config which describes how each thread 
would get data from the file.
However when you have mutliple CSV files then it depends on whether rows are 
interrelated , independent and/or mutually exclusive and I cant make out from 
your example -- it looks like they should be mutually exclusive for a thread? 
is that correct?

On Tue, Nov 16, 2010 at 5:21 AM, J.E.C.Brisland
<[email protected]>wrote:

> Hi All,
>
> What I want to do is have several global datasets (CSVs with username 
> and passwords for login to specific parts of the site) used by 
> different threads.
>
> I don't want to have to create a CSV per thread, or have the threads 
> using the same CSV as they will get the same users.
>
> What I would like to happen is when Thread 1 starts to execute it 
> moves the pointer in the first dataset, so that when Thread 2 executes 
> it gets the next user record, and then when Thread 5 runs it would 
> also get the following user record. I also want to do the same thing 
> with another dataset (as defined below)
>
> I hope this makes sense!
>
> Adios,
>
> James
>
> Test Plan
>    - CSV Data Set 1
>   - CSV Data Set 2
> Thread 1 (admin stuff)
>   - Use CSV Data Set 1
>    - Do Stuff....
> Thread 2 (admin stuff)
>   - Use CSV Data Set 1
>    - Do Stuff....
> Thread 3 (user stuff)
>   - Use CSV Data Set 2
>    - Do Stuff....
> Thread 4 (user stuff)
>   - Use CSV Data Set 2
>    - Do Stuff....
> Thread 5 (admin stuff)
>   - Use CSV Data Set 1
>    - Do Stuff....
>
>
> --
> The Open University is incorporated by Royal Charter (RC 000391), an 
> exempt charity in England & Wales and a charity registered in Scotland (SC 
> 038302).
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to