Contract Testing

  • Mock APIs
  • Contract Tests

-  by Shah Nawaz

WHYs??

  • Documentation
  • Standardization
  • Automated Testing
  • Quicker development

WHATs??

Mocks APIs: These APIs serve static data. They act as a single source of truth for both the backend and the front-end. This is also kind of a live documentation server.

Contract Tests: Contract testing is a way to test API responses against different requests. This includes HTTP statuses, request structure and response structures etc

HOWs??

Karate

A BDD(Behavior Driver Development) framework based on Cucumber and built on Java.

Tests are written using Gherkin Syntax.

Questions??????

Made with Slides.com