Critters
A critter is a persona, such as Admin, Viewer or Anonymous. Each one has its own:
- variables and secrets
- context: values its requests captured
- cookie jar and OAuth2 tokens
- login flow (optional)
- flows
Ctrl+B opens Critters.
name: Adminspecies: armadillonotes: Full access on staginglogin: login # flow to run after a 401variables: - name: user value: admin@example.com - name: password secret: trueThe folder name (admin) is the critter’s id. Ids use letters, digits, - and _.
Species: roadrunner, tortoise, gecko, elf-owl, armadillo, scorpion, jackalope, tumbleweed.
Sending as a critter
Section titled “Sending as a critter”Pick one in the sidebar’s critter picker. While a critter is selected, requests:
- use its variables, secrets and context
- save captures to its context only
- use its cookie jar
cactus-cli send . users/delete-user.yml --as viewercactus-cli run . admin --as adminRe-login
Section titled “Re-login”If a request sent as a critter gets 401 and the critter has a login flow, cactus runs that flow and resends the request once. Requests inside the login flow don’t trigger this.
name: Loginsteps: - request: auth/login.ymlContext
Section titled “Context”The critter’s page lists captured values, where each came from and when. They can be edited or cleared there.
Context, secrets, cookies and tokens are stored in .cactus/critters/<id>/. Duplicating a critter copies critter.yml and its flows, not those files.