# US 11,907,103 B2 · Test environment determination device and test environment determination method

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

- Number: US 11,907,103 B2
- Document ID: US11907103B2
- Status: Granted
- Kind: B2
- Application number: 17/417,839
- Filed: 2019-12-12
- Published: 2022-02-24
- Granted: 2024-02-20
- Earliest claimed: 2018-12-27
- Assignees: Hitachi Astemo, Ltd.
- Applicants: Hitachi Astemo, Ltd.
- Inventors: Masashi Mizoguchi; Takahiro Iida; Toru Irie; Yoshimi Yamazaki
- Web page: https://patentgrep.com/patent/US11907103B2

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 30/15: Vehicle, aircraft or watercraft design
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An appropriate test environment is selected while preventing test cases from being detained therein. A test environment determination device includes: an element selection unit that selects one or more test targets and one or more test environments for executing a test case based on target requirements described for specifications of an electronic control unit, which is a test target, and environment requirements described for specifications of a test environment for simulating an external environment of the test target; an environment operation information acquisition unit that acquires operation information on the test environments; and an environment selection unit that selects a combination of the selected test target and the selected test environment based on the acquired operation information.

## Claims

### Claim 1

A test environment determination device, comprising:
an element selection unit that selects one or more test targets and one or more test environments for executing a test case based on target requirements described for specifications of an electronic control unit (ECU), which is a test target, and environment requirements described for specifications of a test environment for simulating an external environment of the test target;
an environment operation information acquisition unit that acquires operation information on the test environments;
a usage cost calculation unit that sets hardware-in-the-loop environment cost values and software-in-the-loop environment cost values; and
an environment selection unit that selects a combination of the selected test target and the selected test environment based on the acquired operation information, the hardware-in-the-loop environment cost values and the software-in-the-loop environment cost values, wherein the one or more test environments comprise a hardware-in-the-loop environment and a software-in-the-loop environment.

### Claim 2 (depends on 1)

The test environment determination device according to claim 1, wherein the element selection unit:
selects test targets to satisfy a lower limit value or a range of at least one of an operating frequency, a memory area, a number of I/O ports, and a number of communication channels specified as the target requirements, and
selects test environments to satisfy a lower limit value or a range of at least one of an operating frequency, a memory area, the number of I/O ports, and the number of communication channels specified as the environment requirements.

### Claim 3 (depends on 1)

The test environment determination device according to claim 1, wherein the environment operation information acquisition unit acquires an operation history, including execution start times and execution end times of test cases executed for the test targets in the test environments, as the operation information.

### Claim 4 (depends on 3)

The test environment determination device according to claim 3, wherein the environment selection unit selects a combination of a non-operating test target and a non-operating test environment decided based on the acquired operation information.

### Claim 5 (depends on 1)

The test environment determination device according to claim 1, wherein the environment selection unit selects the combination of the test target and the test environment enabling the test case to be executed in a time zone closest to a current time while securing a time period required for executing the test case.

### Claim 6 (depends on 1)

The test environment determination device according to claim 1, comprising an interface for specifying at least one of a test target and a test environment different from the test targets and the test environments selected by the element selection unit to execute a test case.

### Claim 7 (depends on 1)

The test environment determination device according to claim 1, comprising an interface for changing at least one of the target requirements and the environment requirements when there is no combination of a test target and a test environment satisfying the target requirements and the environment requirements.

### Claim 8

A test environment determination method for a computer to select a combination of a test target and a test environment suitable for executing a test case, the computer including an arithmetic device that executes a program and a storage device that can accept access from the arithmetic device, the test environment determination method comprising:
an element selecting step of selecting, by the arithmetic device, one or more test targets and one or more test environments for executing a test case based on target requirements described for specifications of an electronic control unit, which is a test target, and environment requirements described for specifications of a test environment for simulating an external environment of the test target;
an environment operation information acquiring step of acquiring, by the arithmetic device, operation information on the test environments;
a usage cost calculation step of setting hardware-in-the-loop environment cost values and software-in-the-loop environment cost values; and
an environment selecting step of selecting, by the arithmetic device, a combination of the selected test target and the selected test environment based on the acquired operation information, the hardware-in-the-loop environment cost values and the software-in-the-loop environment cost values, wherein the test environment comprises a hardware-in-the-loop environment and a software-in-the-loop environment.

### Claim 9 (depends on 8)

The test environment determination method according to claim 8, wherein in the element selecting step, the arithmetic device selects test targets to satisfy a lower limit value or a range of at least one of an operating frequency, a memory area, a number of I/O ports, and a number of communication channels specified as the target requirements, and the arithmetic device selects test environments to satisfy a lower limit value or a range of at least one of an operating frequency, a memory area, the number of I/O ports, and the number of communication channels specified as the environment requirements.

### Claim 10 (depends on 8)

The test environment determination method according to claim 8, wherein in the environment operation information acquiring step, the arithmetic device acquires an operation history, including execution start times and execution end times of test cases executed for the test targets in the test environments, as the operation information.

### Claim 11 (depends on 10)

The test environment determination method according to claim 10, wherein in the environment selecting step, the arithmetic device selects a combination of a non-operating test target and a non-operating test environment decided based on the acquired operation information.

### Claim 12 (depends on 8)

The test environment determination method according to claim 8, wherein in the environment selecting step, the arithmetic device selects the combination of the test target and the test environment enabling the test case to be executed in a time zone closest to a current time while securing a time period required for executing the test case.

### Claim 13 (depends on 8)

The test environment determination method according to claim 8, wherein the arithmetic device accepts specifying at least one of a test target and a test environment different from the test targets and the test environments selected in the element selecting step to execute the test case.

### Claim 14 (depends on 8)

The test environment determination method according to claim 8, wherein the arithmetic device accepts changing at least one of the target requirements and the environment requirements when there is no combination of a test target and a test environment satisfying the target requirements and the environment requirements.
