set global variable

Assign a value to an existing global variable.
NameDescriptionTypeModifier
variable

An existing global 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.
Action lines
        
        	name	value
global variable	a	5
        
    
        
        	name	value
local variable	a	100
&nbsp		
	variable	value
set global variable	a	20
&nbsp		
	value	expected
check value	# getglobal("a")	20
        
    
Result
  • To create a global variable, use the action global variable.
  • A global variable is visible throughout all test modules and invoked actions within one test run execution, subsequent to its declaration.
  • Use variables within pound sign (#) expressions to access their contained values.

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