set variable

Assign a value to an existing local or global variable. If the variable has not been declared, declare a new global variable and assign a value to it.
NameDescriptionTypeModifier
variable

Name of the variable.

StringNone
value

Value to assign to the variable.

StringNone
None
This action may be used within the following project items: test modules and user-defined actions.
The following settings are applicable to this action: 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
                                
                            
  • In the event that multiple instances of a given variable name exist at the time set variable executes, the action operates on the one that is currently visible (See Variables for more on visibility and scope). To ensure that the global instance of a given variable name is accessed (assuming it exists), use the set global variable action.
  • Use variables within pound sign (#) expressions to access their contained values.

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