Thursday, July 18, 2013

Correlation studio in Loadrunner

Why do we need Correlation Studio?

Creating of correlation studio will be useful when there are multiple scripts to be recorded (more than 2/3) on same or similar application. Bulding correlation studio just for script is a waste of time.

How do we do it?

Record first script normally without any correlation and do all correlations maually and import that vugen before recording the remaining scripts. So that the remaining all scripts will be auto correlated when they are recorded.

Detailed step by step decription


Step 1: Record first script and identify all the required correlation patterns like variable, its left boundary abd right boundary.
Step 2: Go to Recording Options in vugen, HTTP Properties> Correlation and uncheck all the exsisting patterns.

Step 3: Click on New Application button

Step 4: Click on New Rule and enter Variable name, Lift boundary, Right boundary and Where to search that pattern in the response.

Action->Where to search for the pattern
Left boundary-> Left boundary of the variable that you want to correlate
Right boundary-> Right boundary of the variable that you want to correlate
Parameter Prefix-> Variable name(not mandatory)
Step 5: In the Same way you can add multiple rules as required.
Step 6: After completion of adding all the rules Click on Export button

Check the required Applications and again Click on Export.

You can give the name as you like and save it. File will be of extention *.cor
Now the correlation studio is created successfully.

How to use the correlation studio?

Go to Vugen> Recording options > HTTP Properties> Correlation
Click on Import button

And import the saved *.cor file (In our case it is Trail.cor)

Click on Ok button, Start recording your script and you will notice all predefined patterns are correlated automatically.

1 comment: