mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 16:37:36 +08:00
32 lines
860 B
JSON
32 lines
860 B
JSON
{
|
|
"config": {
|
|
"name": "request methods testcase: validate with parameters",
|
|
"base_url": "https://httpbingo.bytedance.net"
|
|
},
|
|
"teststeps": [
|
|
{
|
|
"name": "get with params",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "/get",
|
|
"params": {
|
|
"a": 1
|
|
}
|
|
},
|
|
"validate": [
|
|
{
|
|
"check": "status_code",
|
|
"assert": "greater_than",
|
|
"expect": 199,
|
|
"msg": "check status code"
|
|
},
|
|
{
|
|
"check": "body.args.a",
|
|
"assert": "equal",
|
|
"expect": "1",
|
|
"msg": "check argument a"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |