modal close attempts

ビルトインアクション on modal action の呼び出しで指定のアクションハンドラの最大再試行回数を指定します。
デフォルト値: 5回

シナリオ: AUT が投げるかもしれない例外を処理したいため、予期せぬモーダル ダイアログが実行中に表示された場合に、アクション モーダル ハンドラー ダイアログを呼び出すように指定します。 モーダル ハンドラー ダイアログが3回連続で成功しない場合、それ以上呼び出されないように制限します。

  1. モーダルダイアログボックスが不意に表示されたときに、ビルトインアクション capture screen を使用して、現在の状態のスクリーンショットをキャプチャします。
  2. モーダルダイアログボックスが表示された場合、TA は Continue ボタンをクリックしてダイアログボックスを通過する。TA が Continue ボタンを見つけられない場合、TAはそのモーダルダイアログボックスを閉じます。
    注意: 
    アクションハンドラが一度目に実行できなかった場合、3回リトライを試みます。

        
        	action		
on modal action	modal dialog handler		
&nbsp			
	setting	value	
setting	modal close attempts	3	
&nbsp			
	program		
start program	# AUT path		
&nbsp			
	window	control	value
enter	new window	main textbox	TestArchitect
        
    
  • アクションハンドラが <modal close attempts> 回呼び出されたにもかかわらず、すべてのケースで不要なモーダルダイアログボックスの削除に失敗した場合、TA は次のようなメッセージとともにオートメーションエラーを返します:
    アクションライン on modal action で指定のアクション <アクションハンドラの名前> は、<指定の再試行回数> 回試行した後、予期しないモーダルダイアログボックスをディスパッチできませんでした。

Copyright © 2025 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