# US 2025/0147867 A1 · Automated conversion between behavioral tests and integration tests for software testing

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

- Number: US 2025/0147867 A1
- Document ID: US20250147867A1
- Status: Published application
- Kind: A1
- Application number: 18/501,599
- Filed: 2023-11-03
- Published: 2025-05-08
- Earliest claimed: 2023-11-03
- Assignees: Raytheon Company
- Applicants: Raytheon Company
- Inventors: Benjamin Christopher Churchill
- Web page: https://patentgrep.com/patent/US20250147867A1

## 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/3696: {Methods or tools to render software testable}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes performing one or more behavioral tests of software code. The method also includes, during the one or more behavioral tests, recording interactions associated with the software code. The interactions include simulated incoming interactions to the software code and actual outgoing interactions from the software code. The method further includes converting the interactions into contracts, where each contract includes information defining how at least one interaction involving the software code occurs. In addition, the method includes generating one or more integration tests for the software code based on the contracts. The one or more behavioral tests are configured to test functional behaviors of the software code. The one or more integration tests are configured to test integration of the software code with at least one external component.

## Claims

### Claim 1

A method comprising:
performing one or more behavioral tests of software code;
during the one or more behavioral tests, recording interactions associated with the software code, the interactions including simulated incoming interactions to the software code and actual outgoing interactions from the software code;
converting the interactions into contracts, each contract comprising information defining how at least one interaction involving the software code occurs; and
generating one or more integration tests for the software code based on the contracts;
wherein the one or more behavioral tests are configured to test functional behaviors of the software code; and
wherein the one or more integration tests are configured to test integration of the software code with at least one external component.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the one or more integration tests comprises:
generating one or more test doubles configured to replay one or more interactions based on one or more of the contracts; and
packaging the one or more test doubles and the one or more contracts as one or more artifacts.

### Claim 3 (depends on 2)

The method of claim 2, wherein:
the one or more behavioral tests comprise multiple behavioral tests; and
the one or more test doubles are generated for a subset of the behavioral tests during generation of the integration tests, at least one of the behavioral tests marked as not being used to generate the one or more test doubles.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
during the one or more behavioral tests, the functional behaviors of the software code are tested in isolation from the at least one external component; and
the interactions associated with the software code are recorded using at least one spy proxy, the at least one spy proxy recording interactions between at least one controller associated with the software code and at least one simulated external component.

### Claim 5 (depends on 1)

The method of claim 1, wherein each contract defines how the at least one external component is able to make a request to the software code and what to expect in response to that request.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
storing the one or more behavioral tests and the one or more integration tests in a database.

### Claim 7 (depends on 6)

The method of claim 6, wherein integration testing of the at least one external component is performed using the one or more integration tests stored in the database.

### Claim 8

An apparatus comprising:
at least one processing device configured to:
perform one or more behavioral tests of software code;
during the one or more behavioral tests, record interactions associated with the software code, the interactions including simulated incoming interactions to the software code and actual outgoing interactions from the software code;
convert the interactions into contracts, each contract comprising information defining how at least one interaction involving the software code occurs; and
generate one or more integration tests for the software code based on the contracts;
wherein the one or more behavioral tests are configured to test functional behaviors of the software code; and
wherein the one or more integration tests are configured to test integration of the software code with at least one external component.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein, to generate the one or more integration tests, the at least one processing device is configured to:
generate one or more test doubles configured to replay one or more interactions based on one or more of the contracts; and
package the one or more test doubles and the one or more contracts as one or more artifacts.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein:
the one or more behavioral tests comprise multiple behavioral tests; and
the one or more test doubles are generated for a subset of the behavioral tests during generation of the integration tests, at least one of the behavioral tests marked as not being used to generate the one or more test doubles.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein:
during the one or more behavioral tests, the at least one processing device is configured to test the functional behaviors of the software code in isolation from the at least one external component; and
the at least one processing device is configured to record the interactions associated with the software code using at least one spy proxy, the at least one spy proxy configured to record interactions between at least one controller associated with the software code and at least one simulated external component.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein each contract defines how the at least one external component is able to make a request to the software code and what to expect in response to that request.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein the at least one processing device is further configured to store the one or more behavioral tests and the one or more integration tests in a database.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the at least one processing device is configured to convert a suite of behavioral tests into a suite of integration tests and to store the suite of behavioral tests and the suite of integration tests in the database.

### Claim 15

A non-transitory machine readable medium containing instructions that when executed cause at least one processor to:
perform one or more behavioral tests of software code;
during the one or more behavioral tests, record interactions associated with the software code, the interactions including simulated incoming interactions to the software code and actual outgoing interactions from the software code;
convert the interactions into contracts, each contract comprising information defining how at least one interaction involving the software code occurs; and
generate one or more integration tests for the software code based on the contracts;
wherein the one or more behavioral tests are configured to test functional behaviors of the software code; and
wherein the one or more integration tests are configured to test integration of the software code with at least one external component.

### Claim 16 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein the instructions that when executed cause the at least one processor to generate the one or more integration tests comprise:
instructions that when executed cause the at least one processor to:
generate one or more test doubles configured to replay one or more interactions based on one or more of the contracts; and
package the one or more test doubles and the one or more contracts as one or more artifacts.

### Claim 17 (depends on 16)

The non-transitory machine readable medium of claim 16, wherein:
the one or more behavioral tests comprise multiple behavioral tests; and
the one or more test doubles are generated for a subset of the behavioral tests during generation of the integration tests, at least one of the behavioral tests marked as not being used to generate the one or more test doubles.

### Claim 18 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein:
the instructions when executed cause the at least one processor, during the one or more behavioral tests, to test the functional behaviors of the software code in isolation; and
the instructions when executed cause the at least one processor to record the interactions associated with the software code using at least one spy proxy, the at least one spy proxy configured to record interactions between at least one controller associated with the software code and at least one simulated external component.

### Claim 19 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein each contract defines how the at least one external component is able to make a request to the software code and what to expect in response to that request.

### Claim 20 (depends on 15)

The non-transitory machine readable medium of claim 15, further containing instructions that when executed cause the at least one processor to store the one or more behavioral tests and the one or more integration tests in a database.
