【发布时间】:2020-07-28 03:58:21
【问题描述】:
我使用的是 Jmeter 5.3,并且需要在同一端点发送带有 PathVariable AND RequestParam 的 PUT 请求。
例子:
@RequestMapping(value = "/authorize/{iduser}", method = RequestMethod.PUT)
public ResponseEntity<Void> authorizeUser(
@PathVariable Integer iduser,
@RequestParam(value = "idstore") Integer idstore,
@RequestParam(value = "typerequest") Integer type)
{ ...
我使用 HTTP REQUEST 组件
PUT -> <URL>/authorize/${iduser}
参数:
name | Value
idstore | 139
type | 1
但收到 400 BAD REQUEST。
{"timestamp":1595881241767,"status":400,"error":"Bad Request",
"message":"Required Integer parameter 'idstore' is not present","path":"/authorize/175"}
有什么建议吗?
【问题讨论】:
-
错误说还有
idplace -
对不起,我粘贴了其他堆栈。错误说关于 idstore。
标签: jmeter performance-testing request-mapping http-request-parameters