Skip to content

Variables Reference

Catalyst substitutes variables in any string using {{name}}. Environment variables use ${{NAME}}.

Sources

  • CLI: --var key=value,token=$TOKEN
  • Stored values: store = { "$.path" = "var" }
  • Cookies: get_cookie = { "cookieName" = "var" }
  • Environment: ${{ENV_NAME}} in strings
  • Automatic:
    • response_time_ms: set after each test
    • header_<name>: response headers (lowercased), e.g. {{header_content-type}}

Usage

toml
endpoint = "/users/{{user_id}}"
headers = { "Authorization" = "Bearer {{token}}" }
body = { "content" = "{{file:data/payload.txt}}" }