What is correlation? Explain the difference between
automatic correlation and manual correlation?

Answer Posted / smita

Correlation is where the script is modified so that some of
the hard-coded values in the script are no longer
hard-coded. Rather then sending the original value to the
server, we may need to send different values.
For example, the original recorded script may have included
the server sending the client a session identification
number, something to identify the client during that
particular session. This Session ID was hard-coded into the
script during recording.
During replay, the server will send the client a new Session
ID. You need to capture this value, and incorporate it into
the script so you can send it back to the server to
correctly identify yourself for this new session. If you
leave the script unmodified, you will send the old
hard-coded Session ID to the server. The server will look
at it and think it invalid or unknown, and so will not send
the pages that have been requested. Replaying a script with
an old Session ID will not successfully fool the server into
believing it is a client.
Correlation is the capturing of dynamic values passed from
the server to the client and back. You save this captured
value into a parameter, and then use this parameter in the
script in place of the original value. During replay, the
replay engine will now listen to what the server sends to
it, and when it makes requests of the server, send this new,
valid value back to the server; thus fooling the server into
believing it is talking to a real client.
Steps to Perform Manual Correlation

1.Record two copies of the script with the same business
process and data:
2.Record a script on the desired business process and save it.
3.Record another copy of the script, repeating all the steps
as in step 1a. As much as possible, during recording, enter
the same values in both scripts, for example, user ID,
password, and fields and edit selections.
4.Identify the values to correlate with the help of the
WinDiff tool:
5.From the second script, go to Tools  Compare with Vuser,
and choose the first recorded script.
6.WinDiff will open and display the two scripts side by
side. It will automatically highlight the lines with
differences in them, showing the differences in red. (If
not, go to Options  View  Show inline differences.)
Tips: Error: "File no longer available." launching WinDiff
7.Locate the first difference, take note of it, and search
the script open in VuGen for that difference. That is the
original value hard-coded into the script that was different
in the second script. Highlight it and copy it.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You have an application which shows the exam results of the student. Corresponding to name of each student its mentioned whether he passed or failed the exam with the label of “pass” and “fail”. How will you identify the number of passed and failed student in vugen script?

945


How will you handle the situation in scripting where for your mailbox you have to select any one mail randomly to read?

889


How can we develop the database vuser script?

788


How can correlation be performed?

783


How will you stop the execution of a script on error?

868


What are all the important protocols that load runner supports?

717


When you initialize the vuser what happen?

896


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?

812


What are the information contain by script windows for each script in the list?

879


If we want to know the size of each component in system how?

1687


What the host attributes determine?

825


How are concurrent users differing from simultaneous users?

761


when i run start senario for different process it always completed at elapsed time 6.32 sec. i don't understand why it happens.. can we set elapsed time ? plz answer.... pratik196@gmail.com

1813


What kind of problem can we face regarding hardware, software, network and memory bottleneck during the performance test?

875


What is the difference between web_reg_find and web_find?

1099