# US 2021/0173765 A1 · Streamlined Creation of Integration Tests

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

- Number: US 2021/0173765 A1
- Document ID: US20210173765A1
- Status: Published application
- Kind: A1
- Application number: 17/069,724
- Filed: 2020-10-13
- Published: 2021-06-10
- Earliest claimed: 2018-12-28
- Assignees: Paypal, Inc.
- Applicants: PayPal, Inc.
- Inventors: Eyal Allweil; Lior Ebel; Shir Fiszman
- Web page: https://patentgrep.com/patent/US20210173765A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for testing software programs during development are described that are provided in part by a software testing framework that can create unit tests for testing individual modules of code, and create corresponding integration tests for testing those code modules during later integration testing, without duplication of effort. The framework receives function calls, each corresponding to a unit test function. The framework generates unit test code based on the function calls, which is executed on a development device. Upon successful execution of the unit test code, the framework receives an indication to test the function calls in a test environment. The framework identifies dependencies of the function calls. The framework then generates integration test code corresponding to the function calls. The integration test code includes dependency resolution code for the evaluated dependencies. The generated integration test code is then deployed in a test environment.

## Claims

### Claim 1

(canceled)

### Claim 2

A computer-implemented method, comprising:
accessing, by a software testing framework, unit test code for execution on a development device, the unit test code comprising one or more unit test functions that correspond to a plurality of function calls for testing of a software component;
providing the unit test code for execution on the development device to test the plurality of function calls in a development environment;
determining, based on receiving an indication from the development device, a successful execution of the unit test code;
identifying, by the software testing framework, a plurality of dependencies associated with the plurality of function calls, wherein at least one dependency of the plurality of dependencies is based on a test environment;
determining, by the software testing framework and based on the unit test code and the test environment, integration test code comprising dependency resolution code for the plurality of dependencies, wherein said determining the integration test code comprises determining a type of the dependency resolution code based on requirements of the test environment;
deploying, by the software testing framework, the integration test code in the test environment.

### Claim 3 (depends on 2)

The method of claim 2, wherein the type of the dependency resolution code is determined as a representation state transfer request transmitted to a server of the test environment for testing of a software component.

### Claim 4 (depends on 2)

The method of claim 2, wherein the type of the dependency resolution code is determined as database query code to update a database of the test environment.

### Claim 5 (depends on 4)

The method of claim 4, wherein the dependency resolution code includes structured query language code for a database management server system, that comprises the database, of the test environment.

### Claim 6 (depends on 2)

The method of claim 2, wherein the type of the dependency resolution code is determined as a database update for testing a software component of the test environment.

### Claim 7 (depends on 2)

The method of claim 2, wherein the type of the dependency resolution code is dynamically changed from a first type to a second type based on a selection of the test environment out of a plurality of test environments.

### Claim 8 (depends on 2)

The method of claim 2, wherein the type of the dependency resolution code comprises two or more types of multiple resolution code in response to determining that the test environment requires use of different types of components to execute the unit test code.

### Claim 9 (depends on 2)

The method of claim 2, wherein the accessing the unit test code is in response to receiving a request to test the plurality of function calls in the test environment that is received as part of a call to an application programming interface exposed by the software testing framework.

### Claim 10 (depends on 2)

The method of claim 2, wherein the determining the successful execution is based upon an evaluation of one or more log file entries of the execution of the unit test code on development device.

### Claim 11

A software testing system, comprising:
a non-transitory memory storing instructions; and
a processor configured to execute the instructions to cause the software testing system to:
execute unit test code on a development device, the unit test code comprising one or more unit test functions that correspond to a plurality of function calls for testing of a software component, the unit test code for testing the plurality of function calls in a development environment;
determine a successful execution of the unit test code on the development device;
responsive to the determination of the successful execution, identify a plurality of dependencies associated with the plurality of function calls, wherein at least one dependency of the plurality of dependencies is based on a test environment;
generate, based on the unit test code and the test environment, integration test code corresponding to the plurality of function calls and comprising dependency resolution code for the plurality of dependencies, wherein the generation of the integration test code comprises determining a type of the dependency resolution code based on requirements of the test environment;
deploy the integration test code to the test environment.
wherein the type of the dependency resolution code is determined as a representation state transfer request transmitted to a server of the test environment for testing of a software component.

### Claim 12 (depends on 11)

The software testing system of claim 11, wherein the type of the dependency resolution code is determined as database query code to update a database of the test environment.

### Claim 13 (depends on 11)

The software testing system of claim 11, wherein the dependency resolution code includes structured query language code for a database management server system, that comprises the database, of the test environment.

### Claim 14 (depends on 11)

The software testing system of claim 11, wherein the type of the dependency resolution code is determined as a database update for testing a software component of the test environment.

### Claim 15 (depends on 11)

The software testing system of claim 11, wherein the type of the dependency resolution code is dynamically changed from a first type to a second type based on a selection of the test environment out of a plurality of test environments.

### Claim 16 (depends on 11)

The software testing system of claim 11, wherein the type of the dependency resolution code comprises two or more types of multiple resolution code in response to determining that the test environment requires use of different types of components to execute the unit test code.

### Claim 17

A non-transitory machine-readable medium having instructions stored thereon, the instructions executable to cause performance of operations comprising:
executing unit test code on a development device, the unit test code comprising one or more unit test functions that correspond to a plurality of function calls for testing of a software component, the unit test code for testing the plurality of function calls in a development environment;
determining a successful execution of the unit test code on the development device;
responsive to the determination of the successful execution, identifying a plurality of dependencies associated with the plurality of function calls, wherein at least one dependency of the plurality of dependencies is based on a test environment;
generating, based on the unit test code and the test environment, integration test code corresponding to the plurality of function calls and comprising dependency resolution code for the plurality of dependencies, wherein the generation of the integration test code comprises determining a type of the dependency resolution code based on requirements of the test environment;
deploying the integration test code to the test environment.

### Claim 17 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the type of the dependency resolution code is determined as a representation state transfer request transmitted to a server of the test environment for testing of a software component.

### Claim 18 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the type of the dependency resolution code is determined as database query code to update a database of the test environment.

### Claim 19 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the dependency resolution code includes structured query language code for a database management server system, that comprises the database, of the test environment.

### Claim 20 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the type of the dependency resolution code is determined as a database update for testing a software component of the test environment.

### Claim 21 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the type of the dependency resolution code is dynamically changed from a first type to a second type based on a selection of the test environment out of a plurality of test environments.
