Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Feature: setNextRequest #67

Closed
jgroom33 opened this issue Oct 19, 2018 · 1 comment
Closed

Feature: setNextRequest #67

jgroom33 opened this issue Oct 19, 2018 · 1 comment

Comments

@jgroom33
Copy link
Collaborator

Postman provides this capability:
https://www.getpostman.com/docs/v6/postman/collection_runs/building_workflows

Typically, this is used after a response param is evaluated

@jgroom33
Copy link
Collaborator Author

jgroom33 commented Oct 19, 2018

Possible implementation:

version: 1

requests:
  todoOne:
    url: https://jsonplaceholder.typicode.com/posts
    method: POST
    data:
      json:
        foo: 1
  todoTwo:
    if:
      operand: Value(todoOne.foo)
      equals: 2
    url: https://jsonplaceholder.typicode.com/todos/2
    method: GET

Only the first request above would execute. todoTwo should create a logging event as skipped

@eykrehbein eykrehbein changed the title setNextRequest Feature: setNextRequest Oct 19, 2018
@jgroom33 jgroom33 mentioned this issue Oct 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant