Skip to main content

The DataBus

The DataBus is a key-value store that holds all data during test execution. Think of it as a shared memory where blocks can read and write data using named slots.

Writing to the DataBus

Blocks write their output to named slots using the output field:
After this block executes, the DataBus contains:

Reading from the DataBus

Use ${} syntax to read from slots:
You can access nested properties using dot notation:

Variable Resolution

The DataBus resolves variables when blocks execute:

Resolution Order

Variables are resolved from multiple sources in this priority:
  1. Environment - From .env file (accessed via ${env.VARIABLE})
  2. Context - Defined in the test file
  3. DataBus - From previous blocks

Data Transformation

Data can be transformed as it flows:
DataBus state after each block:
1

After HttpRequest

2

After JsonParser

3

After ValidateContent

Context Variables

Define reusable variables in context:

Environment Variables

Reference environment variables:
.env

Debugging Data Flow

Enable debug logging to see data flow:
You’ll see:

Best Practices

Next Steps

Input Formats

Learn different ways to pass data to blocks

Output Formats

Learn how blocks can output data