Name: get with params
Request:
| headers |
User-Agent: HttpRunner/v4.0.0-alpha |
|---|---|
| method |
GET |
| params |
foo1: bar11 foo2: bar21 sum_v: 3 |
| url |
/get |
Response:
| body |
{
"args": {
"foo1": "bar11",
"foo2": "bar21",
"sum_v": "3"
},
"headers": {
"accept-encoding": "gzip",
"host": "postman-echo.com",
"user-agent": "HttpRunner/v4.0.0-alpha",
"x-amzn-trace-id": "Root=1-6252f868-0ebe09ab621836e03eea02b0",
"x-forwarded-port": "443",
"x-forwarded-proto": "https"
},
"url": "https://postman-echo.com/get?foo1=bar11\u0026foo2=bar21\u0026sum_v=3"
}
|
|---|---|
| cookies |
sails.sid: s%3Adb0Vd7d9QiMWEbCvufZYmIfzpL2lJ_of.WWWOojTLR01ZscK9ytY5aT33cacBFe1NL3q0od1hzHA |
| headers |
Connection: keep-alive Content-Length: 335 Content-Type: application/json; charset=utf-8 Date: Sun, 10 Apr 2022 15:31:52 GMT Etag: W/"14f-mSBUhm1nLF237bD7OcX4sm94RgA" Set-Cookie: sails.sid=s%3Adb0Vd7d9QiMWEbCvufZYmIfzpL2lJ_of.WWWOojTLR01ZscK9ytY5aT33cacBFe1NL3q0od1hzHA; Path=/; HttpOnly Vary: Accept-Encoding |
| proto |
HTTP/1.1 |
| status_code |
200 |
Validators:
| check | comparator | expect value | actual value |
|---|---|---|---|
| status_code | eq | 200 | 200 |
| body.args.foo1 | eq | bar11 | bar11 |
| body.args.sum_v | eq | 3 | 3 |
| body.args.foo2 | eq | bar21 | bar21 |
Statistics:
| content_size(bytes) | 335 |
|---|---|
| response_time(ms) | 1430 |
| elapsed(ms) | 1430 |