# US 2020/0401505 A1 · System and method for automated testing of application program interface (api)

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

- Number: US 2020/0401505 A1
- Document ID: US20200401505A1
- Status: Published application
- Kind: A1
- Application number: 16/531,150
- Filed: 2019-08-05
- Published: 2020-12-24
- Earliest claimed: 2019-06-19
- Assignees: Wipro Limited
- Applicants: Wipro Limited
- Inventors: Gopinath Chenguttuvan; Vaishali Rajakumari
- Web page: https://patentgrep.com/patent/US20200401505A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3692: {for test results analysis}
- G06N 3/0499: Feedforward networks
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06F 11/3676: {for coverage analysis}
- G06N 3/045: Combinations of networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present invention relates to a method for automated testing of an Application Program Interface (API). A test requirement data is received to test an API from a first database. Further, the test requirement data is translated into a first set of vectors. Furthermore, one or more test scripts from a plurality of test scripts stored in a second database is selected based on output of the trained artificial neural network. The output indicative of a probability of effectiveness associated with the one or more test scripts is generated using the first set of vectors as inputs to a trained artificial neural network. The one or more test scripts are executed to test and validate the API.

## Claims

### Claim 1

A method for automated testing of an Application Program Interface (API), the method comprising:
receiving, by an API testing system, a test requirement data to test an API from a first database;
translating, by the API testing system, the test requirement data into a first set of vectors;
selecting, by the API testing system, one or more test scripts from a plurality of test scripts stored in a second database based on outputs generated using the first set of vectors provided as inputs to a trained artificial neural network, wherein the outputs are indicative of a probability of effectiveness associated with the one or more test scripts; and
executing, by the API testing system, the one or more test scripts to test and validate the API.

### Claim 2 (depends on 1)

The method of claim 1, wherein translating the received test requirement data into the first set of vectors is based on a word to vector model.

### Claim 3 (depends on 1)

The method of claim 1, wherein the artificial neural network is trained based on a supervised learning algorithm using the first database as input and the second database associated with the API testing system as expected output.

### Claim 4 (depends on 1)

The method of claim 1, wherein the one or more test scripts comprises one or more test scenarios.

### Claim 5 (depends on 1)

The method of claim 1, wherein validating the API comprises comparing a result of executing one or more test scenarios from the one or more test scripts with expected result.

### Claim 6 (depends on 1)

The method of claim 1 further comprising generating a plurality of test reports based on the validation of the API, wherein the plurality of test reports comprises at least one of performance results of the tested API, test execution status, and test execution statistics.

### Claim 7 (depends on 1)

The method of claim 1, wherein the artificial neural network is further trained based on plurality of generated test reports.

### Claim 8

An API testing system for automated testing of an Application Program Interface (API), the API testing system comprises:
a processor; and
a memory communicatively coupled to the processor, wherein the memory stores the processor executable instructions, which, on execution, causes the processor to:
receive a test requirement data to test an API from a first database;
translate the test requirement data into a first set of vectors;
select a one or more test scripts from a plurality of test scripts stored in a second database based on outputs generated using the first set of vectors provided as inputs to a trained artificial neural network, wherein the outputs are indicative of a probability of effectiveness associated with the one or more test scripts; and
execute the one or more test scripts to test and validate the API.

### Claim 9 (depends on 8)

The API testing system of claim 8, wherein the processor is configured to translate the received test requirement data into the first set of vectors is based on a word to vector model.

### Claim 10 (depends on 8)

The API testing system of claim 8, wherein the processor is configured to train the artificial neural network based on a supervised learning algorithm using the first database (105) as input and the second database (106) associated with the API testing system (103) as expected output.

### Claim 11 (depends on 8)

The API testing system of claim 8, wherein the processor is configured to the one or more test scripts comprises one or more test scenarios.

### Claim 12 (depends on 8)

The API testing system of claim 8, wherein the processor is configured to validate the API comprises comparing a result of executing one or more test scenarios from the one or more test scripts with expected result.

### Claim 13 (depends on 8)

The API testing system of claim 8, wherein the processor is configured to generate a plurality of test reports based on the validation of the API, wherein the plurality of test reports comprises at least one of performance results of the tested API, test execution status, and test execution statistics.

### Claim 14 (depends on 8)

The API testing system of claim 8, wherein the processor is configured to further train the artificial neural network based on plurality of generated test reports.

### Claim 15

A non-transitory computer readable medium including instructions stored thereon for automated testing of an Application Program Interface (API), that when processed by at least one processor cause a device to perform operations comprising:
receiving a test requirement data to test an API from a first database;
translating the test requirement data into a first set of vectors;
selecting one or more test scripts from a plurality of test scripts stored in a second database based on outputs generated using the first set of vectors provided as inputs to a trained artificial neural network, wherein the outputs are indicative of a probability of effectiveness associated with the one or more test scripts; and
executing the one or more test scripts to test and validate the API.
