variable

abstract fun <V : Serializable> variable(variable: Variable<out V>): VariableDelegateFactory<V>

Declares a scenario Variable and returns a read-only property delegate that provides its value.

Implementations typically associate the variable with the name of the delegated property and resolve its value from the runtime-provided variable map, falling back to Variable.default when no override is provided.

Return

a property delegate providing the resolved variable value.

Parameters

variable

the variable definition.