transaction.matrix

Summary

A matrix allows running the same transaction with different variables. Different combinations of the variables will be generated and the transaction will be ran with all of them. The order in which they are generated is not guaranteed.

Examples

The below will send four different requests in four different transactions.

id: transaction
matrix:
  api_url:
    - "http://localhost:8080"
    - "https://jsonplaceholder.typicode.com"
  todo_id:
    - 1
    - 2
steps:
  - id: todos-1
    request:
      method: GET
      endpoint: "{{ var.api_url }}/todos/{{ var.todo_id }}"

the different transactions and requests:

Didn't find what you were looking for?

You can head over to our FAQ page