if control not 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 not exists	車両を見る	利用可能な車	
	&nbsp		
exit test module			
	&nbsp		
else			
	&nbsp		
	window	menu	item
select menu item	車両を見る	[ta class=menu bar, role=menu bar]	ファイル->注文を見る
	&nbsp		
end if			
	&nbsp		
	window		
check window exists	注文を見る		
                                
                            
  • 指定されたコントロールが見つかった場合、最初に else, else if, end if が出現するまで、次のアクションラインのブロックが実行されます。それ以外の場合、そのブロックはスキップされます。
  • アクション if control exists は、実質的にはビルトインアクション does control existif を組み合わせ、適切に構築された if の条件と共に動作します。

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