You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by socio_pal <so...@yahoo.com> on 2008/04/24 23:37:18 UTC

__CSVRead Function

Hi;
I have 3 CSV files in my Jmeter bin directory. One of the files have like 16
columns with info like Mobile Number, Address, CIty, State.... The other
ones just have different mobile numbers. Now I have defined these in the
UserParameter as:

failNum        ${__CSVRead(failure_num.csv,0)}
address       ${__CSVRead(failure_num.csv,1)}
city            ${__CSVRead(failure_num.csv,2)}
state          ${__CSVRead(failure_num.csv,3)}
.....
.....
....
successNum   ${__CSVRead(success_num.csv,0)}

In my SOAP/XML scripts I am using ${failNum}....etc. And I have a
threadgroup with LoopCount 20. I was expecting that for each iteration
Jmeter should pick up the values from a new row. But its not the case. The
values from Row1 of my CSV file is being used for all 20 iterations. How can
I let Jmeter know that it needs to increment the row at each iteration. 

The box "Update Once per Iteration" in my User Parameters component is
checked.

Thanks.

-- 
View this message in context: http://www.nabble.com/__CSVRead-Function-tp16853244p16853244.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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


Re: __CSVRead Function

Posted by sebb <se...@gmail.com>.
2008/4/24 socio_pal <so...@yahoo.com>:
>
>  Hi;
>  I have 3 CSV files in my Jmeter bin directory. One of the files have like 16
>  columns with info like Mobile Number, Address, CIty, State.... The other
>  ones just have different mobile numbers. Now I have defined these in the
>  UserParameter as:
>
>  failNum        ${__CSVRead(failure_num.csv,0)}
>  address       ${__CSVRead(failure_num.csv,1)}
>  city            ${__CSVRead(failure_num.csv,2)}
>  state          ${__CSVRead(failure_num.csv,3)}
>  .....
>  .....
>  ....

You need to tell CSVRead to move on to the next row:

last = ${__CSVRead(failure_num.csv,15)}${__CSVRead(failure_num.csv,next)}

>  successNum   ${__CSVRead(success_num.csv,0)}

successNum   ${__CSVRead(success_num.csv,0)}successNum
${__CSVRead(success_num.csv,next)}

>
>  In my SOAP/XML scripts I am using ${failNum}....etc. And I have a
>  threadgroup with LoopCount 20. I was expecting that for each iteration
>  Jmeter should pick up the values from a new row. But its not the case. The
>  values from Row1 of my CSV file is being used for all 20 iterations. How can
>  I let Jmeter know that it needs to increment the row at each iteration.
>
>  The box "Update Once per Iteration" in my User Parameters component is
>  checked.
>
>  Thanks.
>
>  --
>  View this message in context: http://www.nabble.com/__CSVRead-Function-tp16853244p16853244.html
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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