Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.
This repository was 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

@TheBabaYaga

Description

@TheBabaYaga

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions