Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Question; Can you loop over a step multiple times based on another step? #392

Open
TheBabaYaga opened this issue Feb 13, 2020 · 0 comments

Comments

@TheBabaYaga
Copy link

TheBabaYaga commented Feb 13, 2020

Hi,

I was wondering if it's possible to loop over a step multiple times based on the output of another step.

Use case:

We have 2 api calls;

  • api/collection
  • api/collection/{id}

The collection api call returns something like:

{ "data": [ { "id": "12345" }, { "id": "6789" } ] }

Based on this output, I want to run a test for each object inside the data collection so that in this case 2 times the detail step is ran.

  • api/collection/12345
  • api/collection/6789

I can't find any documentation about the possibility to execute a step based on another steps data. I know you can use the ctx var; but that's for passing a single value.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant