Canonical: https://instain.ru/en/ai/keploy/
Language: en

Keploy  API Testing Tool

# Keploy. 

Preparing API checks for specification and recorded queries

4.35 / 5    [Directory score](https://instain.ru/en/ai/keploy/#editorial-rating) [Official website ](https://keploy.io/)

Keploy supports agent generation of tests API and recording interactions with subsequent playback. These modes help to work with the specification and current behavior of the service.

![Keploy documentation on API test agent generation](https://instain.ru/assets/images/keploy-screen-329e17722bfa-1200.webp)

Documentation Keploy for agent-generated tests API.  [Open the source ](https://keploy.io/docs/running-keploy/agent-test-generation/)

## Two ways to collect initial checks

Keploy allows you to create scripts API for the description of the interface and play recorded interactions. If the team changes a new contract, start with its specification. If you need to save the behavior of an already working service before refactoring, recording in a test environment will be useful. The scripts have different starting points. In the first case, the check is compared with the requirements, in the second it is important to notice if the record reflects an old error.

Before generating, check the structure of the request and response examples. The unwritten error code in the specification easily turns into an empty statement that the request simply ended.

## Training example with repeated request

Take the booking API and a description of the cancellation operation. Make a scenario in which a reservation is first created and then a cancellation request is sent twice. Check which statuses and data are returned in both cases. The result of the second request must be in accordance with the contract. If the condition in the contract is not yet defined, agree it before adding the test.

To rerun the scenario in CI, set up a way to create a fresh record or restore the test database to its initial state. Otherwise the first run may pass and the next run may pick up a booking that was already canceled.

## Record interactions

A separate mode Keploy captures the requests and responses of dependencies for playback. Before recording, replace the keys and customer data with training values. At the acceptance, open the statements and check that the modified answer really leads to the fall of the desired test.

## Suitable tasks

- Check API contract on the training scenario

- Play recorded interaction when changing service

Features 

## Strengths

- Supports script generation by API description

- There is a separate record-and-replay workflow

Things to consider 

## Limitations

- Record reflects the behavior that was observed at the time of capture

- Account data and query bodies should be prepared in a test environment

## Selection and conditions

Free access

Yes

Trial period

Not confirmed

No sign-up required

Not confirmed

Russian interface

Not confirmed

Local installation

Not confirmed

API

Yes

“Not confirmed” means there is not enough information. The feature may still be available; check the developer’s terms.

Input formats

Code, Text

Result

Code, Text

### Terms

There is a free dating option and paid plans. The use of models and command capabilities depend on the plan and mode. Account data and query bodies should be prepared in a test environment

From task to first result

## Practical example

Task

Check API contract on the training scenario

What to prepare

A description of the booking cancellation, test credentials, and the expected response to a repeated request.

### Task brief or prompt

Make checks to create and two consecutive cancellations of one reservation. Match the answers to the specification and save the identifier from the first step.

### Expected result

A test scenario with a repeatable initial state and verification of both responses.

### How to check the result

- Make sure the restart gets a new test record.

- Change the expected status and check that the desired test falls.

An editorial teaching example of a task brief, not the result of hands-on testing of the service. Check that the required mode is available, that you have rights to the source material and that the intended use of the result is permitted.

Check details

## Official sources

-  [Keploy Page ](https://keploy.io/)

-  [Guide to Agent Test Generation ](https://keploy.io/docs/running-keploy/agent-test-generation/)

-  [Help for recording and reproducing requests ](https://keploy.io/docs/)

-  [Terms of access and payment ](https://keploy.io/pricing)

-  [Public REST API Keploy ](https://keploy.io/docs/running-keploy/public-api/)

This description is based on the developer’s material. Features, prices and availability may change; check the primary source before use.

About the tool

Developer

Keploy

Category

[Code](https://instain.ru/en/category/code/)

Access

Prepare an application or API description and check the startup requirements. To record and play, you need access to the test environment.

Payment

There is a free dating option and paid plans. The use of models and command capabilities depend on the plan and mode.

API

Yes, from the developer

[Developer terms ](https://keploy.io/pricing)

Directory score

4.35 / 5 

Features

4.30 / 5 

Workflows

4.20 / 5 

Ecosystem

4.40 / 5 

Documentation

4.50 / 5 

Scores are an editorial guide to the directory. They are not user reviews or the results of personal testing.

[See the methodology ](https://instain.ru/en/methodology/)
