Keploy, Automating the UNIT Testing...!!

HarshAditya_Gaur
3 min readFeb 7, 2023

Hi, welcome to my new blog. Today I want to share my Keploy Fellowship Experience.

I’ve been exploring and experimenting with several testing tools and frameworks over the recent weeks. But Keploy changed my perspective of unit testing. So Firstly, let’s understand what Keploy is.

Source: Keploy

About Keploy…

Keploy is an open-source, no-code API testing platform that generates unit test cases and data mocks from API calls. Dependency mocks are automatically generated with the recorded requests and responses.

Source: Keploy

Due to use-case complexity, application testing is one of the main hurdles to establishing fully continuous deployments. Keploy addresses the huge scale e2e (end-to-end) testing issue, which arises due to the requirement for developers to write multiple test cases, prepare data that is optimal for each individual API request, and even understand the expected outcomes of each API call. Keploy’s primary function is to automate the mock dependencies and safely replay all CRUD (Create, Read, Update, and Delete) transactions.

Keploy Features

  1. API calls can be converted to test cases.
  2. Mutations are mocked automatically.
  3. Noise Detection.
  4. Easy integration with GO, JAVA, Typescript, Python (WIP).
  5. Keploy Web Console to monitor everything.

For more information about how to use keploy in order to replace older methods of API testing with a more automated approach, check the links below:

Website: https://docs.keploy.io/

GitHub: https://github.com/keploy/keploy

Docs: https://docs.keploy.io/

About the Keploy Fellowship Program

Keploy organizes fellowship program for students and individuals and spreads awareness about the APIs, unit testing, and how Keploy automates the testing process.

While researching Kepley documentation, I came across the fellowship application and was fortunate to be accepted into the fellowship program cohort 2. The program was divided into 6 sessions spread over 2 weeks, with each session tagged with a task at the end. My learning from each session is mentioned below, along with the tasks of each session.

Session: 1

It was about the basics of networks, HTTP, HTTPS and how APIs are connected with all modern technology that we use today.

My Blog - https://medium.com/@harshadityagaur/http-https-and-apis-an-interconnection-580eb416a49a

Session: 2

This session dives into fundamental aspects of APIs from structure to mechanism behind their working. Understanding the documentation, exploring examples, etc.

My Blog - https://medium.com/@harshadityagaur/apis-unraveled-8715a6ac11c6

Session: 3

Integration of APIs into website, data retrieval, selection of appropriate data parameters, display the API data on website using HTML and CSS.

My Deployment - https://harshaditya23.github.io/weatherapi/

Session: 4

Now, introduction to Node.JS with creating routes and integrating data from HTML and JSON files.

Project Link - https://github.com/HarshAditya23/Node.js-API-Demo

Session: 5

Integrating the live database like MongoDB, PostgreSQL with Node.JS API. API testing with Postman application using multiple test cases scenarios.

Project Link - https://github.com/HarshAditya23/Node.js-MongoDB-Test

Session: 6

Introduction to working of keploy and how automation of test cases works on the fly. How to use the available SDKs to integrate keploy in your applications.

Overall Exp.

My experience in this Keploy Fellowship program was great. These sessions were very informative and easy to emulate. For a hardcore AI and ML developer like me, the best parts were UNIT Testing and Node.JS.

Thank you, Keploy team, for selecting me for the Keploy Fellowship Program. The experience was wonderful and full of learning opportunities.

Upcoming Project:

Over the upcoming weeks, I will be exploring and experimenting with the Python Keploy SDK that I forked from Keploy’s GitHub repo. So, I can contribute to the development of the Python SDK. That will make my work easy for Keploy integration in projects, as I am a Python developer and enthusiast…

Thank you for reading my blog. For any queries, please feel free to comment.

--

--