US 11,954,017 B2
Dynamic analysis of rest API testing in microservice architecture
Xiaojun Wu, Shanghai (CN); Jing J. Chen, Newton, MA (US); Muzhar S. Khokhar, Shrewsbury, MA (US); and Haijun Zhong, Shanghai (CN)
Assigned to Dell Products L.P., Round Rock, TX (US)
Filed by Dell Products L.P., Round Rock, TX (US)
Filed on Jan. 28, 2022, as Appl. No. 17/586,827.
Prior Publication US 2023/0244593 A1, Aug. 3, 2023
Int. Cl. G06F 21/57 (2013.01); G06F 9/54 (2006.01); G06F 11/36 (2006.01); G06F 11/07 (2006.01); G06F 11/30 (2006.01); G06F 11/34 (2006.01); G06F 21/62 (2013.01)
CPC G06F 11/3676 (2013.01) [G06F 11/3688 (2013.01); G06F 9/547 (2013.01); G06F 11/0766 (2013.01); G06F 11/3034 (2013.01); G06F 11/3428 (2013.01); G06F 11/3636 (2013.01); G06F 11/3664 (2013.01); G06F 11/3684 (2013.01); G06F 11/3692 (2013.01); G06F 21/577 (2013.01); G06F 21/6227 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A testing method for use in a microservice environment, wherein the testing method comprises:
executing a plurality of test cases on a target system comprising a plurality of microservices to produce representational state transfer application programming interface (REST API) tracing data comprising a plurality of tracing records corresponding to the plurality of test cases;
accessing the tracing data, wherein the target system includes a plurality of microservices configured in accordance with a representational state transfer application programming interface (REST API);
importing a definition of the REST API;
checking each of the tracing records for consistency with the REST API definition wherein said checking includes attempting to match the REST API definition with each tracing record via universal resource locator (URL) and hypertext transport protocol (HTTP) trace methods;
based on said checking of the tracing records, calculating one or more coverage metrics; and
responsive to any one or more of the one or more coverage metrics not exceeding a threshold coverage, selecting a testing action in accordance with the one or more coverage metrics, wherein the testing action is selected from a group comprising:
seeking additional API coverage; and
seeking additional test result coverage.