Skip to content

API Testing

4.5.1. Utilities for API Testing

AkaAT Studio tool support APIUtilities class to buildHttpClient, buildRequest, …

4.5.2. APIKeyword in a CustomKeyword

4.5.2.1. APIRequestKeyword

AkaAT Studio tool support APIRequestKeyword class to send api request and get information from ResponseObject response.

1.   APIRequestKeyword apiRequestKeyword = new APIRequestKeyword();
2.          apiRequestKeyword.getResponseBody(responseObject); //to get response body
3.          apiRequestKeyword.getResponseHeader(responseObject, header) // to get response header
4.          apiRequestKeyword.getResponseStatusCode(responseObject); //to get response status code
5.          apiRequestKeyword.sendAPIRequest(webServiceObject); // to send api request

4.5.2.2. VerifyKeyword

AkaAT Studio tool support multiple assertion for API testing in the VerifyKeyword class.