common bugs in api testing code example
Example 1: bug types we faced api testing
Issues observed when performing API testing are
• Stress, performance, and security issues
• Duplicate or missing functionality
• Reliability issues
• Improper messaging
• Incompatible error handling mechanism
• Multi-threaded issues
Example 2: api testing bugs
• Fails to handle error conditions gracefully
• Unused flags
• Missing or duplicate functionality
• Reliability Issues. Difficulty in connecting and getting a response
from API
• Security Issues
• Multi-threading issues
• Performance Issues. API response time is very high
• Improper errors/warning to a caller
• Incorrect handling of valid argument values
• Response Data is not structured correctly (JSON or XML