# US 2022/0283929 A1 · System and method for automatically generating executable tests in gherkin format

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

- Number: US 2022/0283929 A1
- Document ID: US20220283929A1
- Status: Published application
- Kind: A1
- Application number: 17/193,346
- Filed: 2021-03-05
- Published: 2022-09-08
- Earliest claimed: 2021-03-05
- Assignees: JPMorgan Chase Bank, N.A.
- Applicants: JPMorgan Chase Bank, N.A.
- Inventors: Pratul Kumar SINGH
- Web page: https://patentgrep.com/patent/US20220283929A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Various methods, apparatuses/systems, and media for automatically generating tests in Gherkin format are disclosed. A repository stores open application programming interface (API) specification definition file corresponding to an application. A processor accesses the repository to obtain the open API specification definition file as input data. A receiver receives the input data. The processor parses, in response to received input data, the specification to collect data from the open API specification definition file; structures the collected data into a data frame object; implements a processing logic to derive applicable tests using a predefined template; implements the tests by utilizing the predefined template; and automatically generates, based on the implemented tests, corresponding test cases in an executable Gherkin syntax. This process of automatically executing testing of the application based on the functional tests is performed, for example, on a Kubernetes platform.

## Claims

### Claim 1

A method for automatically generating tests in Gherkin format by utilizing one or more processors and one or more memories, the method comprising:
providing a repository that stores open application programming interface (API) specification definition file corresponding to an application;
accessing the repository to obtain the open API specification definition file as input data;
receiving the input data;
parsing, in response to received input data, the specification to collect data from the open API specification definition file;
structuring the collected data into a data frame object;
implementing a processing logic to derive applicable tests using a predefined template;
implementing the tests by utilizing the predefined template; and
automatically generating, based on the implemented tests, corresponding test cases in an executable Gherkin syntax.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the open API specification definition is in a human-readable data-serialization language format.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the open API specification definition is in an open standard file format and data interchange format that utilize human-readable text to store and transmit data objects consisting of attribute.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the predefined template is a web template engine for supporting Python programming language.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the predefined template is a text file that generates text-based format that does not require a specific extension.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the text-based format includes any one of the following formats: HTML, XML, and CSV.

### Claim 7 (depends on 1)

The method according to claim 1, wherein automatically generating further comprising:
automatically generating Gherkin features or scenarios that include functional tests API status codes, not null values, negative required values, negative data types, response types and data driven tests; and
automatically testing the application based on the functional tests.

### Claim 8

A system for automatically generating tests in Gherkin format, the system comprising:
a repository that stores open application programming interface (APT) specification definition file corresponding to an application; and
a processor operatively coupled to the repository via a communication network, wherein the processor is configured to:
access the repository to obtain the open API specification definition file as input data;
receive the input data;
parse, in response to received input data, the specification to collect data from the open API specification definition file;
structure the collected data into a data frame object;
implement a processing logic to derive applicable tests using a predefined template;
implement the tests by utilizing the predefined template; and
automatically generate, based on the implemented tests, corresponding test cases in an executable Gherkin syntax.

### Claim 9 (depends on 8)

The system according to claim 8, wherein the open API specification definition is in a human-readable data-serialization language format.

### Claim 10 (depends on 8)

The system according to claim 8, wherein the open API specification definition is in an open standard file format and data interchange format that utilize human-readable text to store and transmit data objects consisting of attribute.

### Claim 11 (depends on 8)

The system according to claim 8, wherein the predefined template is a web template engine for supporting Python programming language.

### Claim 12 (depends on 11)

The system according to claim 11, wherein the predefined template is a text file that generates text-based format that does not require a specific extension.

### Claim 13 (depends on 12)

The system according to claim 12, wherein the text-based format includes any one of the following formats: HTML, XML, and CSV.

### Claim 14 (depends on 8)

The system according to claim 8, wherein the processor is further configured to:
automatically generate Gherkin features or scenarios that include functional tests API status codes, not null values, negative required values, negative data types, response types and data driven tests; and
automatically test the application based on the functional tests.

### Claim 15

A non-transitory computer readable medium configured to store instructions for automatically generating tests in Gherkin format, wherein, when executed, the instructions cause a processor to perform the following:
providing repository that stores open application programming interface (API) specification definition file corresponding to an application;
accessing the repository to obtain the open API specification definition file as input data;
receiving the input data;
parsing, in response to received input data, the specification to collect data from the open API specification definition file;
structuring the collected data into a data frame object;
implementing a processing logic to derive applicable tests using a predefined template;
implementing the tests by utilizing the predefined template; and
automatically generating, based on the implemented tests, corresponding test cases in an executable Gherkin syntax.

### Claim 16 (depends on 15)

The non-transitory computer readable medium according to claim 15, the open API specification definition is in a human-readable data-serialization language format.

### Claim 17 (depends on 15)

The non-transitory computer readable medium according to claim 15, wherein the open API specification definition is in an open standard file format and data interchange format that utilize human-readable text to store and transmit data objects consisting of attribute.

### Claim 18 (depends on 15)

The non-transitory computer readable medium according to claim 15, wherein the predefined template is a web template engine for supporting Python programming language, and wherein the predefined template is a text file that generates text-based format that does not require a specific extension, and

### Claim 19 (depends on 18)

The non-transitory computer readable medium according to claim 18,
wherein the text-based format includes any one of the following formats: HTML, XML, and CSV.

### Claim 20 (depends on 15)

The non-transitory computer readable medium according to claim 15, wherein, when executed, the instructions further cause the processor to perform the following:
automatically generating Gherkin features or scenarios that include functional tests API status codes, not null values, negative required values, negative data types, response types and data driven tests; and
automatically testing the application based on the functional tests.
