jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: HELP - Passing PArameters
Date Thu, 14 Dec 2006 11:07:54 GMT
You might find the CSV Data Set Config easier to use:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config

It's also better if you have a large CSV file as it does not store the
entire contents of the file in memory.


On 14/12/06, mahesh kumar <pmkumar@gmail.com> wrote:
> Hi DK,
> For passing values like user name and password use user parameter file.
>
> This is the solution for u r problem:
> 1. go to options->function  Helper Dialog
> 2. Choose a function----CSV Read
> 3. Then create one csv file(Ex: login.csv) in JMETER bin folder.That file
> contains first coloum as username and second coloum password.
> 4. In function parameters,function name is csv file name and coloum number
> is 0;
> 5. Then click on Generate button.then it will genrate one
> function(${__CSVRead(login.csv,0)}) copy this function.
> 6. Then add userparamer(Add->preprocessor->userparameter) to the thread
> group.
> 7. click on add variable.In parameters list enter name filed(Ex:Username)
> and corresponding User_1 paste the function(${__CSVRead(login.csv,0)})
> 8. and add one more variable name as password and function name as
> (${__CSVRead(login.csv,1)}.
> 9.And add onemore variable name as next and function as ${__CSVRead(
> login.csv,next)}
> 10. then use these anmes into the script.
> Go to u r script and instead of username(ex: john) place ${Username} and
> instead of password(ex:@lt456) place ${password}
>
> For every iteration it will take the value from the file and place those
> values in to the corresponding user name and password.Try this one i think
> this will solve u r problem.
>
> -------Mahesh
>
>
> On 12/12/06, asn_dileep <asn_dileep@yahoo.co.in> wrote:
> >
> >
> > HI,
> >
> > How do I pass paramaters for HTTP request. Ex: I've created one HTTP
> > request. I need to pass parameters to that request(Like, different user
> > logins) before going to Run -> Start the testcase. Could any one suggerst
> > me
> > on this ?
> >
> > Thanks in advance..
> >
> > Rgds,
> > DK
> > --
> > View this message in context:
> > http://www.nabble.com/HELP---Passing-PArameters-tf2805462.html#a7827246
> > 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


Mime
View raw message