Nexial Automation

Test Automation Platform for everyone!

X

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:

  • vars represent 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:

… can be simplified into this:

The execution output will detail the data variables that do not exist during execution:

See Also