ReadyAPI Integration with TestComplete
As I'm a beginner in TestComplete, I'm interested to know how can we do the following flows where I need to deal with both API and UI tests.
Before I begin my UI tests, I need to do the following API calls
1) Call POST Request
2) Get the response from the above POST request and store the particular attribute value in variable "X"
3) Call GET Request with the value stored from the variable "X"
4) Get the response from the above GET request in step#3 and store the particular attribute value in variable "Y"
5) Call GET Request with the value stored from the variable "Y"
6) Initiate the browser with URL, Use the value stored from the variable "Y"
Tried:
>>I initially start with this<<https://support.smartbear.com/testcomplete/docs/testing-with/advanced/sending-receiving-requests/in-keyword-tests.html#working-with-responses>> but I didn't see any option that how to mention the body-media type: multipart/form-data and get an incorrect response from API calls.
>>So moved on with READY API Integration<<https://youtu.be/gBxt1HYtD9U?t=168>> where I did my API calls as intended and now I'm struggling at the final step where I need to get and store the particular attribute value from the response into the READY API Created Global/Custom property and pass it to test complete.
Any help is greatly appreciated and let me know the best practices if any.