Order the nodes in a wave
Use this procedure when independent nodes must run in a specified sequence. For example, a delete must not run before a search that needs the data.
Procedure
Give a positive
priorityto the node that must run first:hurl--- id: create priority: 1 --- POST {{base_url}}/notes { "title": "score" } HTTP 201Give no
priorityto the node in the middle. The default value is0.hurl--- id: search --- GET {{base_url}}/notes?q=score HTTP 200 [Asserts] jsonpath "$.items" count > 0Give a negative
priorityto the node that must run last:hurl--- id: delete priority: -1 --- DELETE {{base_url}}/notes/score HTTP 204Examine the plan:
bashhurl-orchestra --dry-run ./tests
Result
The three nodes are in the same wave. hurl-orchestra runs the priority groups in sequence: create, then search, then delete.
TIP
Use priority only for nodes that do not share data. If a node needs the output of a different node, use deps.
