I am making a Rest API POST call, the test shows the “Send Request Successfully” however I see no Method to handle the response of the request, and I also note that even if the API request is made with invalid values the log response is the same “Send Request Successfully” so this is actually not an indicator of a valid request ( a response of a 200 code) So…
How do I validate a API POST request and extract values from the response body ?
Where do I view the response from an API request?
I want to validate and log the response code and extract and use in further requests specific contents of the Body:
This is an example of the returned request (using soap ui ) I am looking to of course capture the “access_token”
You could create a Web Service Request object from Object Repository and view the response using Test Request button in Web Service Request manual view.
How do I validate a API POST request and extract values from the response body?
To answer your question, please see an example below:
Create new Web Service Request in Object Repository with