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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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:
>> [EMAIL PROTECTED]
>>  >>  >>  For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>  >>  >>
>>  >>  >>
>>  >>  >
>>  >>  >
>> ---------------------------------------------------------------------
>>  >>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  >>  > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>  >>  >
>>  >>  >
>>  >>  >
>>  >>
>>  >>
>>  >> --
>>  >>  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: [EMAIL PROTECTED]
>>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>>  >>
>>  >>
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>  >
>>  >
>>  >
>>
>>  --
>>
>> 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: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to