step » validate(prompt,responses,passResponses)
Description
This command provides manual validation. Nexial will pause the current execution and display a prompt on the
console, from which can provide the appropriate response as validation. The responses parameter is a comma-separated
list of possible responses, and passResponses parameter presents a list of comma-separated responses that will be
considered as PASS. If user provides a response that match one of the passResponses, then the corresponding test
step is considered as PASS. Otherwise, Nexial will consider the corresponding step as FAIL.
The screenshot below is an example that shows the prompt and a set of possible responses:
_01.png)
Parameters
- prompt - The prompt to the intended validation
- responses - Comma-separated list of possible responses
- passResponses - Comma-separated list of “PASS” responses. Note that these responses must be found in
responsesas well. If user’s response does not match one of thesepassResponses, the command is considered as FAIL
Example
Script:
_02.png)
Output:
_03.png)