Citrus has the
variable() method in various Citrus classes, which creates a new, Citrus specific test variable. See the Citrus documentation.
To make these calls blend better into the surrounding Java code, code folding (disabled by default) is available that collapses these calls into Java-style local variable definitions.
The folding happens only when the name of the variable can be evaluated (i.e. not set via a method call like
variable(getName(), "value")). The value part of the folded variable is always the text of the value argument because various types of values can be passed in.
This code folding is disabled by default, and can be enabled in