Record a regression suite

Turn a Browser Sync recording into a suite that replays what you did, in order.

In short

Browser Sync records the API calls a site makes while you use it. The recording can become a regression suite. It holds the requests in the order they happened, with values carried from one to the next and checks from what was recorded. It is ready to run after every change.

Before you start

Steps

  1. Open a project, press the arrow beside "New request" and choose "Record a website…". On a project with no requests, press "Import…" and choose "Record a website". The "Sync a website" window opens.
  2. Record live with the {{brand}} browser extension. Type the site's address under "Website and API origins", press "Start recording", then use the site as a person would: sign in, create something, read it back. No site at hand? Press "Try a sample recording" and go on to step 4.
  3. Press "Stop & review" to end the recording and read what it caught.
  4. Press "Create suite from this session".
  5. Check the name and where it goes, and untick any request you do not want. Open a request's details to see its headers, body, what it keeps and what it checks.
  6. Press "Create suite". Nothing saves before that.
  7. Press "Open the suite" and run it.

Result: a suite whose requests sit in the project like any others. It stops at its first failure.

What becomes a variable

Secrets are never recorded

The recording never captures passwords, tokens or other credentials. A recording keeps only the names of credential headers, never their values, and the draft lists each secret the suite needs by name under "Secrets to fill in". Fill them in on the suite's environment - "Open environments" takes you there. The sample's practice sign-in is public, so it is filled in for you.

Good to know

If something goes wrong

Related