mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
add httpbingo test
Change-Id: I41911d2a723ac64d5aa0cdf6b3f99b2554c6a196
This commit is contained in:
32
examples/httpbingo_test.json
Normal file
32
examples/httpbingo_test.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user