Skip to content

Using environment variables in Bruno Cli #453

@biroska

Description

@biroska

Hello,

I have a CI/CD pipeline that executes tests described in the Bruno API.
We have several scenarios where part of the response from one service is used in the call to the next service.
These scenarios are working correctly in the Bruno client. Is there a way to reproduce this behavior in the Bruno CLI for pipeline execution?

Flow example:
Call to Service A which performs authentication and generates a token;
Sets an envVar with the token value

Use the token generated in Service A to register an item via Service B;
Defines an envVar with attributes from the body returned by service B;

Use part of the return from Service B + the token from Service A to execute Service C which queries the object registered in step 2.

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