After you have created a
data correlation rule set, you can record a test that uses those rules.
Before you begin
Create a data correlation rule set.
Procedure
- In the Performance Test perspective,
click the New Test From Recording toolbar button
or click .
- In the New Test From Recording wizard,
click Create a test from a new recording, select
the type of test to create, and click Next.
- On the Select Location page, select
the project and folder to create the test in, type a name for the
test, select Customize automatic data correlation,
and click Next.
- Continue recording a test. To learn more about recording
tests, see Creating tests. After
you have recorded the test, the Data Correlation window
opens.
- Select Do rule-based data correlation.
- Optional: Select Do automatic data
correlation to correlate the test data using the automatic
data correlation. You can control automatic data correlation
in the preferences. Click . Click HTTP Test Generation,
and then click the Data Correlation tab for
additional controls over automatic HTTP data correlation. For example,
when recording an HTTP test with data correlation rules, you might
select Automatically correlate host and port data, Automatically
correlate URL pathname if redirected by response, and Automatically
correlate Referers, and then clear Enable all
other data correlation.
- Click Add. The Rules
File Selection window opens.
- Expand the list of resources to locate the data correlation
rules file to add.
- Select the data correlation rules file to add, and then
click OK. Data correlation rules
files have the .dcrules extension by default. The rules file is added to the list under Rules Files.
- Optional: Click Add to
add more rules files. Use the Up and Down push
buttons to move rules files in the list. The data correlation rules
are applied in the order in which the files are listed.
- Click Finish. The
recorded test data is correlated.