Documentation Index
Fetch the complete documentation index at: https://docs.testsprite.com/llms.txt
Use this file to discover all available pages before exploring further.

Three Rerun Surfaces
API testing supports three rerun paths:| Surface | What it does | When to use |
|---|---|---|
| Single test rerun | Re-execute one test | Confirm a fix on a specific failing test |
| Rerun all (batch) | Re-execute every test in the project | After API change, dep upgrade, or environment update |
| Scheduled rerun | Auto-run on cadence (Pro Schedule slot) | Continuous monitoring of API health |
Auto-Heal does not apply to API testing. Auto-Heal is exclusive to UI tests because UIs drift in ways HTTP APIs don’t. The corresponding Pro feature for backend testing is Auto-Auth — keeping tokens fresh across long-running schedules.
Single Test Rerun
From a test’s detail page, click Rerun. A confirmation dialog opens with one important toggle: Skip dependencies.
What “Skip dependencies” means
Most API tests in TestSprite have upstream dependencies — variables they consume from earlier tests in a chain. A normal rerun re-runs the producers first, getting fresh captures, then runs the consumer.
When to skip dependencies
| Scenario | Skip? |
|---|---|
| Refining one test’s assertion, the upstream is fine | Skip — saves 30s, costs 0 credits more |
| Quick iteration loop on a failing consumer | Skip — fast feedback |
| Confirming the same data path still works | Skip — re-execution against cached state is meaningful |
| After cleanup ran (the captured records are gone) | Don’t skip — captured IDs no longer valid |
| After a long delay where the captured values may have expired | Don’t skip — captures might be stale |
| You changed something upstream and want to verify the chain | Don’t skip — you need fresh producer state |
Rerun All (Batch)
From the project test list, the Rerun all button at the top right re-executes every test in the project. The Skip-dependencies toggle applies project-wide:
| Setting | What happens |
|---|---|
| Skip off | Every chain runs from scratch — fresh user records, fresh orders, fresh sessions |
| Skip on | Producers are skipped where their captures from the previous run are still valid; consumers run alone |
Scheduled Reruns
Schedules run on a cadence (daily, weekly, cron expression). For API projects, scheduled reruns:
- Run with Skip dependencies = OFF by default (every chain rebuilds)
- Use Auto-Auth when configured (token-refresh during the run)
- Trigger Auto Cleanup after the run (so each scheduled run leaves a clean environment)
What Happens to Cleanup on Rerun
Every Rerun (single, batch, or scheduled) triggers Auto Cleanup at the end. The DELETE chains rebuild from the captured records of the rerun, not the previous run. If Skip dependencies was ON and a producer didn’t run, the captures from before are still tracked — and cleanup will delete those records. So even Skip-dependencies reruns leave a clean environment.Cascading: Rerun a Producer = Rerun Its Consumers
If you rerun a producer test (one that captures variables consumed downstream), the rerun automatically cascades to consumers. They’re re-executed with the producer’s fresh captured values. This means:- Reruning POST /users (a producer) → automatically reruns POST /orders, GET /orders/, DELETE /orders/
- Rerunning DELETE /orders/ (a leaf consumer) → only that test reruns; its upstream stays as-is
Rerun Outcomes
After a rerun, the test row updates with the new outcome. The previous run’s data is preserved for Comparing Runs — you can diff “before rerun” against “after rerun” to see exactly what changed.| Outcome on rerun | What it means | What you do |
|---|---|---|
| Was Failed → now Passed | Your fix worked, or the flake resolved | Move on |
| Was Passed → now Failed | Regression; either your fix broke something else, or the API changed | Investigate via test detail page |
| Still Failed (same error) | Fix didn’t take | Refine more, or rerun with Skip dependencies for fast iteration |
| Still Failed (different error) | You fixed one bug and uncovered another | Tackle the new error |
Free vs Paid
| Free | Paid | |
|---|---|---|
| Single test rerun | ||
| Skip dependencies toggle | ||
| Rerun all (batch) | ||
| Scheduled reruns | Schedule slots | |
| Auto-Auth on rerun |
Edge Cases & Troubleshooting
I rerun with Skip deps and the test says 'Variable not found'
I rerun with Skip deps and the test says 'Variable not found'
The cached values from the previous run are no longer usable — typically because Cleanup already wiped the records, or enough time has passed that the values are stale. Rerun without Skip dependencies (uncheck the box) to recreate the upstream resources.
Rerun cascade goes deep — too many tests rerun
Rerun cascade goes deep — too many tests rerun
The producer you reran has many downstream consumers across multiple chains. If you only want to re-execute one specific consumer, click into that test directly and rerun it (with Skip deps if its captures are still valid).
A test takes very long to rerun
A test takes very long to rerun
The test depends on producers that themselves depend on upstream tests. A deep chain means reruns of leaf tests can take several minutes. Use Skip deps if the chain state is intact.
Rerun shows a different result than the same code did the first time
Rerun shows a different result than the same code did the first time
Three causes:
- Real flake in the API (intermittent issue at your end)
- Captured state changed (a record was modified between runs)
- Auth token expired between runs (use Auto-Auth)
The rerun button is disabled
The rerun button is disabled
Where to Go Next
Dependency Chains
Understand cascade order
Auto-Auth (Pro)
Token refresh keeps reruns alive
Comparing Runs
Diff before/after a rerun
Schedule Monitoring
Set up automated reruns on a cadence