值得注意的是,我的请求在邮递员中有效。
我基本上有以下几点
scenarios:
- name: 'Hit the Endpoint'
flow:
- log: "Hit the endpoint"
- post:
url: "/endpoint"
headers:
accept: application/jwt
Content-Type: application/x-www-form-urlencoded
cache-control: no-cache
body:
token: blah
client_id: blah
client_secret: blah
token_type_hint: 'access_token'
expect:
- statusCode: 200
capture:
regexp: '[^]*'
as: 'result'
- log: 'result= {{result}}'当我从yaml文件中删除主体时,端点似乎被击中并发送回正确的消息。当我把身体放回去的时候,我会得到以下信息:
vusers.created_by_name.Hit the Endpoint: .................... 5
vusers.created.total: ....................................... 5
vusers.failed: .............................................. 5
errors.ERR_GOT_REQUEST_ERROR: ............................... 5发布于 2022-01-06 17:33:22
根据文档使用form而不是Body
https://stackoverflow.com/questions/70611094
复制相似问题