Generate Scenario
Identify and create test scenarios
Test scenarios define what you want to test. WellTested can automatically detect scenarios from your API or you can define them manually.
Generate Scenario in Onboarding
After uploading your API document, WellTested automatically analyzes the endpoints and suggests test scenarios.
Review the suggested scenarios and select the ones you want to create.
Generate Scenario Later
In the homepage, you can generate scenarios anytime from Test Cases → Generate from API.
What is a Test Scenario?
A test scenario describes a complete test flow:
- What functionality to test
- Which APIs to call
- Expected behavior
- Success criteria
Example Scenarios
Business Workflow Scenarios
Multi-step processes that test complete business flows:
User Registration and Login Flow:
- POST /auth/register
- POST /auth/login
- GET /users/me
Complete Pet Management Lifecycle:
- POST /pets (create)
- GET /pets/{id} (read)
- PUT /pets/{id} (update)
- DELETE /pets/{id} (delete)
Aggregated Test Scenarios
Collections of related tests grouped by testing dimension:
Error Handling: Invalid User Input:
- POST /users with missing fields
- POST /users with invalid email
- POST /users with duplicate email
Security Testing: Authentication & Authorization:
- POST /api/resource without token (401)
- POST /api/resource with invalid token (401)
- POST /api/resource with expired token (401)
- POST /api/resource without permission (403)
Next Steps
After generating scenarios:
- Design Test Case - Create specific test cases
- Learn About Scenario-Based Generation - Deep dive
- Explore API-Based Generation - Alternative approach
← Back: Upload API | ← Documentation | Next: Design Test Case →