Plan a retry test
Separate a failed response from a safe repeat and inspect your client’s resulting actions.
Explore the worked specificationAPI fault injection · Simulate API errors
Find out what happens when a dependency stops cooperating. Simulate API errors, rate limits and response delays, and see how your application handles the interruption.
14-day Pro trial. Runs on Docker Compose in your environment. See pricing
Return a configured failure response when you need to exercise the recovery branch of your client.
Add controlled latency and inspect the timeout, loading state or fallback your application actually uses.
Test API retry logic with your existing tests: check retry limits and effects rather than assuming a later request is safe.
Recovery is application behavior
A slow response can expose a frozen loading state. A 503 can reveal a missing fallback. Put those conditions within reach while your application is still under development.
Start from a preset or tune a rule for one endpoint. Your own tests decide whether the recovery is good enough.
Chaos testing
Chaos testing asks what your application does when something it depends on fails. Gostly runs that experiment where your service meets the APIs it calls. Return errors on a share of requests, slow the answers down, or switch on an intermittent outage: stretches of normal responses broken by short bursts of failures.
Each fault is a rule you set for a service or for one endpoint, so the same experiment runs on a laptop and in CI. This covers the API responses your code receives. Faults in your own instances, containers and network belong to infrastructure chaos tools.
Illustrative: sixteen calls, one short burst of failures
Resilience testing
Resilience testing checks the client side of an API call: the retry, the timeout and the fallback. Serve a 503, a rate limit with Retry-After or a slow response, then assert what your code did next: how often it retried, when it gave up and what the user saw.
Fault tolerance testing is the same exercise with a pass mark. Under the failure you chose, the workflow still finishes, or it fails in the way you designed. Your tests hold that mark, and Gostly supplies the failure on demand.
Illustrative: one call, retried twice
Your client or test harness decides when and whether to retry. A configured error or Retry-After value does not establish that repeating a mutation is safe.
Chaos configuration applies in MOCK and PASSTHROUGH, with selectable modes and endpoint overrides. An injected error can answer before normal response selection; it need not read a recording first.
Use it for supported response errors, latency and configured API conditions. Network packet loss, your application internals and every possible production failure are separate testing boundaries.
Every new account starts a 14-day Pro trial automatically, with no credit card required. A subscription is required after the trial.
Resources
Separate a failed response from a safe repeat and inspect your client’s resulting actions.
Explore the worked specificationFind a supported starting condition for errors, latency and rate-limit behavior.
Browse the presetsReview service rules, endpoint overrides and configuration details for your selected case.
Read configuration detailsChoose one failure your application needs to handle. Run it with your own caller and inspect the response and the resulting effect.