TestData - Delete item

Tricentis Test Automation for SAP Test Data Service enables you to delete items from your database.

To delete an item, use the Module TestData - Delete item.

In case security is enabled, the functionality described on this page may be restricted depending on the user groups you belong to. To set your access rights, contact your Administrator.

This Module is part of the Standard subset. You can find it under Standard modules->Test Data Management->Test Data Service.

Alternatively, you can delete items in the Test Data Management as described in chapter "Delete items".

Example 

The following example shows how to find and delete the item car from your database. To do so, follow the steps below: 

  1. Complete the steps as described in see chapter "The prerequisite steps for TestData Modules".
  2. Create a new TestCase and drag and drop the Module TestData - Find & provide item onto the TestCase. Tricentis Test Automation for SAP automatically creates a TestStep called TestData - Find & provide item with the XTestStepValues Existing TDS type, Alias name (item), and Data search filter.

  1. In the TestStep TestData - Find & provide item, enter car as the Existing TDS type. If you leave the Alias name (item) XTestStepValue blank, Tricentis Test Automation for SAP uses the Value of Existing TDS type.

    The example below shows that the search is for a item with the dateofmanufacture XTestStepValue between the years of 2010 to 2015 and with the make XTestStepValue VW.

Find a item of the type car

  1. Drag and drop the Module TestData - Delete item onto the same TestCase.

  2. Tricentis Test Automation for SAP automatically creates a TestStep called TestData - Delete item with the XTestStepValue Existing alias name (item).

  3. Enter car as the Value for Existing alias name (item).

    Since you left the XTestStepValue Alias name (item) blank in the previous step, Tricentis Test Automation for SAP automatically uses the XTestStepValue Existing TDS type car to refer to the item to delete.

Delete the found item

When you run the TestCase, the TestStep TestData - Find & provide item finds the item car in your database. The TestStep TestData - Delete item deletes it.