base » assertVarsPresent(vars)
Description
This command asserts that all the specified data variables (denoted as vars) exist in the current execution. This list
of data variable names is separated by nexial.textDelim.
Notes:
varsrepresent a list of data variable names, not their respective values (i.e. not${...}).- this command supersedes its predecessor, base »
assertVarNotPresent(var), since it supports both single data variable and multiple data variable checks.
Parameters
- vars - a list of data variable names to assert, separated
by
nexial.textDelim.
Example
Now, multiple “is-variable-exist” assertions, like this:
_03.png)
… can be simplified into this:
_01.png)
The execution output will detail the data variables that do not exist during execution:
_02.png)