Skip to main content

Introduction to Keploy

Keploy is a no-code testing platform that generates tests from API calls.

It converts API calls into testcases. Mocks are automatically generated with the actual request/responses.

Test Case Generation

Keploy Features

1. Convert API calls from anywhere to Test-Case

Keploy captures all the API calls and subsequent network traffic served by the application. You can use any existing API management tools like Postman, Hoppscotch, Curl to generate test-case.

API Tools

2. Automatically mock Mutations

Keploy automatically mocks network/external dependencies for all CRUD operations with correct responses.

Now you'll not require data dumps or mocks for dependencies like DBs, internal services, or third party services like twilio, shopify or stripe.

Mock Application Dependencies

Please check list of currently supported dependencies in Go.

With Keploy you can safely replay writes or mutations by capturing from local or other environments.

Idempotency guarantees are also not required in the application. Multiple Reads after write operations can be replicated automatically too.

3. Accurate Noise Detection

Keploy identifies noisy fields in the responses accurately like (timestamps, random values) to ensure high quality tests.

As the application serves the API, Keploy re-run that API request with the captured dependency mocks.

Keploy noise filtration

Keploy then compares if the responses of the API requests disagree with each other. If any of the fields of the API responses are different they are marked as random/non-deterministic fields.

4. Native interoperability

Keploy has native integrations with popular testing libraries like go-test. Code coverage will be reported with existing and Keploy recorded test cases and can also be integrated in existing CI pipelines easily.

Keploy Integration with Testing Libraries

5. Easy Integration Framework for new Libraries

Keploy has Instrumentation/Integration framework to easily add the new libraries/drivers within ~100 lines of code. Please check-out the contribution guide.

Keploy SDK

A Keploy SDK is a language-specific library that offers APIs to do the following:

  1. Capture all the network calls like

    • API Request
    • Dependency calls
    • API Response
  2. Replay the API request with captured dependency mocks to identify noisy fields. Read more about how Keploy de-noising works.

  3. Replay all the test-cases captured and mock the dependencies for the application

Comparing the expected and actual responses for an API call happens at the Keploy Server.

A Keploy SDK enables you to not call the external dependencies while testing APIs, eliminating the need to setup test-environment. This allows the application to use the full power of the programming language, and isolate itself from external dependencies.

Integrate SDK

Choose programming language to integrate Keploy SDK.