Created
May 13, 2019 17:52
-
-
Save barbaromatrix/59197cc9a267edd5d266639f7540e90a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scenarios: | |
- name: "Resource Scenario" | |
flow: | |
- get: | |
url: "/a/group/of/random/resources" | |
afterResponse: logResponse | |
capture: | |
json: $ | |
as: data | |
- log: "Result: {{ data }} \n" | |
- patch: | |
url: /a/specific/resource | |
beforeRequest: setupData | |
afterResponse: logResponse | |
json: | |
userId: "{{ userId }}" | |
ifTrue: "isDataAllowedToBeUsed" | |
capture: | |
json: $ | |
as: another_data | |
- log: "Another return: \n {{ another_data }}\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment