To add checkpoints on public properties of the component, you add a small description of the property to the component description in the custom class definitions XML file (TEAFlexCustom.xml). You also add a getter for those public properties.
For the openChildrenCount property of the RandomWalk component to appear in checkpoints, add the following element as a child of the <Properties> tag:
<Property Name="openChildrenCount" ForVerification="true" ForDefaultVerification="true">
<Type VariantType="Integer"/>
<Description>Number of children open currently.</Description>
</Property>
When you use a checkpoint operation with a RandomWalk component, QTP displays the openChildrenCount property in the Checkpoint dialog box.
Also, add the following getter method to the RandomWalk class:
public function get openChildrenCount():int {
return numAutomationChildren;
}
The numAutomationChildren property is inherited from the UIComponent class.