/
"SET_VAR" Command

"SET_VAR" Command

Description: This command creates a variable using the type: static, random, expression or pattern and stores it in the variable name.

Usage Scenario: Suppose we want to set a value for a password to be saved in a variable so we can use this password to register on Reference app.

Procedure: Define your step and use Static as Source Type with variable name “password”. Then enter your value or inject it using a data template. Your step will look like this:
Set_Var step:

image-20240610-155959.png

Fill step that uses the value from this variable:

image-20240610-155858.png

See the Test Library path: subject7_samples/subject7_intermediate_suite/subject7_website_registration_hardcoded

Related content

"DESKTOP_DYNAMIC_SCROLL" Command
"DESKTOP_DYNAMIC_SCROLL" Command
Read with this
"EXECUTE_JAVA" Command
"EXECUTE_JAVA" Command
More like this
"SET_GLOBAL_VAR" Command
"SET_GLOBAL_VAR" Command
Read with this
"EXECUTE_SELENESE" Command
"EXECUTE_SELENESE" Command
More like this
"IF" Command
"IF" Command
Read with this
"GET_REST_VALUE" Command
"GET_REST_VALUE" Command
More like this