logo

API Testing Without Writing Test Cases and Mocks

Conference:  ContainerCon 2022

2022-06-23

Authors:   Shubham Jain, Neha Gupta


Summary

Kepler is an open-source tool for automating contract testing and generating test cases. It offers both SDK and agent implementations to capture requests and responses, and can be integrated with testing libraries and frameworks.
  • Kepler is an open-source tool for automating contract testing and generating test cases
  • It offers both SDK and agent implementations to capture requests and responses
  • Kepler can be integrated with testing libraries and frameworks
  • Kepler is working on adding features such as data protection and test suites
Kepler uses a URL shortener application to demonstrate how it works. The application has only one dependency, a Postgres database, and can perform three basic functions. Kepler captures requests and responses, and can handle time-sensitive data to prevent false positives.

Abstract

Keploy is an open-source no-code API Testing Platform that generates test cases and data mocks from API calls.Application testing is one of the biggest barriers to achieving truly Continuous Deployments because it's use-case specific. Developers often avoid writing test cases because its time consuming, needs to be maintained for every change and metrics like coverage don't necessarily guarantee quality. In this session, we'll talk about how we could capture test cases from traffic data, how all infrastructure can be mocked automatically and how application writes could be safely replayed.We'll walk through examples of how keploy can work alongside existing testing frameworks and capture test cases quickly and mock infrastructure without needing to write API test cases. We'll also cover how these test cases would evolve as the application grows. The core contributors to Keploy will provide an overview of its features and capabilities, and how it is used at scale covering use-cases across microservices across various programming languages.

Materials: