Iteration Node

The Iteration Node is a group node designed to loop over a collection of data (an array or the properties of an object). For each item in the collection, it executes its child nodes.

This is extremely useful for data-driven testing, such as verifying the details of every item in a list returned from an API.

Configuration

  • type: The source of the data to iterate over.
    • INLINE: The data is provided as a JSON string directly in the node.
    • EXPRESSION: The data is sourced dynamically via a JSONata expression that should resolve to an array or object (e.g., response.body.users).
  • value: The inline string or JSONata expression providing the data.
  • contextKey: The name of the context variable where the current item of the iteration will be stored. Inside the loop, you can access it as {{context.itemName}}.
  • breakCondition: A JSONata expression. If it evaluates to true for any item, the iteration will stop.
  • delay: An optional delay in milliseconds to wait between each iteration.