I have scenario wherein I am able to call a service with 200 response code from Karate, but it's not returning response data because of some error in the stored procedure (database server down). In this case, I want to first call & check the relevant stored procedure from Karate & if it's returning data successfully, I should then call the API. How can one call/check the stored procedure from Karate?
I tried looking for material to achieve this, but no luck.
I should be able to check the data/availability of the stored procedure before calling the service from Karate. Also, if there is any error with the stored procedure, same should be included in the logs for troubleshooting.