Test Case Tab - State Data

State Data stores test-case level values that can be reused in steps and assertions.

State Data listing

State Data tab listing in test case

From the State Data tab, you can view all key-value pairs attached to the current test case.

If no state values are assigned yet, use Add State Data to create them.

How to create state data

Create state data modal with key and value fields

You can create state data directly from the State Data tab.

  1. 1Open State Data tab and click Add State Data.
  2. 2Enter a key (for example stateKey) and value.
  3. 3Click Add Key to add more key-value rows in the same flow.
  4. 4Click Save State Data to persist the values.

Supported value patterns

State values can be static text or expressions.

The modal supports quick snippets like:

  • 10 digits
  • 10 letters
  • 10 alphanumeric
  • UUID
  • Timestamp (ms)
  • Today (DD/MM/YYYY)
  • Environment var
  • State var

Value references in steps

Use state data in step inputs with state expressions (for example {{state("keyName")}}).

You can combine state references with static text and other supported expressions where applicable.

Notes

  • Keep key names readable and consistent.
  • Use state data for case-specific values you want to reuse across multiple steps.
  • Use environment variables for environment-level values shared across many test cases.