GetDataRelation Method
Description
Returns the data resource asset relation directly associated with this object.
Syntax
Visual Basic
Public Function GetDataRelation( _
   ByVal OwnerType As String _
) As Object
Parameters
OwnerType

One of: TEST or TEST_CONFIGS

If the implementing object is a Test, this argument is ignored and the method returns the AssetRelation object that associates the Test with its data resource.

If the implementing object is a TestConfig, and this argument is TEST, the method returns the AssetRelation object that associates the test configuration's parent Test with its data resource.

If the implementing object is a TestConfig, and this argument is TEST_CONFIGS, the method returns the AssetRelation object that associates the test configuration with its data resource.

Return Type
An AssetRelation reference.
Remarks

The data directly associated with this object is not necessarily the active data that will be the source of the parameter values at run time. This method returns the directly associated data even if not active. To get the active data, use GetActiveDataRelation.

For example, if this object is a TestConfig, the active data may be the data associated with the parent Test. In this case, if OwnerType is TEST_CONFIGS, this method returns the data directly associated with the test configuration, and not the active Test data.

See Also