Overview
Complex workflows often require multiple API calls: fetch a list of resources, pick random IDs, then retrieve or modify them. This guide shows you how to parse JSON responses and chain HTTP calls in a single Locust script.Locust Test Script (locust.py)
Notes:
- Install dependencies:
pip install locust
. - Adjust endpoint paths/names to suit your API schema.
- Use
self.client.headers.update(...)
for auth headers if needed.