You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Anurodh Jain <an...@aztec.soft.net> on 2005/12/15 11:18:36 UTC

Regarding the Sequential reading of CSV Files

Hi,
 Does anybody know how can we ensure that multiple threads reads through
each of the 
lines in a CSV file. Say, for example, my csv file has 10 rows and I have
assigned 5 threads
to run. Here, I want that all the 5 threads read each of the 10 lines
simultaneously.
I suppose, the CSVDataSetConfig element or the CSVRead does not directly
work this way.
Is there a way around for working this out?
Any help would be greatly appreciated. 
 
Regards
Anurodh
 




**********************************************************

The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email

************************************************************

Re: Regarding the Sequential reading of CSV Files

Posted by sebb <se...@gmail.com>.
On 15/12/05, sebb <se...@gmail.com> wrote:
> On 15/12/05, Anurodh Jain <an...@aztec.soft.net> wrote:
> >
> > Hi,
> >  Does anybody know how can we ensure that multiple threads reads through
> > each of the
> > lines in a CSV file. Say, for example, my csv file has 10 rows and I have
> > assigned 5 threads
> > to run. Here, I want that all the 5 threads read each of the 10 lines
> > simultaneously.
>
> What do you mean by that?
>
> Do you mean that you want the threads to read the file independently
> of other threads, so each threads gets the same lines?
>
> If so, this is not possible with the current implementation.
>
> Perhaps file a Bugzilla enhancement request.
>
> Or you could try creating one file per thread, e.g. file1.csv,
> file2.csv etc., and use the function ${__threadNum()} in the file
> name.
>
> See http://jakarta.apache.org/jmeter/usermanual/functions.html#__threadNum
>

BTW, just discovered that threadNum() does not work properly in User
Defined Variables; but should be OK in the User Parameters
Pre-Processor, and it works OK in Samplers.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Regarding the Sequential reading of CSV Files

Posted by sebb <se...@gmail.com>.
On 15/12/05, Anurodh Jain <an...@aztec.soft.net> wrote:
>
> Hi,
>  Does anybody know how can we ensure that multiple threads reads through
> each of the
> lines in a CSV file. Say, for example, my csv file has 10 rows and I have
> assigned 5 threads
> to run. Here, I want that all the 5 threads read each of the 10 lines
> simultaneously.

What do you mean by that?

Do you mean that you want the threads to read the file independently
of other threads, so each threads gets the same lines?

If so, this is not possible with the current implementation.

Perhaps file a Bugzilla enhancement request.

Or you could try creating one file per thread, e.g. file1.csv,
file2.csv etc., and use the function ${__threadNum()} in the file
name.

See http://jakarta.apache.org/jmeter/usermanual/functions.html#__threadNum

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org