Pre-built, ready-to-use sample workflows for common testing scenarios
Sample workflows are production-ready, fully functional workflows designed to solve common testing scenarios. Use them as starting points, learning references, or deploy them directly to your projects.
Why Use Sample Workflows?
✅ Save time - No need to build from scratch
✅ Learn patterns - See best practices in action
✅ Reduce errors - Proven and tested workflows
✅ Accelerate development - Quick starts for common scenarios
1. Navigate to login
2. Enter email and password
3. Receive OTP code
4. Enter OTP in verification form
5. Complete MFA
6. Access authenticated area
Name: MFA Authentication Flow
Type: API + Web
Steps: 6
Expected Duration: 5 minutes
Complexity: Intermediate
Steps:
- Web: Login with email/password
- Wait: 3 seconds (for OTP delivery)
- API: Retrieve OTP from email service
- Web: Enter OTP in verification form
- Validate: MFA completion
- Verify: Access to protected resources
1. Browse products
2. Search for item
3. View product details
4. Add to cart
5. Proceed to checkout
6. Enter shipping address
7. Select shipping method
8. Enter payment details
9. Place order
10. Verify order confirmation
11. Check order in account
1. Add items to cart
2. Proceed to checkout
3. Enter shipping details
4. Select payment method (Credit Card, PayPal, Apple Pay)
5. Process payment
6. Validate payment confirmation
7. Verify order creation
Name: Multi-Payment Checkout Testing
Type: Web + API
Test Cases: 6 (one per payment method)
Expected Duration: 10-15 minutes
Test Data Required:
- Multiple payment method credentials
- Test card numbers (Stripe/PayPal test cards)
- Sample addresses
1. Send GET request to API
2. Validate response status code
3. Parse response body
4. Verify response schema
5. Check data accuracy
6. Extract ID for next request
7. Send POST request with extracted ID
8. Validate created resource
9. Send PUT request to update
10. Verify update success
11. Send DELETE request
12. Confirm deletion
GET /api/v1/users
GET /api/v1/users/{id}
POST /api/v1/users
PUT /api/v1/users/{id}
DELETE /api/v1/users/{id}
1. Construct GraphQL query
2. Send query to GraphQL endpoint
3. Validate response structure
4. Check for errors
5. Extract required fields
6. Validate data accuracy
7. Test nested queries
8. Validate pagination
Name: GraphQL API Testing
Endpoint: https://api.example.com/graphql
Query Type: POST
Expected Duration: 6 minutes
Sample Query:
{
user(id: "123") {
id
name
email
posts {
id
title
comments {
id
text
}
}
}
}
1. Create data on Web platform
2. Sync to backend
3. Validate on Mobile app
4. Update on Mobile
5. Verify update on Web
6. Create on Mobile
7. Validate on Web
8. Verify data consistency
Name: Web-Mobile Sync Testing
Platforms:
- Web: Chrome (Desktop)
- Mobile: iOS (iPhone 14)
- Mobile: Android (Samsung Galaxy)
Data Sync Points:
- User profile updates
- Preferences and settings
- Shopping cart
- Order history
- Bookmarks/favorites
✓ Data created on Web visible on Mobile
✓ Mobile updates reflected on Web
✓ Image uploads synchronized
✓ Settings propagate across devices
✓ Real-time updates
✓ Offline data sync
1. Perform action in UI
2. Validate UI confirmation
3. Query database directly
4. Verify data was created/updated
5. Check related records
6. Validate data integrity
7. Confirm transaction logs
Name: Database Integrity Testing
Platforms:
- Web UI: Test actions
- Database: Direct queries
Database Connections:
- PostgreSQL: Production database
- MongoDB: Document store
- Redis: Cache validation
Operations Tested:
- INSERT operations
- UPDATE operations
- DELETE operations
- Transaction handling
- Constraint validation
✓ Data correctly inserted
✓ Timestamps accurate
✓ Foreign keys valid
✓ Constraints enforced
✓ Indexes working
✓ Transactions committed
✓ No orphaned records
1. Trigger action requiring external service
2. Validate request sent to service
3. Mock/call actual service
4. Process callback/response
5. Verify application state updated
6. Confirm audit logs
# Original
username: [email protected]password: TestPassword123
# Customized for your environment
username: [email protected]password: {{SECURE_PASSWORD}} # Use variables for security
# Add more assertions to verify additional business rules
- Assert: Order total matches expected amount
- Assert: Tax calculation correct
- Assert: Discount applied properly
- API Call: Verify inventory reduced
# Adjust waits based on your system performance
Wait: 2 seconds (original)
Wait: 5 seconds (if system slower)
Timeout: 30 seconds (original)
Timeout: 60 seconds (for slower endpoints)