You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add explicit dependencies between certain requests
Is your feature request related to a problem?
In some cases, a request may depend on the success of another, the idea would be to deliver an interface to declare what the dependencies are and what to do if any dependent request fails or has an error.
Example:
requests:
- name: createmethod: postbody:
name: foovars:
user_id: ${{response.json()["id"]}}
- name: deletemethod: deletepath: /${user_id}depends:
# Actions to be taken when some dependency status is not successful.# The values must be the statuses that exist today ("failed", "error")skip_on: errorfail_on: failed# Name of requests that needs to be executed successfullyrequests:
- create
Do you have any suggestions on how to add this feature in scanapi ?
Feature request
Description the feature
Add explicit dependencies between certain requests
Is your feature request related to a problem?
In some cases, a request may depend on the success of another, the idea would be to deliver an interface to declare what the dependencies are and what to do if any dependent request fails or has an error.
Example:
Do you have any suggestions on how to add this feature in scanapi ?
It maybe necessary to add a hashmap with the request name and status to the
scanapi.session.Session
object so that it can be accessed in other requests. You would also need to create theskip
status inscanapi.console.write_result()
,scanapi.test_status.TestStatus
and in thereport.hml
templateThe text was updated successfully, but these errors were encountered: