ovh / venom

🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions
Apache License 2.0
1.06k stars 144 forks source link

(enhancement) extend range to cover a test case with multiple steps #760

Closed ivan-velasco closed 3 months ago

ivan-velasco commented 11 months ago

Currently range is only supported at the individual step level only

Proposal: If present at steps level then each step will be part of range loop

  - name: read data file
    steps:
    - type: readfile
      path: testdata/test.json
      vars: 
        data:
          from: result.contentjson

  - name: run crud operations
    range: '{{.data}}'
    steps:
    - type: http
      method: GET
    - type: http
      method: PATCH
    - type: http
      method: GET
yesnault commented 3 months ago

@ivan-velasco if you use user executor, shouldn't be possible to have the same behavior?

ivan-velasco commented 3 months ago

@yesnault yes that is correct, that has been my final workaround for this feature request.