set variable

既存のローカル変数またはグローバル変数に値を割り当てます。変数が宣言されていない場合は、新しいグローバルを宣言し、それに値を割り当てます。
名前説明タイプ修飾子
variable

変数の名前です。

Stringなし
value

変数に割り当てる値です。

Stringなし
なし
このアクションは、次のプロジェクト項目で使用できます: テストモジュールおよびユーザー定義アクションです。
次の設定はこのアクションに適用可能です:  remove double quotes from cells.
                                
                                    	name	value
local variable	s	LogiGear
&nbsp		
	variable	value
set variable	s	TestArchitect
&nbsp		
	value	expected
check value	# s	TestArchitect
                                
                            
  • 指定した変数名の複数のインスタンスが存在する場合、アクション set variable が実行されると、その変数名のうち現在表示されているものに対して操作が行われます(可視性とスコープについて詳しくは Variables を参照してください)。特定の変数名のグローバルインスタンスにアクセスするために(もし存在すれば)、アクション set global variable を使用してください。
  • 変数の値にアクセスするために、(#)式内で変数を使用してください。

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