Testing Your Integration
This guide helps you verify that QWED is integrated correctly into your application.Why Test Your Integration?
Without proper testing, you might:- ❌ Call LLM directly (bypassing verification)
- ❌ Miss security vulnerabilities
- ❌ Get incorrect verification results
- ❌ Have silent failures in production
Quick Validation Checklist
Run this checklist to verify your integration:Detailed Test Suite
1. Test API Authentication
What to test: Verify API key is valid and working.AuthenticationError.
2. Test Math Verification
What to test: Math engine returns correct results.3. Test Code Security
What to test: Security vulnerabilities are detected.4. Test SQL Injection Detection
What to test: SQL injection attempts are caught.5. Test Error Handling
What to test: QWED handles errors gracefully.Integration Validation Script
Save this astest_qwed_integration.py and run it:
Debugging Failed Tests
Problem: Authentication Fails
Symptoms:- Check API key is correct
- Verify API key is active (not revoked)
- Check for extra spaces in key
- Regenerate API key if needed
Problem: Math Verification Returns Wrong Results
Symptoms:-
Check verbose mode to see internal flow:
-
Check trace to debug:
- Verify expression format is correct
Problem: Security Detection Misses Vulnerabilities
Symptoms:- Check language parameter is correct
- Verify code string is properly formatted
- Enable strict mode:
Performance Testing
Test Response Times
Test Batch Processing
Continuous Integration (CI) Testing
GitHub Actions Example
Next Steps
Once all tests pass: ✅ Production Deployment - Deploy with confidence✅ Monitoring - Track QWED in production
✅ Troubleshooting - Debug common issues
Need Help?
Can’t get tests to pass? We’re here to help:- 💬 Community Support
- 📧 Enterprise Support: support@qwedai.com
- 📖 FAQ