Sample History
Sample History automatically saves test responses so you can revisit them later. This feature enables offline configuration, comparison between responses, and recovery from accidental data loss.
Overview
Every successful (2xx) endpoint test automatically saves a sample containing:
- Response data (the JSON body)
- Status code
- Response time
- Timestamp
- Test type (single, full collection, or iterate)
- Pagination info (if applicable)
Stopped tests (user-interrupted) are also saved to history as partial results with success: false, allowing you to inspect whatever data was collected before stopping.
Viewing Sample History
Location
Sample History opens as a popout from the endpoint test panel:
- Select an endpoint in the tree
- Click the History (clock) tool at the bottom of the test panel
- The history popout opens anchored to the bottom-right of the screen
Sample List
Each sample shows:
- Timestamp: When the test ran (relative time like "2m ago")
- Status indicator: Green/red bar showing success/failure
- Type badge: Single or Full (collection)
- Size: Response size in bytes/KB/MB
- Pagination info: Pages and items (for full collection)
Using Samples
Activating a Sample
Click any sample to make it active:
- Response data loads into the JSON viewer
- Dependency mappings can extract from this data
- Useful for configuring endpoints without live API access
The active sample shows a blue checkmark badge.
Comparing Samples
Switch between samples to compare:
- Different response structures over time
- Before/after API changes
- Full vs partial collection results
Deleting Samples
Hover over a sample and click the trash icon:
- Removes from history
- Cannot be undone
- If active sample is deleted, no sample is selected
Sample Storage
Limits
- Maximum 10 samples per endpoint
- Oldest samples are removed when limit is reached
- Samples persist across browser sessions
Persistence
Samples are stored:
- In browser localStorage (immediate)
- On the server via API (for sharing/persistence)
When you return to a connector, samples are loaded from the server.
Test Types in History
Single Test
Standard endpoint test:
- One request
- Up to 3 pages of pagination
- Tagged as "Single" in history
Full Collection
Complete data collection:
- Runs until pagination stop condition
- Collects all pages
- Tagged as "Full" in history
- Shows pages/items collected
Iterate Test
Tests endpoint for each value in an array:
- Runs multiple requests
- Combines responses into array
- Tagged as "Full" (treated like full collection)
- Shows iteration count
Stopped Tests
When a user clicks Stop during a streaming test:
- Partial results are preserved and saved
- Tagged with
success: falsein history - Still viewable and usable for dependency mapping
Sample Data vs Live Data
Active Sample Indicator
When viewing sample data instead of live response:
- Banner shows "Using sample data for dependency mapping"
- JSON viewer shows the sample content
- Mappings extract from this cached data
When Samples Are Used
- After activating from history
- When loading a connector with saved samples
- When paste sample feature is used
Live Data Priority
When you run a new test:
- Live response replaces current view
- New sample is saved to history
- Previous samples remain accessible
Workflows
Offline Configuration
- Test endpoint while online (sample saved)
- Work offline later
- Activate sample from history
- Configure dependencies using cached data
- Test live when back online
Debugging Response Changes
- Notice endpoint behavior changed
- Compare current sample to older ones
- Identify what data changed
- Adjust mappings if needed
Preserving Good Test Data
- Get a good test response
- Sample auto-saves
- Later tests might return different data
- Reactivate original sample if needed
Sample Metadata
Each sample includes metadata viewable on hover or in detail view:
| Field | Description |
|---|---|
| Timestamp | When test was run |
| Status Code | HTTP response code |
| Response Time | Request duration in ms |
| Response Size | Size in bytes |
| Test Type | single, full, or iterate |
| Pages Collected | For paginated responses |
| Items Collected | Total items across pages |
| Stopped By | Why pagination/iteration stopped |
Stopped By Values
| Value | Meaning |
|---|---|
stop_condition | Pagination stop condition was met (e.g., cursor empty, boolean flag) |
error | An error occurred during collection |
user_stopped | User clicked Stop during a streaming test |
max_pages | Safety limit of maximum pages was reached |
Best Practices
Save Before Major Changes
Before modifying:
- Note which sample is active
- Good samples are preserved in history
- Can restore if new config doesn't work
Clear Old Samples
Periodically remove outdated samples:
- Reduces clutter
- Ensures you're using current data
- Frees up storage
Use Full Collection Samples
For dependency mapping:
- Full collection samples have more data
- Better for testing iterate mode
- More representative of production
Troubleshooting
"Sample won't load"
- Sample data might be corrupted
- Delete and re-run test
- Check browser storage isn't full
"Old sample doesn't match current API"
API structure changed since sample was captured:
- Run new test to get current structure
- Or keep old sample for comparison
"Samples not persisting"
- Check localStorage isn't disabled
- Verify API connectivity for server persistence
- Browser might be in private mode
Related Documentation
- Testing Connectors - Full testing guide
- Test Modes - Different test types
- Dependency Mapping - Using sample data for mapping