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
Using values from the test data repository |
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:
-
The TestCase Design attribute to be linked to a TestStep value must have the property TDM with the value True see chapter "Work with Attributes".
TestCase templates and Reusable TestStepBlocks:
-
Test data management in TestCase-Design must be enabled (see chapter "Enable TestDataManagement integration").
-
The TestCase template must be linked to the data source (see chapter "Assigning test data to templates").
-
The option Replace XL References with TDM Expressions must be enabled.
-
The TestCase-Design attribute to be linked to the TestStepValue must have the property TDM with the value True (see chapter "Work with Attributes").
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 |