Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.

On this page

Show all

Help Center/ CodeArts TestPlan/ FAQs/ How Are Variables Passed Between Steps in API Automation Cases?

How Are Variables Passed Between Steps in API Automation Cases?

Updated on 2023-11-28 GMT+08:00

Symptom

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.

Solution

The auto API test provides the response extraction function to transfer variables between pre-steps and post-steps. For details about the functions and operations, see Setting Response Extraction.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback