Use repository values

Values from the TDM repository are read by using attribute names along with the following dynamic expression.

Syntax:

{TDM[<Attributeidentification>]}

The following types are supported for identifying attributes:

Syntax:

<ObjectName>.<AttributeName>

<ObjectName>.<Association>.<AttributeName>

Associations can be nested. Attributes which are linked to a TDM object are used as references.

Using an attribute name:

{TDM[MyCustomer.CustomerData_FirstName]}

Using attributes of a link:

{TDM[MyCustomer.CheckingAccount.Type]}

You can also use the TD expression, depending on your configuration. Note that in case Tosca Test Data Service is not configured, a value is retrieved from Test Data Management. Use of the TD expression is not recommended as deprecated.

INPUT, VERIFY

The value of the TDM repository is used for inputs or verify operations.

BUFFER

The current value of a control used in the test object is saved to the TDM repository as the value of the referenced attribute. This action is similar to using the Module TDM Set Attribute. A buffer is not created in the Settings dialog.

The values are saved using the Module TDM Save.

Sample TestCase

  • In the first TestStep, a customer with the attributes CustomerData_Type with the value PrivateCustomer and the CustomerData_Rating with the value AA is searched for.

  • In the next TestStep, the found customer is accessed via the variable name MyCustomer. The value of the attribute CustomerData_CustomerNumber is read.

Using values from the test data repository

Releasing object locks

TDM objects which are locked for other users can be released by selecting the option Revert my TDM object locks from the context menu of an ExecutionList.

Creating TDM links using drag & drop

TDM links for using data from the TDM repository can be created by drag and drop as an alternative to manual entries. This requires a TestCase-Design attribute to be dragged onto the Value column of the corresponding TestStepValue.

This drag and drop procedure applies to TestCases, TestCase templates and Reusable TestStepBlocks.

The result of the drop operation is created according to the following syntax:

Syntax:

{TDM[MyInstance.<Attributeidentification>]}

MyInstance is the default variable for the ObjectName that is automatically assigned. This name must be changed manually if necessary.

There are different requirements for these drag and drop operations for TestCase templates or Reusable TestStepBlocks.

TestCases:

TestCase templates and Reusable TestStepBlocks:

Any existing XL links are converted into TDM links upon instantiation, provided that the same requirements are met.

The attribute CustomerNumber is dragged onto the TestStepValue CustomerNumber and dropped.

Dragging and dropping a TestCase-Design attribute

In the TestStepValue CustomerNumber, the link {TDM[MyCustomer.CustomerData_CustomerNumber]} is created.

TDM link - result