1

Closed

Only "SubsetOf" (and not "Contain" or "EquivalentTo") supports comparaison of members based on another instance

description

To compare members of two different instance, you can use this kind of test:
<test name="Members of department bellow 'Corporate' are in a subset of themselves" uid="0001">
        <system-under-test>
            <members children-of="Corporate">
                <hierarchy caption="Departments" dimension="Department" perspective="Adventure Works"/>
            </members>
        </system-under-test>
        <assert>
            <subsetOf>
                <members children-of="Corporate" >
                    <hierarchy caption="Departments" dimension="Department" perspective="Adventure Works"
                        connectionString="Provider=MSOLAP.4;Data Source=(local)\SQL2012;Initial Catalog='Adventure Works DW 2012';localeidentifier=1033"
                    />
                </members>
            </subsetOf>
        </assert>
    </test>
But it doesn't work with contain and equivalentTo.
Closed Jul 26, 2015 at 12:23 PM by Seddryck
Released in v1.10

comments