On 16 November 2010 13:21, 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.

That does not make sense - if threads cannot "use the same CSV" then
there has to be "a CSV per thread".

However, if you mean that you don't want multiple threads to use the
same CSV records, then that is how CSV dataset works anyway.

> 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)

That is how CSV Dataset works.

Have you tried it?

Create your CSV Dataset files, and use JavaSamplers or DebugSamplers
to see the values.

> 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]

Reply via email to