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 <jasho...@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 <jasho...@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 <alanrubi...@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-unsubscr...@jakarta.apache.org >>>>> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org >>> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org >>> >>> >>> >>> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > >