The concept of relations between objects has only been implemented for SSAS (multidimensional) at the moment. It lets you validate that a dimension is linked to a measure-group or reciprocally that a measure-group is linked to a dimension. In the future we plan to do the same for tables in a SQL model (foreign keys).
For this kind of test, NBi proposes an assertion named linkedTo. To use it you must define a system-under-test with a structure of type dimension or measure-group.
When done, you’ll have to define your assertion as an xml elemened named linkedTo and specify in the xml attribute caption the measure-group or dimension that you’re expecting linked to the previous element. Note that inside this linkedTo element you don’t need to specify the perspective of the dimension or measure-group, this information will be inferred from the system-under-test.
Here under, you’ll find a sample for both elements (dimension linked to measure-group and measure-group linked to dimension).