check native property

コントロールのネイティブプロパティの値を期待値と照らし合わせます。
名前説明タイプ修飾子
window

ウィンドウのTA名です。

Interface Entityなし
control

コントロールのTA名です。

Interface Elementなし
property

コントロールのネイティブプロパティです。

Stringなし
expected

プロパティの期待値です。

Stringなし
結果は、値が一致する場合は「Passed」になり、それ以外の場合は「Failed」になります。
このアクションは、次のプロジェクト項目で使用できます: テストモジュールおよびユーザー定義アクションです。
このアクションは、次のコントロールに適用できます: button, check box, checklist, clock, combo box, datetime, frame, label, list box, list view, menu, password, picture box, progress bar, radio button, rating bar, richtext, scroll bar, separator, spin, status bar, tab control, table, text box, toggle button, toolbar, trackbar, tree view, window and calendar.
                                
                                    	window	control	property	expected
check native property	main	button test	FontSize	12
check native property	main	button test	FontFamily	Times New Roman
                                
                            
  • TestArchitect はネイティブプロパティにアクセスできる一方で、非常に注意して使用する必要があります。なぜなら、ネイティブプロパティへのアクセスは、AUT内で重要な或いは安全でない操作を実行する可能性があり、AUTの現在の状態を変更するかもしれないからです。
  • 引数 property: ネイティブプロパティは、インターフェイスビューアネイティブプロパティタブで見つけることができます。
  • 引数 expected は正規表現を受け入れることができます。正規表現を含む引数の値は、必ず中括弧 {} で完全に囲まれている必要があります。例えば、{[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}} は許容されるなメールアドレスのパターンを指定しています。簡単に言うと、.* は正規表現の一般的なワイルドカードを表し、{.*arch.*}starch, marching, testarchitect などに一致します。
  • このアクションは <ignore> 修飾子をサポートしています。引数のいずれかの値として文字列 <ignore> が含まれているか、或いはどの引数かが <ignore> に評価される式を含んでいる場合、そのアクションは実行中にスキップされます。

Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400