This is a migrated thread and some comments may be shown as answers.

Multiple HTTP Request per Test and data pipelining.

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
JMHamilton
Top achievements
Rank 1
JMHamilton asked on 02 Sep 2016, 11:59 PM

How does one take the response from one request and use the data to set the variables on the next request of a test? I have a test that creates a sale, returns an ID, and the sale is confirmed with that ID. The documentation isn't clear how'd I'd pass the resulting data to the next request.

 

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Oleg
Telerik team
answered on 07 Sep 2016, 08:03 AM
Hi,

I am sorry that the documentation was not usable enough for helping you setup your tests. We will consider what could be improved for users' first time experience.

You could use a Set Variable step to extract the data you need from your request response. In the Set Variable step you can use JSONPath to define which part of the response body to store into a new variable.

Once you have extracted your variable (the sale ID for example), you can reference it in a next step - you can see here for more info.

I would recommend checking our sample project - it contains sample steps that provide examples of extracting and reusing variables.

We are working on the further improvement of the extraction and reuse of variables. Please feel free to provide your feedback or feature requests in our Feedback Portal or vote for already logged requests that you would like to see implemented.

Regards,
Oleg
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
JMHamilton
Top achievements
Rank 1
Answers by
Oleg
Telerik team
Share this question
or