background image
<< Playback of HTTP Scripts | TestManager can determine correlation items >>
<< Playback of HTTP Scripts | TestManager can determine correlation items >>
Variable Data Values in HTTP Scripts
Setting Recording Options
6-24
Selecting this option provides more accurate representation of keep-alive
behavior, but at a cost--if you loop scripts or play them back in a different
order, you will have to manually edit your scripts to achieve successful
playback.
Therefore, you should select this option only if:
You will not loop scripts or play them back in a different order (or, if you
do, you do not mind editing the scripts).
You want to preserve the browser's connection keep-alive behavior that
is in the recorded session.
For multiple script recordings it is best to not use keep-alives. This prevents you
from having to be aware of persistent HTTP connections that span script
boundaries when you loop or change script ordering. However, the default
behavior may result in increased HTTP server overhead due to the absence of
keep-alives.
Supplying Variable Data Values to an HTTP Script
Dynamic data correlation is a technique to supply variable data values to a script
when the transactions in a script depend on values supplied from the server.
When you record an HTTP script, the Web server may send back a unique string, or
session ID, to your browser. The next time your browser makes a request, it must
send back the same session ID to authenticate itself with the server.
The session ID can be stored in three places:
In the
Cookie
Cookie
Cookie
Cookie
field of the HTTP header.
In an arbitrarily named field of the HTTP header.
In an arbitrary hidden field in an actual HTML page.
TestManager finds the session IDs (and other correlated variables) and, when you
run the suite, automatically generates the proper script commands to extract their
actual values.
Before you record a script, you can tell TestManager to correlate all possible values
(the default), not to correlate any values, or to correlate only a specific list of variables
that you provide.
To specify the level of data correlation:
1. Click
Tools
Tools
Tools
Tools
>
Session Record Options
Session Record Options
Session Record Options
Session Record Options
.
2. Click the
Generator per protocol
Generator per protocol
Generator per protocol
Generator per protocol
tab.