API TESTING Questions and Answers

Explain what are the principles of API test design?

The principle for API test design are

  • Setup : Create objects, start services, initialize data etc
  • Execution: Steps to exercise API or scenario, also logging
  • Verification: Oracles to evaluate execution outcome
  • Reporting: Pass, failed or blocked
  • Clean up: Pre-test state