SmartAPI Module
Comprehensive guide for testing APIs with assertions, organizing requests into collections, and managing environments.
What is SmartAPI?
SmartAPI is RabbitQA's intelligent API testing module that enables teams to build, organize, and execute API tests with AI-powered test generation and powerful assertion capabilities. Group requests into collections, define assertions to validate responses, and manage environment variables -- providing a complete solution for API quality assurance.
SmartAPI transforms API testing by combining:
- AI-Powered Test Generation -- Automatically generate test cases from API specifications
- Visual Request Builder -- No-code interface for building and executing API requests
- Smart Assertions -- AI-suggested validations based on response patterns
- Contract Testing -- Ensure API contracts are maintained across versions
SmartAPI is currently in active development. Some features described in this documentation may be partially available or subject to change.
Key Capabilities
Intelligent Test Generation
| Feature | Description |
|---|---|
| OpenAPI Import | Auto-generate tests from Swagger/OpenAPI specs |
| Postman Import | Import existing Postman collections |
| AI Suggestions | Smart test case recommendations |
| Edge Case Detection | Automatic boundary testing |
Request Collections
Organize API requests into logical groups for structured testing. Build requests visually with full support for HTTP methods, headers, authentication, and request bodies. See Collections for the complete guide.
Response Validation
Validate response status codes, JSON schemas, field values, response times, and headers with flexible assertion rules. SmartAPI's AI engine suggests assertions based on response patterns. See Assertions for all validation options.
Environment Management
Define variables per environment for seamless switching between development, staging, and production. See Environments for setup instructions.
Test Organization
SmartAPI
├── Collections
│ ├── User API
│ │ ├── Authentication
│ │ ├── User CRUD
│ │ └── Permissions
│ └── Product API
│ ├── Catalog
│ └── Inventory
└── Environments
├── Development
├── Staging
└── Production
Integration Points
With Other RabbitQA Modules
| Module | Integration |
|---|---|
| AutoRunner | Execute API tests in CI/CD pipelines |
| TestPilot | Link API tests to test cases |
| Reporter | Comprehensive API test reports |
| HealthCheck | Monitor API endpoints |
External Integrations
- CI/CD Pipelines (Jenkins, GitLab, GitHub Actions)
- API Gateways
- Mock Servers
- Documentation Tools
Use Cases
API Development
- Test APIs during development
- Validate contract changes
- Debug endpoint issues
Quality Assurance
- Regression testing
- Performance validation
- Security testing
DevOps
- Pipeline integration
- Automated health checks
- Environment validation
Benefits
- Reduce Manual Testing -- AI generates comprehensive test suites
- Faster Feedback -- Instant API validation
- Better Coverage -- Automatic edge case detection
- Team Collaboration -- Shared collections and environments
- Documentation -- Auto-generated API documentation
Getting Started
When SmartAPI launches, you'll be able to:
- Import your API specification (OpenAPI/Swagger)
- Let AI generate initial test cases
- Customize and enhance tests
- Run tests manually or in pipelines
- Monitor results in Reporter
Start by importing your existing API endpoints into a collection. Add basic status code assertions first, then expand to body and header validations as you build coverage.
Planned Features
Phase 1 -- Foundation
- Request builder
- Collection management
- Environment variables
- Basic assertions
Phase 2 -- AI Features
- OpenAPI import with AI test generation
- Smart assertions
- Edge case detection
- Response pattern learning
Phase 3 -- Advanced
- Contract testing
- Mock server
- Performance testing
- Security scanning
Stay tuned for SmartAPI's release. Join our beta program for early access.