Skip to content

How do I simulate "Enter" action along with data entry

This example demonstrates initialize a variable.

In the solution shown below, you will see that the age of a person is stored into a variable "age" using "store" command.

Solution:

# Command Target Value
Initializting the variable "age" with "45"
1 store
45 age

Tips, Tricks, Gotchas & Best Practices:

  • You can reuse the value of the variable using the notation ${<variable name>}.
  • To know more about how to print the value of the variables stored, click here.
  • To understand more about the best practices of initializing a variable, click here.
  • The value for the variables can also be driven from a Data-file, System Defined Variable or User Defined Variable. To know more about the best practices of driving data into the tests, click here. 

Feedback and Knowledge Base