如何使用JMeter在同一端点上发送带有可变路径参数和请求参数的PUT请求?

如何使用JMeter在同一端点上发送带有可变路径参数和请求参数的PUT请求?,jmeter,performance-testing,request-mapping,http-request-parameters,Jmeter,Performance Testing,Request Mapping,Http Request Parameters,我使用的是Jmeter 5.3,需要在同一个端点中使用路径变量和请求参数发送PUT请求 例如: @RequestMapping(value = "/authorize/{iduser}", method = RequestMethod.PUT) public ResponseEntity<Void> authorizeUser( @PathVariable Integer iduser, @RequestPa

我使用的是Jmeter 5.3,需要在同一个端点中使用路径变量和请求参数发送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)
            { ...
但是收到一个错误的请求。


有什么建议吗?

将参数作为路径的一部分:

PUT -> <URL>/authorize/${iduser}?idstore=139&typerequest=1
PUT->/authorize/${iduser}?idstore=139&typerequest=1

此外,您可能还需要使用application/json发送内容类型标题,并将参数作为路径的一部分:

PUT -> <URL>/authorize/${iduser}?idstore=139&typerequest=1
PUT->/authorize/${iduser}?idstore=139&typerequest=1

另外,您可能需要发送带有application/json的Content-type头文件,错误说明还有
idplace
对不起,我粘贴了其他堆栈。错误是关于idstore的。错误是还有
idplace
对不起,我粘贴了其他堆栈。错误说明了idstore。
{"timestamp":1595881241767,"status":400,"error":"Bad Request",
"message":"Required Integer parameter 'idstore' is not present","path":"/authorize/175"}
PUT -> <URL>/authorize/${iduser}?idstore=139&typerequest=1