IP Library Granted Patent US 12,536,095
Granted Patent B2
US 12,536,095 · App. 18/277,334 · Granted Jan 27, 2026

Test code generator, test code generation method, and, test code generation program

Inventors: Sho Kanemaru (Musashino, JP); Yukitsugu Sasaki (Musashino, JP); Kensuke Takahashi (Musashino, JP); Tsuyoshi Toyoshima (Musashino, JP)
Assignee: NTT, Inc.
G06F11/3684G06F9/541
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,536,095
App. No.
18/277,334
Granted
Jan 27, 2026
Kind
B2
Abstract

A test code generation device includes an action generation unit that acquires at least one of pieces of API-related data of an API specification, an API execution order file, a parameter setting file, a script setting file, a test type, and a parameter list and generates action code data corresponding to an action of a state transition pattern of an API adapter, and the test code generation unit that generates a test code of the API adapter based on the action code data generated by the action generation unit and the state transition pattern of the API adapter.

Claims (37)

1 . A test code generation device comprising:

a memory storing instructions; and

one or more processors configured to execute the instructions to perform operations comprising:

acquiring application program interface (API)-related data and generating action code data corresponding to an action of a state transition pattern of an API adapter, wherein: the API-related data includes at least one of an API specification, an API execution order file, a parameter setting file, a script setting file, a test type, or a parameter list,

generating template code data serving as a template of a test code based on the API specification,

generating execution order code data reflecting an execution order using the API execution order file and the template code data,

generating parameter reflection code data reflecting parameter correspondence using the parameter setting file and the execution order code data,

generating script reflection code data reflecting a script using the script setting file and the parameter reflection code data,

deleting one or more parameters from the script reflection code data to generate the action code data,

generating a parameter pattern using the parameter setting file and the parameter list, and

generating a machine executable instantiation of test code of the API adapter based on the action code data, the parameter pattern, and the state transition pattern of the API adapter.

2 . The test code generation device according to claim 1 , wherein the state transition pattern includes a plurality of actions, and the action code data is generated for each action.

3 . The test code generation device according to claim 1 ,

wherein generating a machine executable instantiation includes:

generating the state transition pattern of the API adapter based on a state transition table and a state transition number of the API adapter, and

combining the state transition pattern and the action code data generated by the action generation unit to generate the test code of the API adapter.

4 . The test code generation device according to claim 1 ,

wherein the action of the state transition pattern includes:

at least one of a start indicator, a pause indicator, or a reset indicator.

5 . A test code generation method comprising:

acquiring application program interface (API)-related data and generating action code data corresponding to an action of a state transition pattern of an API adapter, wherein: the API-related data includes at least one of an API specification, an API execution order file, a parameter setting file, a script setting file, a test type, or a parameter list;

generating template code data serving as a template of a test code based on the API specification;

generating execution order code data reflecting an execution order using the API execution order file and the template code data;

generating parameter reflection code data reflecting parameter correspondence using the parameter setting file and the execution order code data;

generating script reflection code data reflecting a script using the script setting file and the parameter reflection code data;

deleting one or more parameters from the script reflection code data to generate the action code data;

generating a parameter pattern using the parameter setting file and the parameter list; and

generating a machine executable instantiation of test code of the API adapter based on the action code data and the state transition pattern of the API adapter.

6 . A non-transitory recording medium storing a test code generation program, wherein execution of the test code generation program causes a computer to perform operations comprising:

acquiring application program interface (API)-related data and generating action code data corresponding to an action of a state transition pattern of an API adapter, wherein: the API-related data includes at least one of an API specification, an API execution order file, a parameter setting file, a script setting file, a test type, or a parameter list;

generating template code data serving as a template of a test code based on the API specification;

generating execution order code data reflecting an execution order using the API execution order file and the template code data;

generating parameter reflection code data reflecting parameter correspondence using the parameter setting file and the execution order code data;

generating script reflection code data reflecting a script using the script setting file and the parameter reflection code data;

deleting one or more parameters from the script reflection code data to generate the action code data;

generating a parameter pattern using the parameter setting file and the parameter list; and

generating a machine executable instantiation of test code of the API adapter based on the action code data, the parameter pattern, and the state transition pattern of the API adapter.

Assignments (3)
CHANGE OF NAME Recorded Aug 14, 2025
From: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
To: NTT, INC.
Reel/Frame 072460/0605 →
CHANGE OF NAME Recorded Aug 14, 2025
From: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
To: NTT, INC.
Reel/Frame 073460/0980 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 15, 2023
From: KANEMARU, SHO; SASAKI, YUKITSUGU; TAKAHASHI, KENSUKE; TOYOSHIMA, TSUYOSHI
To: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
Reel/Frame 064596/0722 →
Continuity (1)
Related Publication 20240095153A1 · Mar 21, 2024
References Cited (7)
US 7337431B1 · Barnes · 2008 [cited by examiner]
US 8935371B2 · Gebhart · 2015 [cited by examiner]
US 9177452B1 · Mosterman · 2015 [cited by examiner]
US 20030046658A1 · Raghavan · 2003 [cited by examiner]
US 20190188116A1 · Roth · 2019 [cited by examiner]
US 20220138091A1 · Kanemaru et al. · 2022 [cited by applicant]
WO WO2020175161 · 2020 [cited by applicant]