# US 2021/0286715 A1 · Test device, test method, and computer readable medium

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

- Number: US 2021/0286715 A1
- Document ID: US20210286715A1
- Status: Published application
- Kind: A1
- Application number: 17/337,717
- Filed: 2021-06-03
- Published: 2021-09-16
- Earliest claimed: 2019-01-28
- Assignees: Mitsubishi Electric Corporation
- Applicants: Mitsubishi Electric Corporation
- Inventors: Yuya ONO; Hirotaka MOTAI; Takehisa MIZUGUCHI
- Web page: https://patentgrep.com/patent/US20210286715A1

## 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}
- 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

A test device (100) runs an application program (111) that performs a series of function call processes utilizing a software platform (106), thereby testing the software platform (106). A log acquisition unit (201) runs the application program (111) a plurality of times repeatedly so as to acquire a trace log (113) including a plurality of trace results obtained by tracing the series of function call processes. A log analysis unit (202) analyzes the trace log (113) so as to estimate, as a variable attribute, each of an attribute of an argument and an attribute of a return value, of a function called by the series of function call processes. A program generation unit (203) generates a simulation program (303) which simulates the series of function call processes, using the variable attribute.

## Claims

### Claim 1

A test device which runs an application program that performs a series of function call processes utilizing a software platform, thereby testing the software platform, the test device comprising:
processing circuitry
to run the application program a plurality of times repeatedly so as to acquire a trace log including a plurality of trace results obtained by tracing the series of function call processes, the tracing results including an argument and a return value, of a function called by the series of function call processes,
to analyze the trace log statistically so as to estimate, as a variable attribute, each of an attribute of the argument and an attribute of the return value, of the function called by the series of function call processes, and
to generate a simulation program which simulates the series of function call processes using the variable attribute.

### Claim 2 (depends on 1)

The test device according to claim 1,
wherein the processing circuitry runs the simulation program, acquires, as a simulation result, the argument and the return value, of the function called by the series of function call processes, and judges whether an attribute of the simulation result satisfies an expectation value.

### Claim 3 (depends on 1)

The test device according to claim 1,
wherein the processing circuitry
generates a function call table in which the argument and the return value, of the function called by the series of function call processes are each attached with a variable attribute tag indicating the variable attribute, and
generates the simulation program using the function call table.

### Claim 4 (depends on 1)

The test device according to claim 1,
wherein the processing circuitry analyzes the trace log statistically to estimate, as the variable attribute, a variable type which expresses a type of the argument and a type of the return value, of the function called by the series of function call processes.

### Claim 5 (depends on 1)

The test device according to claim 1,
wherein the processing circuitry analyzes the trace log statistically to estimate, as the variable attribute, a borrowed portion where the argument and the return value, of the function called by the series of function call processes are borrowed.

### Claim 6 (depends on 1)

The test device according to claim 1,
wherein the processing circuitry
classifies the plurality of trace results included in the trace log, as similar trace logs based on an order of function calls included in each of the plurality of trace results,
estimates the variable attribute in units of similar trace logs, and
generates the simulation program in units of similar trace logs.

### Claim 7 (depends on 1)

The test device according to claim 1,
wherein the processing circuitry runs the application program a plurality of times repeatedly at a run-regulating interval which expresses an interval of run of the application program.

### Claim 8 (depends on 1)

The test device according to claim 1,
wherein the processing circuitry initializes the software platform each time the application program is run.

### Claim 9

A test method of a test device which runs an application program that performs a series of function call processes utilizing a software platform, thereby testing the software platform, the test method comprising:
running the application program a plurality of times repeatedly so as to acquire a trace log including a plurality of trace results obtained by tracing the series of function call processes, the tracing results including an argument and a return value, of a function called by the series of function call processes;
analyzing the trace log statistically so as to estimate, as a variable attribute, each of an attribute of the argument and an attribute of the return value, of the function called by the series of function call processes; and
generating a simulation program which simulates the series of function call processes, using the variable attribute of each of the argument and the return value, of the function called by the series of function call processes.

### Claim 10

A non-transitory computer readable medium storing a test program of a test device which runs an application program that performs a series of function call processes utilizing a software platform, thereby testing the software platform, the test program causing the test device, being a computer, to execute:
a log acquisition process of running the application program a plurality of times repeatedly so as to acquire a trace log including a plurality of trace results obtained by tracing the series of function call processes, the tracing results including an argument and a return value, of a function called by the series of function call processes;
a log analysis process of analyzing the trace log statistically so as to estimate, as a variable attribute, each of an attribute of the argument and an attribute of the return value, of the function called by the series of function call processes; and
a program generation process of generating a simulation program which simulates the series of function call processes, using the variable attribute of each of the argument and the return value, of the function called by the series of function call processes.
