Skip to main content

Prompting for Variables

Feature Files can be written to prompt the user for a value and then store the entered value in a variable. In the image below, the Step will prompt the user for a value to store in a new variable named lodnum with a pop-up box asking, “What load number should be loaded?”

Then I prompt "What load number should be loaded?" and assign user response to variable "lodnum"

User prompt

Prompt Steps include integers and strings:

Then I prompt "< PROMPT >"and assign user response to variable "< VARIABLE_NAME >" Then I prompt "< PROMPT >"for integer and assign user response to variable "< VARIABLE_NAME >"