Example of a Test Object Configuration File

The following example shows the definition of the ToolStrip test object:

<ClassInfo Name="System.Windows.Forms.ToolStrip" aseClassInfoName="SwfToolBar" FilterLevel="1">
    <TypeInfo>
        <Operation Name="Select" PropertyType="Method ExposureLevel="CommonUsed" SortLevel="-1">
            <Description>Selects a menu item from a SwfToolBar dropdown menu.
            </Description>
            <Argument Name="Item" Direction="In" IsMandatory="true">
                <Type VariantType="VT_BSTR"/>
            </Argument>
        </Operation>
        <Operation Name="IsItemEnabled" PropertyType="Method" ExposureLevel="Expert" SortLevel="-1">
            <Description>Indicates whether the toolbar item is enabled.</Description>
            <Argument Name="Item" Direction="In" IsMandatory="true">
                <Type VariantType="VT_BSTR"/>
            </Argument>
            <ReturnValueType><Type VariantType="VT_BOOL"/></ReturnValueType>
        </Operation>
        <Operation Name="ItemExists" PropertyType="Method" ExposureLevel="Expert" SortLevel="-1">
            <Description>Indicates whether the specified toolbar item exists.</Description>
            <Argument Name="Item" Direction="In" IsMandatory="true"> 
                <Type VariantType="VT_BSTR"/>
            </Argument>
            <ReturnValueType> <Type VariantType="VT_BOOL"/></ReturnValueType>
        </Operation>
    </TypeInfo>
</ClassInfo>

This example shows that the ToolStrip test object class extends the SwfToolBar test object class. The default test object method for the ToolStrip test object class is Select (which has one mandatory input parameter: Item).