Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional Requests #677

Open
CamShft opened this issue Apr 2, 2019 · 0 comments
Open

Conditional Requests #677

CamShft opened this issue Apr 2, 2019 · 0 comments

Comments

@CamShft
Copy link

CamShft commented Apr 2, 2019

Hello @hassy ,

i tried to add a conditional request because the value is not setted all time.

i use Artillery version: 1.6.0-27
on windows env

that's code that i tried to add :

- get:
          url: "........./....."
          capture:
            json: $.items
            as: requests
- loop:
     - get:
              url:  "/resources/v1/suppliers/{{ $loopElement.supplierId }}"
              ifTrue: "$loopElement.supplierId not null"
              afterResponse: "logHeaders" 
  over: requests

i want to throw the call of the request only if $loopElement.supplierId is not null or undefined

thanks

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

No branches or pull requests

1 participant