Contexts

Stoobly Contexts

Contexts are considered an advanced feature so please go through our Getting Started guides first.

What is a Stoobly Context?

A context is collection of requests and scenarios.

Default Context

The default context is automatically generated and set when you run stoobly-agent for the first time. Contexts are maintained by the hidden directories named .stoobly . For supported OSs the default context's data will be in the user's home directory e.g. ~ or $HOME for unix systems.

Why have different Contexts?

Separation of APIs

A context contains scenarios which are used to group requests for a user workflow. As more scenarios are created, they may become more and more loosely related. To differentiate the scenarios of various APIs, it is recommended to consider separating them with a new context. Recommended separation strategies:

  • One context per API service

  • One context per application

Collaboration

Sharing contexts can be useful to show collaborators all the data for an API instead of manually exporting specific requests and scenarios and having them import each one. Instead you can share the entire context and quickly onboard teammates.

Last updated