background image
<< Supplying Variable Data Values to an HTTP Script | Providing the Name of an Oracle Database >>
<< Supplying Variable Data Values to an HTTP Script | Providing the Name of an Oracle Database >>

Correlate variables in response

Setting Script Generation Options
6-29
¾
In an arbitrarily named field of the HTTP header.
¾
In an arbitrarily 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.
3. At
Correlate variables in response
Correlate variables in response
Correlate variables in response
Correlate variables in response
, select one of the following:
a
All
All
All
All
­ All variables are correlated. You should generally select this option.
Select another option only if you encounter problems when you play back
the script.
b
Specific
Specific
Specific
Specific
­ Only the variables that you select are correlated.
c
None
None
None
None
­ No variables are correlated.
If you select
All
All
All
All
or
Specific
Specific
Specific
Specific
, your generated VU or VB scripts contain the function
http_find_values
. This function finds the value of items that the server returns
and the user does not change. It then correlates these values and places them in a
system-defined variable in the form
SgenRes_00n
.
Examine the script to determine whether the proper values are correlated. If you
want fewer values to be correlated, change the
Correlate variables in response
Correlate variables in response
Correlate variables in response
Correlate variables in response
option
to
Specific
Specific
Specific
Specific
, and then use the
Add
Add
Add
Add
and
Remove
Remove
Remove
Remove
buttons to select only the names that
you want to correlate.
For example, assume you enter data in a form during recording, and the form has a
field that you cannot modify--for example,
UNITED STATES
. In the generated
script, the
http_response
emulation command shows the form as follows:
"<form name = \...
...
"\t<input type=\"hidden\" name=\"Country\" value=\"UNITED
STATES\">\r\n