Adobe Flex 3 ヘルプ

チェックポイントの追加

コンポーネントのパブリックプロパティにチェックポイントを追加するには、カスタムクラス定義 XML ファイル(TEAFlexCustom.xml)のコンポーネントの定義にプロパティの記述を少し追加します。また、これらのパブリックプロパティの getter も追加します。

RandomWalk コンポーネントの openChildrenCount プロパティがチェックポイントに表示されるようにするには、次のエレメントを <Properties> タグの子として追加します。

<Property Name="openChildrenCount" ForVerification="true" ForDefaultVerification="true">
    <Type VariantType="Integer"/>
    <Description>Number of children open currently.</Description>
</Property>

RandomWalk コンポーネントでチェックポイント操作を使用すると、QTP のチェックポイントダイアログボックスに openChildrenCount プロパティが表示されます。

さらに、次の getter メソッドを RandomWalk クラスに追加します。

public function get openChildrenCount():int { 
    return numAutomationChildren;
}

numAutomationChildren プロパティは、UIComponent クラスから継承されます。

 

このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート