Hyperfoil

conditional

Passes the data to nested processor if the condition holds. Note that the condition may be evaluated multiple times and therefore any nested processors should not change the results of the condition.

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.
processor Processor.Builder One or more processors that should be invoked if the condition holds.
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.

Property Type Description
equalTo int Compared variable must be equal to this value.
fromVar Object Variable name.
greaterOrEqualTo int Compared variable must be greater or equal to this value.
greaterThan int 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 int Compared variable must be lower or equal to this value.
lessThan int Compared variable must be lower than this value.
notEqualTo int 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.

Property Type Description
equalTo int Compared variable must be equal to this value.
fromVar Object Variable name.
greaterOrEqualTo int Compared variable must be greater or equal to this value.
greaterThan int 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 int Compared variable must be lower or equal to this value.
lessThan int Compared variable must be lower than this value.
notEqualTo int Compared variable must not be equal to this value.

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 int Compared variable must be equal to this value.
greaterOrEqualTo int Compared variable must be greater or equal to this value.
greaterThan int Compared variable must be greater than this value.
lessOrEqualTo int Compared variable must be lower or equal to this value.
lessThan int Compared variable must be lower than this value.
notEqualTo int Compared variable must not be equal to this value.