# US 2025/0094326 A1 · Generating a test suite for an application programming interface

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0094326 A1
- Document ID: US20250094326A1
- Status: Published application
- Kind: A1
- Application number: 18/470,675
- Filed: 2023-09-20
- Published: 2025-03-20
- Earliest claimed: 2023-09-20
- Assignees: Capital One Services, LLC
- Applicants: Capital One Services, LLC
- Inventors: Veerapu NAGARJUN; Lavanya RAJA; Puneet GOYAL; Srinivas KUMAR; Chandana Bhavani YERRABATHINI
- Web page: https://patentgrep.com/patent/US20250094326A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3676: {for coverage analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In some implementations, a system may obtain a specification associated with an application programming interface (API). The system may generate a test object based on the specification associated with the API. The test object may include information associated with a set of test cases for the API. The system may identify a framework associated with a test suite to be generated for the API. The system may generate the test suite for the API based on the test object and the identified framework. The system may provide information associated with the test suite for the API.

## Claims

### Claim 1

A system for generating a test suite for an application programming interface (API), the system comprising:
one or more memories; and
one or more processors, communicatively coupled to the one or more memories, configured to:
obtain a specification associated with an API;
generate a test object based on the specification associated with the API, wherein the test object comprises information associated with a set of test cases for the API;
identify a framework associated with a test suite to be generated for the API;
generate the test suite for the API based on the test object and the identified framework; and
provide information associated with the test suite for the API.

### Claim 2 (depends on 1)

The system of claim 1, wherein the one or more processors, to generate the test object, are configured to:
identify a plurality of specification attributes based on the specification associated with the API, and
generate the test object based on the plurality of specification attributes.

### Claim 3 (depends on 1)

The system of claim 1, wherein the one or more processors, to generate the test object, are configured to:
identify a set of test case rules, and
determine the information associated with the set of test cases based on the set of test case rules.

### Claim 4 (depends on 1)

The system of claim 1, wherein the one or more processors, to generate the test object, are configured to:
determine a test case dataset, and
determine the information associated with the set of test cases based on the test case dataset.

### Claim 5 (depends on 4)

The system of claim 4, wherein the one or more processors, to determine the test case dataset, are configured to determine the test case dataset based on at least one of the specification associated with the API, data traffic associated with the API, or user input.

### Claim 6 (depends on 1)

The system of claim 1, wherein the test object is framework agnostic.

### Claim 7 (depends on 1)

The system of claim 1, wherein the set of test cases includes at least one test case associated with an API response.

### Claim 8

A method for generating a test suite for an application programming interface (API), comprising:
generating, by a system, an object based on a specification associated with the API, wherein the object includes information associated with at least one test case associated with the API;
identifying, by the system, a framework to be applied to the object in association with generating a test suite for the API;
applying, by the system, the framework to the object to generate the test suite for the API; and
providing, by the system, information associated with the test suite.

### Claim 9 (depends on 8)

The method of claim 8, wherein generating the object comprises:
analyzing the specification to identify a plurality of specification attributes, and
generating the object based on the plurality of specification attributes.

### Claim 10 (depends on 8)

The method of claim 8, wherein generating the object comprises determining the information associated with the at least one test case based on a set of test case rules.

### Claim 11 (depends on 8)

The method of claim 8, wherein generating the object comprises determining the information associated with the at least one test case based on a test case dataset.

### Claim 12 (depends on 11)

The method of claim 11, wherein the test case dataset is based on at least one of the specification, data traffic associated with the API, or user input.

### Claim 13 (depends on 8)

The method of claim 8, wherein the object is not specific to the framework.

### Claim 14 (depends on 8)

The method of claim 8, wherein the at least one test case includes a test case for an API response.

### Claim 15

A non-transitory computer-readable medium storing a set of instructions, the set of instructions comprising:
one or more instructions that, when executed by one or more processors of a system, cause the system to:
obtain a specification associated with an application programming interface (API);
identify a plurality of specification attributes based on the specification;
generate a test object based on the plurality of specification attributes,
wherein the test object includes information associated with a plurality of test cases associated with testing the API;
generate a test suite for the API based on the test object and a particular framework of a plurality of different frameworks; and
provide information associated with the test suite.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions, that cause the system to generate the test object, cause the system to:
identify a set of test case rules, and
determine the information associated with the plurality of test cases based on the set of test case rules.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions, that cause the system to generate the test object, cause the system to:
determine a test case dataset, and
determine the information associated with the plurality of test cases based on the test case dataset.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the one or more instructions, that cause the system to determine the test case dataset, cause the system to determine the test case dataset based on at least one of the specification, data traffic associated with the API, or user input.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the test object is compatible with each framework in the plurality of different frameworks.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the plurality of test cases includes a test case associated with an API response.
