Docs
API 1.39
Status
Actions

set_vars

The `set_vars` step.

Sets variables from templates, as a map of variable name to template; each is readable later as {{vars.<name>}}.

Type: map of string

Every step also takes the common step keys: expect, id, if, name, on_error, optional, retry, side_effect, timeout_ms, x_kaab.

#Example

{
  "set_vars": {
    "first_price": "{{vars.prices[0]}}"
  }
}

From the contract fixture capture-response, a program the test suite validates.

Was this page helpful?