You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by arubin41 <al...@yahoo.com> on 2009/10/13 23:30:42 UTC

CSV Data Set Config Question

New to jMeter and I'm running into what's likely a very-rookie question.  I'm
creating CSV Data Set Config to set up 5 usernames and passwords.  My
question is regarding the structure of my txt file.  Do you establish the
variables similar to javascript (or whatever language):

var USER {username1, username2, username3, username4, username5}

Or am I overthinking this a little?

Also, in the jmeter test plan heirarchy, is there a specific place I need to
create the CSV Data Set Config entry?

Best,

-Alan
-- 
View this message in context: http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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: CSV Data Set Config Question

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
The variable names are those corresponding to what a column represents in
the CSV .  There should be as many variable names as there are columns.

so if your CSV is something like
username1, firstname1, email1
username2, firstname2, email2

Then in the CSV data set config the variable names would be for e.g.
username,firstName,emailAddress

and you would refer to this in your test as
${username},${firstName},${emailAddress}. At runtime these values will be
replaced by the values for a row from the CSV . If you had multiple threads
each would get its own row (assuming the sharing mode is that).
regards
deepak

On Wed, Oct 14, 2009 at 5:32 AM, arubin41 <al...@yahoo.com> wrote:

>
> Deepak - thanks for the info.  Very helpful.  QUick follow up question.  In
> the CSV Data Set Config space, when I fill out the Variable Names
> (comma-delimited) field do I list the usernames established in the txt file
> like so
>
> username1, username2, username3, username4, username5?
>
> Or am I following the example on the Jmeter User Guide
>
> a, b, c, d, e?
>
> Thanks again,
>
> -Alan
>
> Deepak Shetty wrote:
> >
> > hi
> > Each row should correspond to the data per user so in your case
> > user1,pass1,otherdata
> > user2,pass2,otherdata
> > user3,pass3,otherdata
> > user4,pass4,otherdata
> >
> > The variable names are defined in the CSV data set config
> >  in most cases you should be able to put the CSV data set config as a
> > child
> > of the threadgroup .
> >
> > regards
> > deepak
> >
> > On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com> wrote:
> >
> >>
> >> New to jMeter and I'm running into what's likely a very-rookie question.
> >>  I'm
> >> creating CSV Data Set Config to set up 5 usernames and passwords.  My
> >> question is regarding the structure of my txt file.  Do you establish
> the
> >> variables similar to javascript (or whatever language):
> >>
> >> var USER {username1, username2, username3, username4, username5}
> >>
> >> Or am I overthinking this a little?
> >>
> >> Also, in the jmeter test plan heirarchy, is there a specific place I
> need
> >> to
> >> create the CSV Data Set Config entry?
> >>
> >> Best,
> >>
> >> -Alan
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25890240.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: CSV Data Set Config Question

Posted by arubin41 <al...@yahoo.com>.
Deepak - thanks for the info.  Very helpful.  QUick follow up question.  In
the CSV Data Set Config space, when I fill out the Variable Names
(comma-delimited) field do I list the usernames established in the txt file
like so

username1, username2, username3, username4, username5?

Or am I following the example on the Jmeter User Guide

a, b, c, d, e?

Thanks again,

-Alan

Deepak Shetty wrote:
> 
> hi
> Each row should correspond to the data per user so in your case
> user1,pass1,otherdata
> user2,pass2,otherdata
> user3,pass3,otherdata
> user4,pass4,otherdata
> 
> The variable names are defined in the CSV data set config
>  in most cases you should be able to put the CSV data set config as a
> child
> of the threadgroup .
> 
> regards
> deepak
> 
> On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com> wrote:
> 
>>
>> New to jMeter and I'm running into what's likely a very-rookie question.
>>  I'm
>> creating CSV Data Set Config to set up 5 usernames and passwords.  My
>> question is regarding the structure of my txt file.  Do you establish the
>> variables similar to javascript (or whatever language):
>>
>> var USER {username1, username2, username3, username4, username5}
>>
>> Or am I overthinking this a little?
>>
>> Also, in the jmeter test plan heirarchy, is there a specific place I need
>> to
>> create the CSV Data Set Config entry?
>>
>> Best,
>>
>> -Alan
>> --
>> View this message in context:
>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25890240.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: CSV Data Set Config Question

Posted by Jatin Davey <ja...@cisco.com>.
Got this working for all my 50 concurrent threads with the help of CSV 
Data Config Element.

Thanks Sebb , Deepak and Nikolay for providing all the help and clues in 
arriving at a solution for it.

Thanks
Jatin

Jatin Davey wrote:
> Thanks Deepak. I tried this by looking into one of the examples that 
> comes with JMeter bundle. Thanks for the help. I am good to go by 
> having multiple users logging into my server. Need to tweak some more 
> variables to make it work the way it is done using a browser with 
> multiple sessions.
> I will get back if any help is needed further.
> Thanks Again..
>
> Thanks
> Jatin
>
> Deepak Shetty wrote:
>> Hi
>> In your HttpSample under 'Send Parameters with request'
>> under name enter the name of the field your application uses , under 
>> value
>> enter ${a} where a is the name you've specfied in the CSV data set 
>> config
>>
>> so for e.g.
>> if the application uses j_username and j_password as the fields and 
>> your CSV
>> data set config has the variables defined as username,password then 
>> in the
>> HTTP Sample you will have two entries
>> j_username ${username}
>> j_password ${password}
>>
>> regards
>> deepak
>>
>>
>> On Tue, Oct 13, 2009 at 9:09 PM, Jatin Davey <ja...@cisco.com> wrote:
>>
>>  
>>> Ok , i have defined a csv file where i have mentioned the user name and
>>> passwords. Also as mentioned earlier by you to split them into 
>>> variables
>>> using the CSV data config element. This also is done. As per my
>>> understanding now i would be having the user name and password into 2
>>> variables that i need to use in the post request of the sampler that 
>>> is used
>>> to log into the Server.
>>>
>>> I have a question here , since i added the CSV data config in the 
>>> thread
>>> group i understand that the values from the CSV file will be split into
>>> variables "a" and "b" (defined in the CSV data config) , now what 
>>> should i
>>> do in the sampler to make it use these variables.
>>> Please guide me.
>>>
>>>
>>> Thanks
>>> Jatin
>>>
>>> Deepak Shetty wrote:
>>>
>>>    
>>>> hi
>>>> if the data is tied to the user (e.g. the user's email address) 
>>>> then it
>>>> must
>>>> be the same CSV data set config (each column representing a data 
>>>> item).
>>>> If the data is independent (e.g. the string the user enters into a 
>>>> search
>>>> box) then you could have it as separate or different CSV data config
>>>> element.
>>>> If the relation is 1 to Many (1 user searches for multiple strings) 
>>>> then
>>>> you'd probably have separate CSV data set configs
>>>>
>>>>
>>>> regards
>>>> deepak
>>>>
>>>> On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey <ja...@cisco.com> 
>>>> wrote:
>>>>
>>>>
>>>>
>>>>      
>>>>> On similar lines i too have a requirement as below:
>>>>>
>>>>> 1. Each thread logs into my server with different username and 
>>>>> password
>>>>> 2. Within thread group there are samplers that require to take 
>>>>> some value
>>>>> from the file for the user logged into my server using the step 1
>>>>>
>>>>> So do i need to have to seperate CSV files and CSV data config 
>>>>> elements ,
>>>>> one for thread group and one for the samplers.
>>>>> Please explain.
>>>>>
>>>>> Thanks
>>>>> Jatin
>>>>>
>>>>>
>>>>> Deepak Shetty wrote:
>>>>>
>>>>>
>>>>>
>>>>>        
>>>>>> hi
>>>>>> Each row should correspond to the data per user so in your case
>>>>>> user1,pass1,otherdata
>>>>>> user2,pass2,otherdata
>>>>>> user3,pass3,otherdata
>>>>>> user4,pass4,otherdata
>>>>>>
>>>>>> The variable names are defined in the CSV data set config
>>>>>>  in most cases you should be able to put the CSV data set config 
>>>>>> as a
>>>>>> child
>>>>>> of the threadgroup .
>>>>>>
>>>>>> regards
>>>>>> deepak
>>>>>>
>>>>>> On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>          
>>>>>>> New to jMeter and I'm running into what's likely a very-rookie
>>>>>>> question.
>>>>>>>  I'm
>>>>>>> creating CSV Data Set Config to set up 5 usernames and 
>>>>>>> passwords.  My
>>>>>>> question is regarding the structure of my txt file.  Do you 
>>>>>>> establish
>>>>>>> the
>>>>>>> variables similar to javascript (or whatever language):
>>>>>>>
>>>>>>> var USER {username1, username2, username3, username4, username5}
>>>>>>>
>>>>>>> Or am I overthinking this a little?
>>>>>>>
>>>>>>> Also, in the jmeter test plan heirarchy, is there a specific 
>>>>>>> place I
>>>>>>> need
>>>>>>> to
>>>>>>> create the CSV Data Set Config entry?
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> -Alan
>>>>>>> -- 
>>>>>>> View this message in context:
>>>>>>>
>>>>>>>
>>>>>>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>         
>>>>
>>>>       
>>> ---------------------------------------------------------------------
>>> 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
>
>

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


Re: CSV Data Set Config Question

Posted by Jatin Davey <ja...@cisco.com>.
Thanks Deepak. I tried this by looking into one of the examples that 
comes with JMeter bundle. Thanks for the help. I am good to go by having 
multiple users logging into my server. Need to tweak some more variables 
to make it work the way it is done using a browser with multiple sessions.
I will get back if any help is needed further.
Thanks Again..

Thanks
Jatin

Deepak Shetty wrote:
> Hi
> In your HttpSample under 'Send Parameters with request'
> under name enter the name of the field your application uses , under value
> enter ${a} where a is the name you've specfied in the CSV data set config
>
> so for e.g.
> if the application uses j_username and j_password as the fields and your CSV
> data set config has the variables defined as username,password then in the
> HTTP Sample you will have two entries
> j_username ${username}
> j_password ${password}
>
> regards
> deepak
>
>
> On Tue, Oct 13, 2009 at 9:09 PM, Jatin Davey <ja...@cisco.com> wrote:
>
>   
>> Ok , i have defined a csv file where i have mentioned the user name and
>> passwords. Also as mentioned earlier by you to split them into variables
>> using the CSV data config element. This also is done. As per my
>> understanding now i would be having the user name and password into 2
>> variables that i need to use in the post request of the sampler that is used
>> to log into the Server.
>>
>> I have a question here , since i added the CSV data config in the thread
>> group i understand that the values from the CSV file will be split into
>> variables "a" and "b" (defined in the CSV data config) , now what should i
>> do in the sampler to make it use these variables.
>> Please guide me.
>>
>>
>> Thanks
>> Jatin
>>
>> Deepak Shetty wrote:
>>
>>     
>>> hi
>>> if the data is tied to the user (e.g. the user's email address) then it
>>> must
>>> be the same CSV data set config (each column representing a data item).
>>> If the data is independent (e.g. the string the user enters into a search
>>> box) then you could have it as separate or different CSV data config
>>> element.
>>> If the relation is 1 to Many (1 user searches for multiple strings) then
>>> you'd probably have separate CSV data set configs
>>>
>>>
>>> regards
>>> deepak
>>>
>>> On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey <ja...@cisco.com> wrote:
>>>
>>>
>>>
>>>       
>>>> On similar lines i too have a requirement as below:
>>>>
>>>> 1. Each thread logs into my server with different username and password
>>>> 2. Within thread group there are samplers that require to take some value
>>>> from the file for the user logged into my server using the step 1
>>>>
>>>> So do i need to have to seperate CSV files and CSV data config elements ,
>>>> one for thread group and one for the samplers.
>>>> Please explain.
>>>>
>>>> Thanks
>>>> Jatin
>>>>
>>>>
>>>> Deepak Shetty wrote:
>>>>
>>>>
>>>>
>>>>         
>>>>> hi
>>>>> Each row should correspond to the data per user so in your case
>>>>> user1,pass1,otherdata
>>>>> user2,pass2,otherdata
>>>>> user3,pass3,otherdata
>>>>> user4,pass4,otherdata
>>>>>
>>>>> The variable names are defined in the CSV data set config
>>>>>  in most cases you should be able to put the CSV data set config as a
>>>>> child
>>>>> of the threadgroup .
>>>>>
>>>>> regards
>>>>> deepak
>>>>>
>>>>> On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> New to jMeter and I'm running into what's likely a very-rookie
>>>>>> question.
>>>>>>  I'm
>>>>>> creating CSV Data Set Config to set up 5 usernames and passwords.  My
>>>>>> question is regarding the structure of my txt file.  Do you establish
>>>>>> the
>>>>>> variables similar to javascript (or whatever language):
>>>>>>
>>>>>> var USER {username1, username2, username3, username4, username5}
>>>>>>
>>>>>> Or am I overthinking this a little?
>>>>>>
>>>>>> Also, in the jmeter test plan heirarchy, is there a specific place I
>>>>>> need
>>>>>> to
>>>>>> create the CSV Data Set Config entry?
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> -Alan
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>>>>
>>>>>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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
>>>>
>>>>
>>>>
>>>>
>>>>         
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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: CSV Data Set Config Question

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
In your HttpSample under 'Send Parameters with request'
under name enter the name of the field your application uses , under value
enter ${a} where a is the name you've specfied in the CSV data set config

so for e.g.
if the application uses j_username and j_password as the fields and your CSV
data set config has the variables defined as username,password then in the
HTTP Sample you will have two entries
j_username ${username}
j_password ${password}

regards
deepak


On Tue, Oct 13, 2009 at 9:09 PM, Jatin Davey <ja...@cisco.com> wrote:

> Ok , i have defined a csv file where i have mentioned the user name and
> passwords. Also as mentioned earlier by you to split them into variables
> using the CSV data config element. This also is done. As per my
> understanding now i would be having the user name and password into 2
> variables that i need to use in the post request of the sampler that is used
> to log into the Server.
>
> I have a question here , since i added the CSV data config in the thread
> group i understand that the values from the CSV file will be split into
> variables "a" and "b" (defined in the CSV data config) , now what should i
> do in the sampler to make it use these variables.
> Please guide me.
>
>
> Thanks
> Jatin
>
> Deepak Shetty wrote:
>
>> hi
>> if the data is tied to the user (e.g. the user's email address) then it
>> must
>> be the same CSV data set config (each column representing a data item).
>> If the data is independent (e.g. the string the user enters into a search
>> box) then you could have it as separate or different CSV data config
>> element.
>> If the relation is 1 to Many (1 user searches for multiple strings) then
>> you'd probably have separate CSV data set configs
>>
>>
>> regards
>> deepak
>>
>> On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey <ja...@cisco.com> wrote:
>>
>>
>>
>>> On similar lines i too have a requirement as below:
>>>
>>> 1. Each thread logs into my server with different username and password
>>> 2. Within thread group there are samplers that require to take some value
>>> from the file for the user logged into my server using the step 1
>>>
>>> So do i need to have to seperate CSV files and CSV data config elements ,
>>> one for thread group and one for the samplers.
>>> Please explain.
>>>
>>> Thanks
>>> Jatin
>>>
>>>
>>> Deepak Shetty wrote:
>>>
>>>
>>>
>>>> hi
>>>> Each row should correspond to the data per user so in your case
>>>> user1,pass1,otherdata
>>>> user2,pass2,otherdata
>>>> user3,pass3,otherdata
>>>> user4,pass4,otherdata
>>>>
>>>> The variable names are defined in the CSV data set config
>>>>  in most cases you should be able to put the CSV data set config as a
>>>> child
>>>> of the threadgroup .
>>>>
>>>> regards
>>>> deepak
>>>>
>>>> On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> New to jMeter and I'm running into what's likely a very-rookie
>>>>> question.
>>>>>  I'm
>>>>> creating CSV Data Set Config to set up 5 usernames and passwords.  My
>>>>> question is regarding the structure of my txt file.  Do you establish
>>>>> the
>>>>> variables similar to javascript (or whatever language):
>>>>>
>>>>> var USER {username1, username2, username3, username4, username5}
>>>>>
>>>>> Or am I overthinking this a little?
>>>>>
>>>>> Also, in the jmeter test plan heirarchy, is there a specific place I
>>>>> need
>>>>> to
>>>>> create the CSV Data Set Config entry?
>>>>>
>>>>> Best,
>>>>>
>>>>> -Alan
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>>
>>>>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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
>>>
>>>
>>>
>>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: CSV Data Set Config Question

Posted by Jatin Davey <ja...@cisco.com>.
Ok , i have defined a csv file where i have mentioned the user name and 
passwords. Also as mentioned earlier by you to split them into variables 
using the CSV data config element. This also is done. As per my 
understanding now i would be having the user name and password into 2 
variables that i need to use in the post request of the sampler that is 
used to log into the Server.

I have a question here , since i added the CSV data config in the thread 
group i understand that the values from the CSV file will be split into 
variables "a" and "b" (defined in the CSV data config) , now what should 
i do in the sampler to make it use these variables.
Please guide me.

Thanks
Jatin

Deepak Shetty wrote:
> hi
> if the data is tied to the user (e.g. the user's email address) then it must
> be the same CSV data set config (each column representing a data item).
> If the data is independent (e.g. the string the user enters into a search
> box) then you could have it as separate or different CSV data config
> element.
> If the relation is 1 to Many (1 user searches for multiple strings) then
> you'd probably have separate CSV data set configs
>
>
> regards
> deepak
>
> On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey <ja...@cisco.com> wrote:
>
>   
>> On similar lines i too have a requirement as below:
>>
>> 1. Each thread logs into my server with different username and password
>> 2. Within thread group there are samplers that require to take some value
>> from the file for the user logged into my server using the step 1
>>
>> So do i need to have to seperate CSV files and CSV data config elements ,
>> one for thread group and one for the samplers.
>> Please explain.
>>
>> Thanks
>> Jatin
>>
>>
>> Deepak Shetty wrote:
>>
>>     
>>> hi
>>> Each row should correspond to the data per user so in your case
>>> user1,pass1,otherdata
>>> user2,pass2,otherdata
>>> user3,pass3,otherdata
>>> user4,pass4,otherdata
>>>
>>> The variable names are defined in the CSV data set config
>>>  in most cases you should be able to put the CSV data set config as a
>>> child
>>> of the threadgroup .
>>>
>>> regards
>>> deepak
>>>
>>> On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com> wrote:
>>>
>>>
>>>
>>>       
>>>> New to jMeter and I'm running into what's likely a very-rookie question.
>>>>  I'm
>>>> creating CSV Data Set Config to set up 5 usernames and passwords.  My
>>>> question is regarding the structure of my txt file.  Do you establish the
>>>> variables similar to javascript (or whatever language):
>>>>
>>>> var USER {username1, username2, username3, username4, username5}
>>>>
>>>> Or am I overthinking this a little?
>>>>
>>>> Also, in the jmeter test plan heirarchy, is there a specific place I need
>>>> to
>>>> create the CSV Data Set Config entry?
>>>>
>>>> Best,
>>>>
>>>> -Alan
>>>> --
>>>> View this message in context:
>>>>
>>>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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
>>
>>
>>     
>
>   

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


Re: CSV Data Set Config Question

Posted by Deepak Shetty <sh...@gmail.com>.
hi
if the data is tied to the user (e.g. the user's email address) then it must
be the same CSV data set config (each column representing a data item).
If the data is independent (e.g. the string the user enters into a search
box) then you could have it as separate or different CSV data config
element.
If the relation is 1 to Many (1 user searches for multiple strings) then
you'd probably have separate CSV data set configs


regards
deepak

On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey <ja...@cisco.com> wrote:

> On similar lines i too have a requirement as below:
>
> 1. Each thread logs into my server with different username and password
> 2. Within thread group there are samplers that require to take some value
> from the file for the user logged into my server using the step 1
>
> So do i need to have to seperate CSV files and CSV data config elements ,
> one for thread group and one for the samplers.
> Please explain.
>
> Thanks
> Jatin
>
>
> Deepak Shetty wrote:
>
>> hi
>> Each row should correspond to the data per user so in your case
>> user1,pass1,otherdata
>> user2,pass2,otherdata
>> user3,pass3,otherdata
>> user4,pass4,otherdata
>>
>> The variable names are defined in the CSV data set config
>>  in most cases you should be able to put the CSV data set config as a
>> child
>> of the threadgroup .
>>
>> regards
>> deepak
>>
>> On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com> wrote:
>>
>>
>>
>>> New to jMeter and I'm running into what's likely a very-rookie question.
>>>  I'm
>>> creating CSV Data Set Config to set up 5 usernames and passwords.  My
>>> question is regarding the structure of my txt file.  Do you establish the
>>> variables similar to javascript (or whatever language):
>>>
>>> var USER {username1, username2, username3, username4, username5}
>>>
>>> Or am I overthinking this a little?
>>>
>>> Also, in the jmeter test plan heirarchy, is there a specific place I need
>>> to
>>> create the CSV Data Set Config entry?
>>>
>>> Best,
>>>
>>> -Alan
>>> --
>>> View this message in context:
>>>
>>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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: CSV Data Set Config Question

Posted by Jatin Davey <ja...@cisco.com>.
On similar lines i too have a requirement as below:

1. Each thread logs into my server with different username and password
2. Within thread group there are samplers that require to take some 
value from the file for the user logged into my server using the step 1

So do i need to have to seperate CSV files and CSV data config elements 
, one for thread group and one for the samplers.
Please explain.

Thanks
Jatin

Deepak Shetty wrote:
> hi
> Each row should correspond to the data per user so in your case
> user1,pass1,otherdata
> user2,pass2,otherdata
> user3,pass3,otherdata
> user4,pass4,otherdata
>
> The variable names are defined in the CSV data set config
>  in most cases you should be able to put the CSV data set config as a child
> of the threadgroup .
>
> regards
> deepak
>
> On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com> wrote:
>
>   
>> New to jMeter and I'm running into what's likely a very-rookie question.
>>  I'm
>> creating CSV Data Set Config to set up 5 usernames and passwords.  My
>> question is regarding the structure of my txt file.  Do you establish the
>> variables similar to javascript (or whatever language):
>>
>> var USER {username1, username2, username3, username4, username5}
>>
>> Or am I overthinking this a little?
>>
>> Also, in the jmeter test plan heirarchy, is there a specific place I need
>> to
>> create the CSV Data Set Config entry?
>>
>> Best,
>>
>> -Alan
>> --
>> View this message in context:
>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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: CSV Data Set Config Question

Posted by Deepak Shetty <sh...@gmail.com>.
hi
Each row should correspond to the data per user so in your case
user1,pass1,otherdata
user2,pass2,otherdata
user3,pass3,otherdata
user4,pass4,otherdata

The variable names are defined in the CSV data set config
 in most cases you should be able to put the CSV data set config as a child
of the threadgroup .

regards
deepak

On Tue, Oct 13, 2009 at 2:30 PM, arubin41 <al...@yahoo.com> wrote:

>
> New to jMeter and I'm running into what's likely a very-rookie question.
>  I'm
> creating CSV Data Set Config to set up 5 usernames and passwords.  My
> question is regarding the structure of my txt file.  Do you establish the
> variables similar to javascript (or whatever language):
>
> var USER {username1, username2, username3, username4, username5}
>
> Or am I overthinking this a little?
>
> Also, in the jmeter test plan heirarchy, is there a specific place I need
> to
> create the CSV Data Set Config entry?
>
> Best,
>
> -Alan
> --
> View this message in context:
> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.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
>
>