feat: support setup/teardown hooks

Change-Id: I148e11c190859b57dd5268cfe5643762e43bd64a
This commit is contained in:
buyuxiang
2022-02-22 21:00:52 +08:00
parent 4992e2e87b
commit 82d9dce168
7 changed files with 56 additions and 1 deletions

View File

@@ -34,8 +34,15 @@
"variables": {
"b": 34.5,
"n": 3,
"name": "get with params",
"varFoo2": "${max($a, $b)}"
},
"setup_hooks": [
"${setup_hook_example($name)}"
],
"teardown_hooks": [
"${teardown_hook_example($name)}"
],
"extract": {
"varFoo1": "body.args.foo1"
},