Load Runner Correlation

223 views
Skip to first unread message

sarah...@gmail.com

unread,
Feb 16, 2017, 5:37:26 PM2/16/17
to LoadRunner
Hi

I'm a beginner for load runner VuGen.  Can someone please answer my basic questions?

1.  I'm using SnapShot to correlate dynamic values, do we use "Recording Response Body" or "Replay Response Body" to create correlation?
2.  Under "Recording Response Body" if I right click the dynamic value, I've two option (Create Parameter and Create Correlation), what's the difference?(They both create same function, why two options then)
3.  If I've 3 web_custom_requests with same dynamic value, where do I put the correlation function?
4.  What does the following statement mean "We have to identify the dynamic value and capture it from the response of previous request. "


Thanks in Advance!

Rajesh Kuchana

unread,
Feb 17, 2017, 2:46:48 PM2/17/17
to LoadRunner
HI Sarah,

1.You can put Correlation Function above web_url () .OR you can put starting of the script,i suggest put above web_url() function.
2.In Snapshot search with dynamic value and only take what ever found in first search in response body then use that particular Correlation,here parameterization is different and correlation is difference.
3.Correlation : Means replacing dynamic value by a parameter.In Correlation handling Dynamic Data generated by Server side(Ex: Session ID)
4. Parameterization : Running Test Scripts with Multiple Set of Test Data. 
4th point is nothing but if you click at Web_url() it will display some request and response details in snapshot ,same like if you click at web_custom_request() function it will display some request and response body in snapshot but you will find dynamic value at web_url() function or web_submit_data( ) function,so your previous request is web_url() and response is web_submit_data() function.

I have given as per some knowledge and experience. 
You can read more at Loadrunner Tutorials

Mark T

unread,
Feb 17, 2017, 2:46:48 PM2/17/17
to LoadRunner
LoadRunner Protocol assumed in this discussion is Web/HTTP

1). I start with the Recording Response Body, and use the Replay when it does not capture correctly. Data response starts to change when you start correlating properly. If it still does not capture correctly, turn on the logs to show everything.

2). A parameter becomes a constant value in that case, the correlation allows you to capture dynamic values into a parameter. In both cases, the parameter can be used elsewhere in the script.
3). In the first instance of the web_custom_request, or web_url, or web_* always.

4). That statement is the summation of what correlation is - a dynamic value (ie. customer id number) that is asserted in one of the steps and used in subsequent steps. For instance, you search for a customer using first and last name with DOB, the system responds with several customers that match, you pick one, and in the subsequent calls you use the customer id for your web_custom_requests to get additional information displayed. You would correlate for that customer id, to use in the following calls.

There are several good web sites that explain correlation, try the Google Search Term LoadRunner Correlation Tutorial.

The biggest strength in loadrunner is the correlation function, you really can't just record and playback. Then once you get the scripting mastered, focus on the Analysis tool to interpret the run results; that is where your value will come out.

Narasimha Adabala

unread,
Feb 17, 2017, 2:46:51 PM2/17/17
to LoadRunner
Hi,

First you identify that one is dynamic value or not.

Could you please share your script


On Friday, February 17, 2017 at 4:07:26 AM UTC+5:30, sarah...@gmail.com wrote:

Madhu

unread,
Feb 17, 2017, 2:46:51 PM2/17/17
to LR-Loa...@googlegroups.com
Hi, 
You need to first understand the concept of parameterization and correlation,   both are different each has its own significance and purpose, answer can be given but it will not solve your problem on a long run,  since you would be facing issues like these as you continue working on script designing. 

You can use recording response body for correlation.. 

Regarding your question 3 you have to capture dynamic value at 1st occurrence which is at 1st request. 

Thanks, 
Madhu. 

--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunner+unsubscribe@googlegroups.com.
To post to this group, send email to LR-Loa...@googlegroups.com.
Visit this group at https://groups.google.com/group/LR-LoadRunner.
To view this discussion on the web visit https://groups.google.com/d/msgid/LR-LoadRunner/54d10fef-ee9c-4e53-b2a6-665db85f1b63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages