Monday, September 16, 2013

Parameterization in Jmeter

Perameterization:

If user need to run the script with multiple input parameters we can use the concept called perameterization.

How to work with this using Jmeter:

step1: Record script using the Jmeter tool.
Step2: Identify your parameterzaion values in the request
Step 3: Add CSV Data Conf Set to your post request.
Step4 Click on CSV DataSet (See Below Image)

Filename:
It describes from where you need to upload your parameter file. Location path of CSV file.

File Encoding:
It describes text format

Variable Names:
It talks about your parameters. Place your test parameters with the saparation of comma. (From CSV file i have taken first row values as parameter1, parameter2)

Delemiter:
We saparated parameters with comma

After checking of all the data we need to substistute our parameter values into current HTTP Post request: (Check below screen shot)


The format for substistuting parameters as like below:

Original value when recorded at first time:

pramenter value

After sustistute with parameter value:

${parameter value1}
${parameter value2}


If you need any more clarification on the same please mail me your queries to vennelacnu@gmail.com






 

No comments:

Post a Comment