if control exists

指定されたコントロールが存在する場合にのみ実行されるアクションラインを開始します。
名前説明タイプ修飾子
window

ウィンドウのTA名です。

Interface Entityなし
control

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

Interface Elementなし
なし
このアクションは、次のプロジェクト項目で使用できます: テストモジュールおよびユーザー定義アクションです。
このアクションは、次のコントロールに適用できます: 全てのコントロールです。
                                
                                    start application			
	&nbsp		
	username	password	
login	alex	ta	
	&nbsp		
	window	control	
click	ようこそ	注文を見る	
	&nbsp		
	window	control	
if control exists	注文を見る	ホーム	
	&nbsp		
	window	control	
click	注文を見る	ホーム	
	&nbsp		
else			
	&nbsp		
	window	menu	item
select menu item	注文を見る	メインメニュー	ファイル->閉じる
	&nbsp		
end if			
	&nbsp		
	window		
check window exists	ようこそ		
                                
                            
  • 指定されたコントロールが見つかった場合、最初に else, else if, または end if が出現するまで、次のアクションラインのブロックが実行されます。それ以外の場合、そのブロックはスキップされます。
  • アクション if control exists は、実際にはビルトインアクション does control existif を組み合わせたものと言えます。

Copyright © 2023 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(800) 322-0333