TestData - Update item

Tricentis Test Automation for SAP Test Data Service enables you to update items in your database.

To do so, use the Module TestData - Update 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.

Example

The following example shows how to update an item in your database. In this case, you have to retrieve the item from the TDS database first and then perform an update on it. To do so, follow the steps below: 

  1. Complete the steps as described in see chapter "The prerequisite steps for TestData Modules".

  1. Create a new TestCase and drag and drop the Module TestData - Find & provide item onto the TestCase Sample TestCase Using TDS (see chapter "Create TestSteps from Modules").

  2. Test Automation for SAP automatically creates a new TestStep with the XTestStepValues Existing TDS type, Alias name (item) and Data search filter. Enter car as the Value for Existing TDS type.

    If you leave Alias name (item) blank, Test Automation for SAP automatically uses the Value of Existing TDS type.

Find an item of the type car.

  1. Drag and drop the Module TestData - Update item onto the TestCase Sample TestCase Using TDS. Test Automation for SAP automatically creates a new TestStep with the XTestStepValues Existing TDS type and Data structure.

  2. In the new TestStep, populate your XTestStepValues:

    • Enter car as the value for Existing alias name (item). This is the name of the item that was found in the previous TestStep.

    • You can update this item in the Data structure XTestStepValue: Define a new attribute or edit the existing one. The screenshot below shows that the model XTestStepValue is defined by Golf in the Value column.

TestData - Update item

When you execute your TestCase, Tricentis Test Automation for SAP finds the item in the first TestStep with the type car and updates the XTestStepValue model with the value Golf of the item car in the second TestStep.