background image
<< Variable Data Values in HTTP Scripts | TUXEDO Command IDs >>
<< Variable Data Values in HTTP Scripts | TUXEDO Command IDs >>
TestManager can determine correlation items
Setting Script Generation Options
6-25
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 have selected
All
All
All
All
or
Specific
Specific
Specific
Specific
, your generated VU script will 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 being 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 correlated.
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 will show the form as follows:
"<form name = \...
...
"\t<input type=\"hidden\" name=\"Country\" value=\"UNITED
STATES\">\r\n
TestManager can determine that this is an item for correlation, and adds an
http_find_values
function to your script. This function puts the
UNITED
STATES
value in a variable. Your script will also contain a line that looks like this
{
string SgenRes_002[];
SgenRes_002 = http_find_values("Country", HTTP_FORM_DATA, 1);
#if 0
<UNITED STATES>
#endif
}
If you do not want
UNITED STATES
to be correlated, choose
Specific
Specific
Specific
Specific
but do not
select the Country name from the list. You do not have to re-record the script; you
can simply regenerate it from the session.