Chain requests in a test suite

Build a suite of ordered steps, run it and read the result.

In short

A test suite runs saved requests in order, as cases, so a later case can use a value an earlier one read - sign in, create an order, then check it. Each case can have its own parameters, checks, retries and timing. The result says which case broke and why.

Before you start

Steps

  1. Open "Test" with a project selected - it opens on "Suites" - and press "New suite". Give it a "Name"; "First steps (optional)" lets you tick saved requests now. With no suite yet, "Use a template" starts from a ready one.
  2. Press "Add steps", tick saved requests in the order they should run, and add them as steps.
  3. Open a step to set its parameters, expectations and timing.
  4. Choose an environment for the run, or leave each step on its own default, and press "Run suite".

Result: the head line shows passed, failed and skipped cases and the total time; each case lists its checks, with the actual value when one failed.

Cases and parameters

A step starts as a copy of a saved request. Parameters add query values for this step only, and a method or body override changes what is sent, so one request can appear several times with different parameters. A saved request's "Used in suites" tab adds it to a suite with "Add to a suite".

Run a suite

Cases run in order, and a failed case is retried as configured before it counts as failed. A suite can also run once for each row of a data set (/help/api-testing/variables#data-sets), on two environments side by side (/help/api-testing/variables#compare-environments), or from your pipeline (/help/api-testing/run-in-a-pipeline). A step can wait up to 60 seconds for a webhook to reach a project's webhook inbox (/help/api-testing/quality-view#webhook-inbox).

Read the result

If something goes wrong

Related