US 12,298,890 B2
Generation device, method of generation, and computer program product
Takeshi Sakoda, Tokyo (JP); Yumiko Sakai, Fujisawa Kanagawa (JP); and Tomonori Maegawa, Tokyo (JP)
Assigned to Kabushiki Kaisha Toshiba, Tokyo (JP)
Filed by KABUSHIKI KAISHA TOSHIBA, Tokyo (JP)
Filed on Aug. 30, 2022, as Appl. No. 17/823,199.
Claims priority of application No. 2021-182566 (JP), filed on Nov. 9, 2021.
Prior Publication US 2023/0141619 A1, May 11, 2023
Int. Cl. G06F 11/36 (2006.01); G06F 11/3668 (2025.01)
CPC G06F 11/3684 (2013.01) [G06F 11/3688 (2013.01); G06F 11/3692 (2013.01)] 8 Claims
OG exemplary drawing
 
1. A generation device comprising:
an analysis unit configured to analyze a definition file that defines a structure of web application programming interface (Web API) and generate structure analysis data of the Web API;
a test scenario generation unit configured to generate test scenario data of the Web API from a test setting file and the structure analysis data, the test setting file including a test type of the Web API and a test item depending on the test type; and
a test code generation unit configured to generate test code for testing the Web API based on the test scenario data,
wherein
the structure analysis data includes parameter information of the Web API;
the test type includes a parameter type of the Web API;
the test item depending on the parameter type includes at least one of an upper limit, a lower limit, a standard value, and an abnormal value according to the parameter type; and
the test scenario generation unit generates test scenario data in which a parameter specified from the parameter information of the Web API is tested, as a test item depending on the parameter type, at least for one of the upper limit, the lower limit, the standard value, and the abnormal value according to the parameter type.