After you have created a
data correlation rule set, you can recorrelate data in tests.
Before you begin
Record a test, and create a data correlation rule set.
Procedure
- Open a test for editing. To recorrelate data in tests that
are not open in the editor, select multiple tests in the Test Navigator window.
- To recorrelate a test that is open in the test editor,
click . To recorrelate
multiple tests, right-click the selected tests in the Test
Navigator window, and then select Apply data
correlation rules. The Data
Correlation and Transformation window opens.
- Select Do rule-based data correlation.
- Optional: To remove data correlation from the
test data, select Clear existing data correlation. Select Do automatic data correlation to
recorrelate the test data by 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.
- 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
test data is recorrelated.
Results
If you recorrelate test data in multiple tests that are not
open in the test editor, the original tests are backed up. The backup
copies are displayed in the list in the
Test Navigator window. To restore the original version of the test, right-click
the backup copy in the
Test Navigator window,
and then select
Restore test.