You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by AshishJJ <as...@gmail.com> on 2008/11/11 20:40:58 UTC

Reading CSV Data File sequentially

Hi,

I am new to JMeter and trying to execute a load test on the application.
here is the scenario I want to test for 100 concurrent users.

1. Thread group having 100 threads.
    - Login with a username/password. I have specified a CSV data file which
has comma seperated username and password for each user.
   - another sampler which edits something which is posted by the logged in
user. This sampler also has a CSV data file which has data the user will
edit.

now the condition is to execute 2nd sampler is user who is currently logged
in should be the owner of the post. If not the request will fail. The order
of the two CSV data config files is same means.

I am trying to ramp up 100 threads in 10 seconds and the login is
successfull but What I observed is Jmeter is not loging the users in the
same sequence as mentioned in the file. because of this the second sampler
is failing.

If I increase the ramp up time to 100 seconds then it does login them
sequentially but then I wont be able to simulate the case of 100 concurrent
users.

Please suggest me how to achieve this in JMEter.

Your help is greatly appreciated.

Regards,
Ashish


-- 
View this message in context: http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20446794.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: Reading CSV Data File sequentially

Posted by AshishJJ <as...@gmail.com>.
Thanks a lot for your reply.
It works now. I dont even have to specify user variables. I am reading the
CSV Data file only once and just mentioning the variables where required.

Regards,
Ashish



sebb-2-2 wrote:
> 
> On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>>
>>  Thanks for the reply.
>>  I still have one question.
>>  Can I specify the CSV Data Set config only once for the login controller
>> and
>>  store the values of the variables other than usename, password read in a
>>  user variables and supply them when the other controller is run?
> 
> Not sure what you mean. The variables set by CSV Dataset are set in
> the thread; once set, any test element in the thread can access them.
> 
>>  If yes how to do it? For example:
>>
>>  name=uservariable1  value=${title}
>>  name=uservariable2  value=${description}
>>
>>  where ${title} and ${description} are 2 values read from CSV Data set
>>  config?
> 
> If "title" and "description" (without ") are the names you provided on
> the CSV Dataset element, then you can refer to ${title} and
> ${description} anywhere you want their values.
> 
>>  Please suggest.
> 
> Please read up about the CSV Dataset and Debug sampler and play with
> some test plans.
> 
>>
>>  Regards,
>>  Ashish
>>
>>
>>
>>  sebb-2-2 wrote:
>>  >
>>  > On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>>  >>
>>  >>  Is there anything in JMeter which will allow me to read the combined
>>  >> data
>>  >>  from one file and store the data for the post to be used when that
>>  >> request
>>  >>  gets executed?
>>  >>
>>  >
>>  > CSV Dataset will store the line, split into the variables that you
>>  > specify.
>>  >
>>  > Variables retain their value until they are updated, e.g. when the
>>  > next loop of the containing controller runs the CSV Dataset again.
>>  >
>>  > I assume you must have been doing this already for the login process
>> to
>>  > work ...
>>  >
>>  > Use the Debug Sampler + Tree View Listener to see what variables are
>> set.
>>  >
>>  >>
>>  >>  Regards,
>>  >>  Ashish
>>  >>
>>  >>  sebb-2-2 wrote:
>>  >>  >
>>  >>
>>  >> > On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>>  >>  >>
>>  >>  >>  Hi,
>>  >>  >>
>>  >>  >>  I am new to JMeter and trying to execute a load test on the
>>  >> application.
>>  >>  >>  here is the scenario I want to test for 100 concurrent users.
>>  >>  >>
>>  >>  >>  1. Thread group having 100 threads.
>>  >>  >>     - Login with a username/password. I have specified a CSV data
>>  >> file
>>  >>  >> which
>>  >>  >>  has comma seperated username and password for each user.
>>  >>  >>    - another sampler which edits something which is posted by the
>>  >> logged
>>  >>  >> in
>>  >>  >>  user. This sampler also has a CSV data file which has data the
>> user
>>  >> will
>>  >>  >>  edit.
>>  >>  >>
>>  >>  >>  now the condition is to execute 2nd sampler is user who is
>> currently
>>  >>  >> logged
>>  >>  >>  in should be the owner of the post. If not the request will
>> fail.
>>  >> The
>>  >>  >> order
>>  >>  >>  of the two CSV data config files is same means.
>>  >>  >>
>>  >>  >>  I am trying to ramp up 100 threads in 10 seconds and the login
>> is
>>  >>  >>  successfull but What I observed is Jmeter is not loging the
>> users in
>>  >> the
>>  >>  >>  same sequence as mentioned in the file. because of this the
>> second
>>  >>  >> sampler
>>  >>  >>  is failing.
>>  >>  >>
>>  >>  >>  If I increase the ramp up time to 100 seconds then it does login
>>  >> them
>>  >>  >>  sequentially but then I wont be able to simulate the case of 100
>>  >>  >> concurrent
>>  >>  >>  users.
>>  >>  >>
>>  >>  >>  Please suggest me how to achieve this in JMEter.
>>  >>  >
>>  >>  > I suggest you merge the data in the two files so that all the
>> items
>>  >>  > can be read at once.
>>  >>  > Should be trivial using a scripting language.
>>  >>  >
>>  >>  > There's no way to guarantee the processing order you require.
>>  >>  >
>>  >>  >>  Your help is greatly appreciated.
>>  >>  >>
>>  >>  >>  Regards,
>>  >>  >>  Ashish
>>  >>  >>
>>  >>  >>
>>  >>  >>
>>  >>  >>  --
>>  >>  >>  View this message in context:
>>  >>  >>
>>  >>
>> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20446794.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
>>  >>  >
>>  >>  >
>>  >>  >
>>  >>
>>  >>
>>  >> --
>>  >>  View this message in context:
>>  >>
>> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20447646.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
>>  >
>>  >
>>  >
>>
>>  --
>>
>> View this message in context:
>> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20449508.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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20450048.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: Reading CSV Data File sequentially

Posted by sebb <se...@gmail.com>.
On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>
>  Thanks for the reply.
>  I still have one question.
>  Can I specify the CSV Data Set config only once for the login controller and
>  store the values of the variables other than usename, password read in a
>  user variables and supply them when the other controller is run?

Not sure what you mean. The variables set by CSV Dataset are set in
the thread; once set, any test element in the thread can access them.

>  If yes how to do it? For example:
>
>  name=uservariable1  value=${title}
>  name=uservariable2  value=${description}
>
>  where ${title} and ${description} are 2 values read from CSV Data set
>  config?

If "title" and "description" (without ") are the names you provided on
the CSV Dataset element, then you can refer to ${title} and
${description} anywhere you want their values.

>  Please suggest.

Please read up about the CSV Dataset and Debug sampler and play with
some test plans.

>
>  Regards,
>  Ashish
>
>
>
>  sebb-2-2 wrote:
>  >
>  > On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>  >>
>  >>  Is there anything in JMeter which will allow me to read the combined
>  >> data
>  >>  from one file and store the data for the post to be used when that
>  >> request
>  >>  gets executed?
>  >>
>  >
>  > CSV Dataset will store the line, split into the variables that you
>  > specify.
>  >
>  > Variables retain their value until they are updated, e.g. when the
>  > next loop of the containing controller runs the CSV Dataset again.
>  >
>  > I assume you must have been doing this already for the login process to
>  > work ...
>  >
>  > Use the Debug Sampler + Tree View Listener to see what variables are set.
>  >
>  >>
>  >>  Regards,
>  >>  Ashish
>  >>
>  >>  sebb-2-2 wrote:
>  >>  >
>  >>
>  >> > On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>  >>  >>
>  >>  >>  Hi,
>  >>  >>
>  >>  >>  I am new to JMeter and trying to execute a load test on the
>  >> application.
>  >>  >>  here is the scenario I want to test for 100 concurrent users.
>  >>  >>
>  >>  >>  1. Thread group having 100 threads.
>  >>  >>     - Login with a username/password. I have specified a CSV data
>  >> file
>  >>  >> which
>  >>  >>  has comma seperated username and password for each user.
>  >>  >>    - another sampler which edits something which is posted by the
>  >> logged
>  >>  >> in
>  >>  >>  user. This sampler also has a CSV data file which has data the user
>  >> will
>  >>  >>  edit.
>  >>  >>
>  >>  >>  now the condition is to execute 2nd sampler is user who is currently
>  >>  >> logged
>  >>  >>  in should be the owner of the post. If not the request will fail.
>  >> The
>  >>  >> order
>  >>  >>  of the two CSV data config files is same means.
>  >>  >>
>  >>  >>  I am trying to ramp up 100 threads in 10 seconds and the login is
>  >>  >>  successfull but What I observed is Jmeter is not loging the users in
>  >> the
>  >>  >>  same sequence as mentioned in the file. because of this the second
>  >>  >> sampler
>  >>  >>  is failing.
>  >>  >>
>  >>  >>  If I increase the ramp up time to 100 seconds then it does login
>  >> them
>  >>  >>  sequentially but then I wont be able to simulate the case of 100
>  >>  >> concurrent
>  >>  >>  users.
>  >>  >>
>  >>  >>  Please suggest me how to achieve this in JMEter.
>  >>  >
>  >>  > I suggest you merge the data in the two files so that all the items
>  >>  > can be read at once.
>  >>  > Should be trivial using a scripting language.
>  >>  >
>  >>  > There's no way to guarantee the processing order you require.
>  >>  >
>  >>  >>  Your help is greatly appreciated.
>  >>  >>
>  >>  >>  Regards,
>  >>  >>  Ashish
>  >>  >>
>  >>  >>
>  >>  >>
>  >>  >>  --
>  >>  >>  View this message in context:
>  >>  >>
>  >> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20446794.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
>  >>  >
>  >>  >
>  >>  >
>  >>
>  >>
>  >> --
>  >>  View this message in context:
>  >> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20447646.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
>  >
>  >
>  >
>
>  --
>
> View this message in context: http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20449508.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


Re: Reading CSV Data File sequentially

Posted by AshishJJ <as...@gmail.com>.
Thanks for the reply.
I still have one question. 
Can I specify the CSV Data Set config only once for the login controller and
store the values of the variables other than usename, password read in a
user variables and supply them when the other controller is run?
If yes how to do it? For example:

name=uservariable1  value=${title}
name=uservariable2  value=${description}

where ${title} and ${description} are 2 values read from CSV Data set
config?

Please suggest.

Regards,
Ashish



sebb-2-2 wrote:
> 
> On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>>
>>  Is there anything in JMeter which will allow me to read the combined
>> data
>>  from one file and store the data for the post to be used when that
>> request
>>  gets executed?
>>
> 
> CSV Dataset will store the line, split into the variables that you
> specify.
> 
> Variables retain their value until they are updated, e.g. when the
> next loop of the containing controller runs the CSV Dataset again.
> 
> I assume you must have been doing this already for the login process to
> work ...
> 
> Use the Debug Sampler + Tree View Listener to see what variables are set.
> 
>>
>>  Regards,
>>  Ashish
>>
>>  sebb-2-2 wrote:
>>  >
>>
>> > On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>>  >>
>>  >>  Hi,
>>  >>
>>  >>  I am new to JMeter and trying to execute a load test on the
>> application.
>>  >>  here is the scenario I want to test for 100 concurrent users.
>>  >>
>>  >>  1. Thread group having 100 threads.
>>  >>     - Login with a username/password. I have specified a CSV data
>> file
>>  >> which
>>  >>  has comma seperated username and password for each user.
>>  >>    - another sampler which edits something which is posted by the
>> logged
>>  >> in
>>  >>  user. This sampler also has a CSV data file which has data the user
>> will
>>  >>  edit.
>>  >>
>>  >>  now the condition is to execute 2nd sampler is user who is currently
>>  >> logged
>>  >>  in should be the owner of the post. If not the request will fail.
>> The
>>  >> order
>>  >>  of the two CSV data config files is same means.
>>  >>
>>  >>  I am trying to ramp up 100 threads in 10 seconds and the login is
>>  >>  successfull but What I observed is Jmeter is not loging the users in
>> the
>>  >>  same sequence as mentioned in the file. because of this the second
>>  >> sampler
>>  >>  is failing.
>>  >>
>>  >>  If I increase the ramp up time to 100 seconds then it does login
>> them
>>  >>  sequentially but then I wont be able to simulate the case of 100
>>  >> concurrent
>>  >>  users.
>>  >>
>>  >>  Please suggest me how to achieve this in JMEter.
>>  >
>>  > I suggest you merge the data in the two files so that all the items
>>  > can be read at once.
>>  > Should be trivial using a scripting language.
>>  >
>>  > There's no way to guarantee the processing order you require.
>>  >
>>  >>  Your help is greatly appreciated.
>>  >>
>>  >>  Regards,
>>  >>  Ashish
>>  >>
>>  >>
>>  >>
>>  >>  --
>>  >>  View this message in context:
>>  >>
>> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20446794.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
>>  >
>>  >
>>  >
>>
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20447646.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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20449508.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: Reading CSV Data File sequentially

Posted by sebb <se...@gmail.com>.
On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>
>  Is there anything in JMeter which will allow me to read the combined data
>  from one file and store the data for the post to be used when that request
>  gets executed?
>

CSV Dataset will store the line, split into the variables that you specify.

Variables retain their value until they are updated, e.g. when the
next loop of the containing controller runs the CSV Dataset again.

I assume you must have been doing this already for the login process to work ...

Use the Debug Sampler + Tree View Listener to see what variables are set.

>
>  Regards,
>  Ashish
>
>  sebb-2-2 wrote:
>  >
>
> > On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>  >>
>  >>  Hi,
>  >>
>  >>  I am new to JMeter and trying to execute a load test on the application.
>  >>  here is the scenario I want to test for 100 concurrent users.
>  >>
>  >>  1. Thread group having 100 threads.
>  >>     - Login with a username/password. I have specified a CSV data file
>  >> which
>  >>  has comma seperated username and password for each user.
>  >>    - another sampler which edits something which is posted by the logged
>  >> in
>  >>  user. This sampler also has a CSV data file which has data the user will
>  >>  edit.
>  >>
>  >>  now the condition is to execute 2nd sampler is user who is currently
>  >> logged
>  >>  in should be the owner of the post. If not the request will fail. The
>  >> order
>  >>  of the two CSV data config files is same means.
>  >>
>  >>  I am trying to ramp up 100 threads in 10 seconds and the login is
>  >>  successfull but What I observed is Jmeter is not loging the users in the
>  >>  same sequence as mentioned in the file. because of this the second
>  >> sampler
>  >>  is failing.
>  >>
>  >>  If I increase the ramp up time to 100 seconds then it does login them
>  >>  sequentially but then I wont be able to simulate the case of 100
>  >> concurrent
>  >>  users.
>  >>
>  >>  Please suggest me how to achieve this in JMEter.
>  >
>  > I suggest you merge the data in the two files so that all the items
>  > can be read at once.
>  > Should be trivial using a scripting language.
>  >
>  > There's no way to guarantee the processing order you require.
>  >
>  >>  Your help is greatly appreciated.
>  >>
>  >>  Regards,
>  >>  Ashish
>  >>
>  >>
>  >>
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20446794.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
>  >
>  >
>  >
>
>
> --
>  View this message in context: http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20447646.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


Re: Reading CSV Data File sequentially

Posted by AshishJJ <as...@gmail.com>.
Is there anything in JMeter which will allow me to read the combined data
from one file and store the data for the post to be used when that request
gets executed?

Regards,
Ashish

sebb-2-2 wrote:
> 
> On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>>
>>  Hi,
>>
>>  I am new to JMeter and trying to execute a load test on the application.
>>  here is the scenario I want to test for 100 concurrent users.
>>
>>  1. Thread group having 100 threads.
>>     - Login with a username/password. I have specified a CSV data file
>> which
>>  has comma seperated username and password for each user.
>>    - another sampler which edits something which is posted by the logged
>> in
>>  user. This sampler also has a CSV data file which has data the user will
>>  edit.
>>
>>  now the condition is to execute 2nd sampler is user who is currently
>> logged
>>  in should be the owner of the post. If not the request will fail. The
>> order
>>  of the two CSV data config files is same means.
>>
>>  I am trying to ramp up 100 threads in 10 seconds and the login is
>>  successfull but What I observed is Jmeter is not loging the users in the
>>  same sequence as mentioned in the file. because of this the second
>> sampler
>>  is failing.
>>
>>  If I increase the ramp up time to 100 seconds then it does login them
>>  sequentially but then I wont be able to simulate the case of 100
>> concurrent
>>  users.
>>
>>  Please suggest me how to achieve this in JMEter.
> 
> I suggest you merge the data in the two files so that all the items
> can be read at once.
> Should be trivial using a scripting language.
> 
> There's no way to guarantee the processing order you require.
> 
>>  Your help is greatly appreciated.
>>
>>  Regards,
>>  Ashish
>>
>>
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20446794.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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20447646.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: Reading CSV Data File sequentially

Posted by sebb <se...@gmail.com>.
On 11/11/2008, AshishJJ <as...@gmail.com> wrote:
>
>  Hi,
>
>  I am new to JMeter and trying to execute a load test on the application.
>  here is the scenario I want to test for 100 concurrent users.
>
>  1. Thread group having 100 threads.
>     - Login with a username/password. I have specified a CSV data file which
>  has comma seperated username and password for each user.
>    - another sampler which edits something which is posted by the logged in
>  user. This sampler also has a CSV data file which has data the user will
>  edit.
>
>  now the condition is to execute 2nd sampler is user who is currently logged
>  in should be the owner of the post. If not the request will fail. The order
>  of the two CSV data config files is same means.
>
>  I am trying to ramp up 100 threads in 10 seconds and the login is
>  successfull but What I observed is Jmeter is not loging the users in the
>  same sequence as mentioned in the file. because of this the second sampler
>  is failing.
>
>  If I increase the ramp up time to 100 seconds then it does login them
>  sequentially but then I wont be able to simulate the case of 100 concurrent
>  users.
>
>  Please suggest me how to achieve this in JMEter.

I suggest you merge the data in the two files so that all the items
can be read at once.
Should be trivial using a scripting language.

There's no way to guarantee the processing order you require.

>  Your help is greatly appreciated.
>
>  Regards,
>  Ashish
>
>
>
>  --
>  View this message in context: http://www.nabble.com/Reading-CSV-Data-File-sequentially-tp20446794p20446794.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