How Are Variables Passed Between Steps in API Automation Cases?
How are variables passed between the previous and next steps when writing the API test automation script?
For example, to test API B, this API has an argument orderNumber whose value comes from the value of the number attribute in the response body of API A and changes dynamically. In this case, it is necessary to know how to dynamically pass the value of the number attribute in the response body of API A to the orderNumber argument of API B.
The API test provides response extraction to solve the variable passing problem. For details about the functions and operations, see Setting Response Extraction.
Was this page helpful?Provide feedback
For any further questions, feel free to contact us through the chatbot.Chatbot