Multiple HTTP Request per Test and data pipelining.

2 posts, 0 answers
  1. JMHamilton
    JMHamilton avatar
    6 posts
    Member since:
    Nov 2006

    Posted 02 Sep 2016 Link to this post

    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.

  2. Oleg
    Oleg avatar
    37 posts

    Posted 07 Sep 2016 Link to this post


    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.

    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
Back to Top