You can create data correlation
rules to link references to substitutions.
About this task
If you know which field in a request or in POST data must
be correlated, write a
Create a substitution rule
for that field, and then insert a
Create a reference rule
as a child of the
Create a substitution rule.
Example
Assume that a URI in your test is http://host:port/RPThelp/index.jsp?topic=datacorrelation.html.
Assume that some of the response data from a previous request includes
...<id=2
docHelpName=recordtest> <id=23 docHelpName=datacorrelation> <id=24
docHelpName=rules>.... Write a rule that creates a
substitution site in the URI for
datacorrelation and
sets the substitution name to
helpname. Then,
add rules that create a reference as a child of the substitution rule.
The regular expression for the reference rule is
docHelpName=%helpname%>.
Thus, the regular expression in the reference rule evaluates to
docHelpName=datacorrelation>.
This regular expression ensures that the correct reference is linked
to the substitution site.