CPC G06F 11/3688 (2013.01) [G06F 9/54 (2013.01); G06F 16/955 (2019.01)] | 20 Claims |
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.
|