to a target connection to return a test environment to a required state.
A reset task moves data in a
data pack
to a target connection. You can configure settings in a reset task based on the data required in the test environment.
For example, a test environment contains test data related to specific test cases. After you run a few test cases, the data gets corrupted. You might want to replace the corrupt test data entirely. You might want to work on specific test cases that require some of the data. You might want to run a different set of test cases that requires different test data. You can configure the reset task to replace the corrupt test data with a copy of the same test data. You can use row-level tags as criteria to choose and replace select records from the
data pack
. You can choose to delete the data in the target and copy the
data pack
to the target.
Based on how you configure the reset task, TDM performs one of the following tasks during a reset:
Upsert. Updates all records that exist in both the
data pack
and the target. Inserts all records that exist in the
data pack
and not in the target.
Upsert for filtered records from the
data pack
. Updates filtered records that exist in both the
data pack
and the target. Inserts filtered records that exist in the
data pack
and not in the target. You enter reset criteria to filter records.
Reset with truncate tables. Deletes all data in the target and copies the
data pack
to the target. TDM disables constraints and indexes during this task.
Reset with truncate tables for filtered records from the
data pack
. Deletes all records in the target and copies the filtered records from the
data pack
to the target. TDM disables constraints and indexes during this task. You enter reset criteria to filter records.
If you use filters to reset specific data that you require, you can run a job to view related data before you run the reset task. Use the row-level tags that you want to use as reset criteria. The job computes the data that matches the criteria. You can view the data that the workflow includes for a specific criteria. You can then edit the criteria if needed to reset data that meets test data requirements.