What r the rules to apply to select correlated values in
project?(Chandana)

Answers were Sorted based on User's Feedback



What r the rules to apply to select correlated values in project?(Chandana)..

Answer / shivakumar

Hi chandana

correlation is very simple, it means to capture the dynamic
values which are sent from the server. rules in the sense,
this procedure we hve to follow for doing correlation in a
simple manner.

stepl:- generate the two scripts for the same actions;

2) then you hve to compare the two scripts by using wdiff
tool, it is a part of vugen component.

3)identify the dynamic values which are different from each
other like transaction id's and session id's etc.

4)copy the value which you would like to correlate and find
out in the script and go to tree view, check the value in
the server response. ctrl+f

5)by using this function
web_reg_save_param("parameter_name","LB='some
value'","RB='some value'","ord='number'","Last");

6)Enable the extended logs in the runtime settings(VUGen)
and click the parameter substitution.

7) compile and run...

8) check the values in the output window wheather it is
sucessfully or not. the line will be appeared in blue colour.

Is This Answer Correct ?    5 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / srinivas

To answer Naga first, i think what he wrote <may not be
meaning> about is Auto Correlation rules that are found in
Recording options at the last tab
<In case if it is being misunderstood; just to avoid
exploration in wrong direction>.

Assuming it to be normal correlation of dynamic values
sought by server, for session authentication and validation.

Here what you can try is, after recording, check for
recording / replay log<detailed>, where you can search
common data chunks between certain response and subsequent
request. IF there is something common, it means that value
which was returned in the respnse was expected ny the
server in consequent request.
>> Inferrence this peice was candidate for correlation.

Is This Answer Correct ?    3 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / rani

Correlation means capturing a dynamic value which is
generated from the server. you can clearly know these
values by seeing your script as they looks like a strange
values. After running the script in the extended log,You
can search the name of the value in the execution log and
find out the left and right boundary and include the
web_reg_save_param function in your script before the
dynamic value and then parameterize the dynamic value in
your script by deleting the dynamic value and give a name
enclosed in clurly braces to the dynamic value. Then run
your script. your script should pass if you mention correct
right and left boundaries.

Is This Answer Correct ?    1 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / gopi

if u wnat find Correlation values just record the script
twice and compare them from comparision u came to know what
are the dynamic values in ur script.other wise u can use
beyond compare s/w u can compare bothe of the scripts.

if u use .net(my application) based application these type
of dynamic values u will get
28. VsKey Correlation Path : web_reg_save_param
("vskey1","LB=__vsKey\" value=\"","RB=\"",LAST);
29. ViewState Correlation : web_reg_save_param
("viewstate1","LB=__VIEWSTATE\" value=\"","RB=\"",Last);
30. Event Validation Path : web_reg_save_param
("evehan1","LB=__EVENTVALIDATION\" value=\"","RB=\"",LAST);
31. Control ID path : web_reg_save_param
("ControlId","LB=ControlID=","RB=&",LAST);
32. Report Session ID : web_reg_save_param
("ReportSessionId","LB=ReportSession=","RB=&",LAST);
33. Session ID Path : web_reg_save_param
("SessionId","LB=Search in general log","RB=Search in
general log",LAST);

Is This Answer Correct ?    1 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / yugender

http://motevich.blogspot.com/ With using this URL, u have a
good clarity on correlation..

Is This Answer Correct ?    1 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / bhanu pratap singh

If you try to replay a script without correlating first,
then most likely the script will fail. The requests it
sends to the server will not be replied to. Either the
session ID is invalid, so the server won’t allow you into
the site, or it won’t allow you to create new records
because they are the same as existing ones, or the server
won’t understand your request because it isn’t what it is
expecting.



Any value which changes every time you connect to the
server is a candidate for correlation. A correlated script
will send the server the information it is looking for, and
so allow the script to replay. This will allow many Vusers
to replay the script many times, and so place load on your
server.

Is This Answer Correct ?    1 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / naga

Rules in the sense.Did not get your question..See
correlation comes into picture for dynamic values which are
returned from the server.. Common Dynamic values being
Session Id, Account number which is generated on filling a
bank account opening form, Transaction Id etc..

Is This Answer Correct ?    0 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / chandana

Thank u Mr Naga,

suppose i am testing a telecom domine project,so
how can i find the correlated values,

as my knowledge correlated value is nothing but a
uniq key elements right(witch is not duplicate)

Is This Answer Correct ?    0 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / naga

I believe Correlation is a hot and very important topic in
Load Runner which is asked in every Performance Testing
interview.

Srinivas I did not undertand what you are trying to anser
me. I have quoted the examples based on the work I do.
Generally we correlate the account number, trasaction id as
I am from a Banking Domain. Chandana wherther you are
working on a Telecom or from any background..it doesnt
matter Correlation is used for any dynamic data which is
sent from server.

Automatic correalation is not useful always there are some
dynamic values which automatic correlation can detect. For
this reason it is preferred to go with manual correlation
which Rani has explained.

For a better understanding you can check the following link
which has a very good explaination about correlation:

http://motevich.blogspot.com/2007/10/loadrunner-scripts-
correlation-tutorial.html

Is This Answer Correct ?    0 Yes 0 No

What r the rules to apply to select correlated values in project?(Chandana)..

Answer / bhanu pratap singh

http://www.allinterview.com/showanswers/56961.html With
using this URL, u have a
good clarity on correlation..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Load Runner Interview Questions

how can u capture the database counters?

4 Answers   Wipro,


i have 4 systems 1-windows,1-unix,1-linux,1-solaris. 100 vusers to 25 vusers each system. script was created in windows system. then i want to know how can i do this, do i need to install LR in all the systems ? please explain whole the scenario up to...Run step by step---plz give answer only realtime...?

5 Answers   HP,


how to add 100 for dynamic(correlate value) value

0 Answers   iGate,


Consider a business transaction, which is run in the LR tool (takes 2sec), but when run manually (takes 4sec). Please explain??

3 Answers   Keane India Ltd,


Hi, I am executing a scenario for 48 hours. My controller is on remote host, so I am using RDC. After some 24 hours my remote session got terminated as it is put idle for some time. When I tried to open the result file(As it is Auto Collated and saved in the results folder), it is giving error. Is there any way that I can see the results for which the remote session is terminated? Please help in resolving this.

1 Answers  






where do you save u r scripts in Load Runner?

2 Answers   TCS,


Which documet will gives us information about rampup and duration for each transaction? Technically speaking Which document gives us information about Transaction Mix?How do we prepare Transaction Mix?

0 Answers   Allianz,


How to insert think time While we record Vuser Script in LoadRunner?

2 Answers  


what are the type of recording modes available in LR? on what basis we will select each?

2 Answers  


What are different types of vuser logs which can be used while scripting and execution? What is the difference between these logs? When you disable logging?

0 Answers  


when a Load Runner controller fails?

1 Answers   Cognizant,


What is Latency in LoadRunner? What is Network Latency? could u explain in detail how to define this network Latency in LoadRunner? Thanks in Advance

5 Answers   EDS,


Categories