US 12,130,732 B2
System and method for performing automated API tests
Ramanathan Sathianarayanan, Dublin, CA (US); and Krishna Bharath Kashyap, Telangana (IN)
Assigned to Concentrix CVG Customer Management Group Inc., Cincinnati, OH (US)
Filed by CONCENTRIX CVG CUSTOMER MANAGEMENT GROUP INC., Cincinnati, OH (US)
Filed on May 22, 2023, as Appl. No. 18/321,689.
Application 18/321,689 is a continuation of application No. 17/857,886, filed on Jul. 5, 2022, granted, now 11,675,691.
Application 17/857,886 is a continuation of application No. 16/583,110, filed on Sep. 25, 2019, granted, now 11,379,348, issued on Jul. 5, 2022.
Claims priority of provisional application 62/865,072, filed on Jun. 21, 2019.
Prior Publication US 2023/0418732 A1, Dec. 28, 2023
Int. Cl. G06F 11/36 (2006.01); G06F 9/54 (2006.01); G06F 16/955 (2019.01)
CPC G06F 11/3688 (2013.01) [G06F 9/54 (2013.01); G06F 16/955 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method for ad-hoc batch testing of APIs, the method comprising:
obtaining a plurality of API tests, and test data and validation data for the plurality of API tests;
performing validation for each test of the plurality of API tests, wherein performing the validation includes:
generating a test payload for the respective test, wherein generating the test payload includes:
determining an API reference corresponding to the respective test;
obtaining relevant data from the test data according to a reference key in the respective test, wherein the reference key indicates if one or more parameters in the API reference is a string that indicates the relevant data;
generating input assignment operations for one or more input parameters in the API reference according to the relevant data; and
generating an API call based on the API reference;
calling an endpoint corresponding to the respective test using the test payload;
receiving a response from the endpoint for the test payload; and
validating the response according to the validation data; and
generating and outputting one or more test reports based on the validated responses.