mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 09:49:33 +08:00
fix code format
Change-Id: I583aa6344fff967285b024fddef9f45ac8ee2baf
This commit is contained in:
@@ -6,16 +6,12 @@ HttpRunner+ validation should follow the following format. `check`, `assert` and
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"check": "status_code",
|
"check": "status_code", // target field, usually used with jmespath
|
||||||
// target field, usually used with jmespath
|
"assert": "equals", // assertion method, you can use builtin method or custom defined function
|
||||||
"assert": "equals",
|
"expect": 200, // expected value
|
||||||
// assertion method, you can use builtin method or custom defined function
|
"msg": "check response status code" // optional, print this message if assertion failed
|
||||||
"expect": 200,
|
|
||||||
// expected value
|
|
||||||
"msg": "check response status code"
|
|
||||||
// optional, print this message if assertion failed
|
|
||||||
}
|
}
|
||||||
```
|
```g
|
||||||
|
|
||||||
The `assert` method name will be mapped to a built-in function with the following function signature.
|
The `assert` method name will be mapped to a built-in function with the following function signature.
|
||||||
|
|
||||||
|
|||||||
@@ -78,4 +78,4 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user