feat: 'extract' is used to replace 'output' when passing former teststep's (as a testcase) export value to next teststep

This commit is contained in:
debugtalk
2019-06-26 22:15:58 +08:00
parent d7ca38056d
commit f0df345c34
9 changed files with 102 additions and 23 deletions

View File

@@ -0,0 +1,34 @@
[
{
"config": {
"id": "create_user",
"variables": {
"device_sn": "TESTCASE_CREATE_XXX",
"uid": 9001
},
"output": [
"session_token"
],
"base_url": "http://127.0.0.1:5000",
"name": "create user and check result."
}
},
{
"test": {
"testcase": "testcases/setup.yml",
"extract": [
"session_token"
],
"name": "setup and reset all (override) for $device_sn."
}
},
{
"test": {
"testcase": "testcases/deps/check_and_create.yml",
"variables": {
"token": "$session_token"
},
"name": "create user and check result."
}
}
]