US 11,709,769 B2
Method for testing a microservice application
Michael Pönitsch, Pullach i. Isartal (DE); and Martin Metzker, Poing (DE)
Assigned to SIEMENS AKTIENGESELLSCHAFT, Munich (DE)
Filed by Siemens Aktiengesellschaft, Munich (DE)
Filed on Sep. 22, 2021, as Appl. No. 17/481,382.
Claims priority of application No. 20199353 (EP), filed on Sep. 30, 2020.
Prior Publication US 2022/0100649 A1, Mar. 31, 2022
Int. Cl. G06F 11/36 (2006.01); G06F 11/30 (2006.01)
CPC G06F 11/3692 (2013.01) [G06F 11/3075 (2013.01); G06F 11/3089 (2013.01); G06F 11/3688 (2013.01)] 10 Claims
OG exemplary drawing
 
1. A method for testing a microservice application with at least one microservice with at least one application programming interface, comprising:
reading characteristic data of the at least one application programming interface of the at least one microservice of the microservice application and ascertaining at least one endpoint of the at least one application programming interface of the at least one microservice, wherein queryable response data of the at least one microservice are defined by way of the at least one endpoint of the at least one application programming interface of the at least one microservice;
automatically generating an execution script on a basis of the characteristic data of the at least one application programming interface of the at least one microservice, wherein the execution script defines at least one data query for invoking the at least one endpoint of the at least one application programming interface of the at least one microservice and for querying queryable response data and at least one transfer characteristic of a data transfer of the queryable response data, and wherein the at least one transfer characteristic of the data transfer of the queryable response data facilitates an assessment of a provision of the queryable response data from the at least one microservice as a response to the at least one data query of the execution script;
automatically generating a test infrastructure, wherein the test infrastructure comprises at least one client entity, and wherein the at least one client entity is set up to execute the at least one data query of the execution script and receive corresponding response data from the at least one microservice;
executing the execution script and transmitting the at least one data query of the execution script by the at least one client entity to the at least one application programming interface of the at least one microservice and receiving corresponding response data of the at least one microservice by the at least one client entity; and
ascertaining the at least one transfer characteristic of the data transfer of the queryable response data by the at least one client entity.