74 / 89 · 04 API & Contract Testing with AI · Asynchronous Testing Patterns← prev⊞ allnext →☰ Read as one page
11.7Pattern Selection Guide
| Pattern | When to Use | Complexity | Reliability |
|---|---|---|---|
| Poll and wait | Simple state check after event | Low | High |
| Callback capture | Webhook verification | Medium | High |
| Queue drain | Multi-queue event verification | Medium | Medium |
| Trace correlation | Cross-service event chains | High | Medium |
| Snapshot comparison | Database state verification | Low | High |