Skip to content

How to use test dependencies

Length 5:34. Captions are available in the player. Open the video file

What this video covers

This guide wires one checkout test to a secret, a mocked payment service, a tunnel, a browser fleet and a dataset. It shows the injected variables, the run preparation and where each dependency is used.

  1. Add the API key as a secret dependency.
  2. Add a virtual service in place of the payment provider.
  3. Connect a tunnel to the app on your laptop and add it.
  4. Add a browser fleet and bind a dataset on the Data tab.
  5. Read the injected environment variables in the script.
  6. Start the run and watch the dependencies being prepared.
  7. Check Used by before you change a dependency.