Skip to content

Would like to be able to define a variable in a stage to use in various places in that stage #364

Open
@pmneve

Description

@pmneve

In this stage:

 - name: -007C PUT update organization incomplete payload
     request:
       url: "{host}/v2/institutions/{institution_data.id}/organizations/{organization_data.id}/"
       method: PUT
       json:
         branded: !bool "true"
         organization_type: !int 8
         import_comment: "BP-5845-007C"
       headers:
         Accept: 'application/json, text/plain, text/html, */*'
         Accept-Encoding: 'gzip, deflate, br'
         Accept-Language: 'en-US,en;q=0.9'
         Authorization: "JWT {encode_web_token}"
         case_name: "BP-5845-007C"
    response:
       status_code: 400
       headers:
         content-type: "application/json"
       save:
         body:
           put_meta: meta
       body:
         $ext: 
         function: api_helpers:organization_error
             extra_kwargs:
               expected: "{organization_incomplete_expected}"
               targets: "{error_targets}"
               stage: "BP-5845-007C"

I'd like to be able to define a variable with the value "BP-5845-007C" that can be passed to import_comment, case_name, stage, etc.

Am using this to help identify which test-stage created data and/or what stage is running at the time an error is encountered when running through a debugger. Perhaps could then set a watch on the variable in debugger. (using Pycharm).

Any way of doing this?
If not can it be put in the list of enhancements?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions