Recording tests with data correlation rules

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

  1. In the Performance Test perspective, click the New Test From Recording toolbar button or click File > New > Test From Recording.
  2. 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.
  3. 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.
  4. Continue recording a test. After you have recorded the test, the Data Correlation window opens.
  5. Select Do rule-based data correlation.
  6. 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 Window > Preferences > Test > Test Generation. 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.
  7. Click Add. The Rules File Selection window opens.
  8. Expand the list of resources to locate the data correlation rules file to add.
  9. 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.
  10. 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.
  11. Click Finish. The recorded test data is correlated.
Feedback