mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
59 lines
1.5 KiB
JSON
59 lines
1.5 KiB
JSON
[
|
|
{
|
|
"config": {
|
|
"name": "setup and reset all.",
|
|
"output": [
|
|
"session_token"
|
|
],
|
|
"verify": false,
|
|
"variables": {
|
|
"device_sn": "TESTCASE_SETUP_XXX",
|
|
"app_version": "2.8.6",
|
|
"os_platform": "ios",
|
|
"user_agent": "iOS/10.3"
|
|
},
|
|
"base_url": "http://127.0.0.1:5000",
|
|
"id": "setup_and_reset"
|
|
}
|
|
},
|
|
{
|
|
"test": {
|
|
"validate": [
|
|
{
|
|
"eq": [
|
|
"status_code",
|
|
200
|
|
]
|
|
},
|
|
{
|
|
"len_eq": [
|
|
"content.token",
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"api": "api/get_token.yml",
|
|
"extract": [
|
|
{
|
|
"session_token": "content.token"
|
|
}
|
|
],
|
|
"variables": {
|
|
"device_sn": "$device_sn",
|
|
"app_version": "2.8.6",
|
|
"os_platform": "ios",
|
|
"user_agent": "iOS/10.3"
|
|
},
|
|
"name": "get token (setup)"
|
|
}
|
|
},
|
|
{
|
|
"test": {
|
|
"variables": {
|
|
"token": "$session_token"
|
|
},
|
|
"api": "api/reset_all.yml",
|
|
"name": "reset all users"
|
|
}
|
|
}
|
|
] |