Hyperfoil

fail

Fail the phase with given message. Used mostly for testing/debugging.

Inline definition
Message to fail with (unconditionally).
Property Type Description
allConditions Builder Condition combining multiple other conditions with ‘AND’ logic.
boolCondition Builder Condition comparing boolean variables.
intCondition Builder Condition comparing integer variables.
message String Message attached to the failure exception.
stringCondition Builder Condition comparing string variables.

allConditions

Test more conditions and combine the results using AND logic.

Property Type Description
<list of mappings> <list of builders> List of conditions.

allConditions.<list of mappings>

Selector for condition type.

Property Type Description
allConditions Builder Condition combining multiple other conditions with ‘AND’ logic.
boolCondition Builder Condition comparing boolean variables.
intCondition Builder Condition comparing integer variables.
stringCondition Builder Condition comparing string variables.

allConditions.<list of mappings>.allConditions

Test more conditions and combine the results using AND logic.

Property Type Description
<list of mappings> <list of builders> List of conditions.

allConditions.<list of mappings>.boolCondition

Tests session variable containing boolean value.

Property Type Description
fromVar String Variable name.
value boolean Expected value.

allConditions.<list of mappings>.intCondition

Condition comparing integer in session variable.

| Inline definition | | ——– | | Parses condition in the form <variable> <operator> <value> where operator is one of: ==, !=, <> (the same as !=), >=, >, <=, <. |

Property Type Description
equalTo Builder Compared variable must be equal to this value.
fromVar Object Variable name.
greaterOrEqualTo Builder Compared variable must be greater or equal to this value.
greaterThan Builder Compared variable must be greater than this value.
isSet boolean Check if the value is set or unset. By default the variable must be set.
lessOrEqualTo Builder Compared variable must be lower or equal to this value.
lessThan Builder Compared variable must be lower than this value.
notEqualTo Builder Compared variable must not be equal to this value.

allConditions.<list of mappings>.stringCondition

Condition comparing string in session variable.

Property Type Description
caseSensitive boolean True if the case must match, false if the check is case-insensitive.
endsWith CharSequence Suffix for the string.
equalTo CharSequence Literal value the string should match (the same as {@link #value}).
fromVar Object Variable name.
isSet boolean Check if the value is set or unset. By default the variable must be set.
length int Check the length of the string.
length (alternative) Builder Check the length of the string.
matchVar String Fetch the value from a variable.
negate boolean Invert the logic of this condition. Defaults to false.
notEqualTo CharSequence Value that the string must not match.
startsWith CharSequence Prefix for the string.
value CharSequence Literal value the string should match.

boolCondition

Tests session variable containing boolean value.

Property Type Description
fromVar String Variable name.
value boolean Expected value.

intCondition

Condition comparing integer in session variable.

| Inline definition | | ——– | | Parses condition in the form <variable> <operator> <value> where operator is one of: ==, !=, <> (the same as !=), >=, >, <=, <. |

Property Type Description
equalTo Builder Compared variable must be equal to this value.
fromVar Object Variable name.
greaterOrEqualTo Builder Compared variable must be greater or equal to this value.
greaterThan Builder Compared variable must be greater than this value.
isSet boolean Check if the value is set or unset. By default the variable must be set.
lessOrEqualTo Builder Compared variable must be lower or equal to this value.
lessThan Builder Compared variable must be lower than this value.
notEqualTo Builder Compared variable must not be equal to this value.

intCondition.equalTo

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

intCondition.greaterOrEqualTo

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

intCondition.greaterThan

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

intCondition.lessOrEqualTo

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

intCondition.lessThan

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

intCondition.notEqualTo

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

stringCondition

Condition comparing string in session variable.

Property Type Description
caseSensitive boolean True if the case must match, false if the check is case-insensitive.
endsWith CharSequence Suffix for the string.
equalTo CharSequence Literal value the string should match (the same as {@link #value}).
fromVar Object Variable name.
isSet boolean Check if the value is set or unset. By default the variable must be set.
length int Check the length of the string.
length (alternative) Builder Check the length of the string.
matchVar String Fetch the value from a variable.
negate boolean Invert the logic of this condition. Defaults to false.
notEqualTo CharSequence Value that the string must not match.
startsWith CharSequence Prefix for the string.
value CharSequence Literal value the string should match.

stringCondition.length

Property Type Description
equalTo Builder Compared variable must be equal to this value.
greaterOrEqualTo Builder Compared variable must be greater or equal to this value.
greaterThan Builder Compared variable must be greater than this value.
lessOrEqualTo Builder Compared variable must be lower or equal to this value.
lessThan Builder Compared variable must be lower than this value.
notEqualTo Builder Compared variable must not be equal to this value.

stringCondition.length.equalTo

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

stringCondition.length.greaterOrEqualTo

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

stringCondition.length.greaterThan

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

stringCondition.length.lessOrEqualTo

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

stringCondition.length.lessThan

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).

stringCondition.length.notEqualTo

Inline definition
Uses the argument as a constant value.
Property Type Description
fromVar String Input variable name.
value int Value (integer).
Close

Search results for "":