Parameters are not considered by JMeter.

huangapple go评论56阅读模式
英文:

Parameters are not considered by JMeter

问题

I'm new to JMeter.

I'm trying to test this endpoint manually using JMeter:

@GetMapping("total-opportunities-value")
ResponseEntity<DashboardMetricDto> getTotalOpportunitiesValue(){}

that's the config I set to the Thread Group (same I use from postman):

Parameters are not considered by JMeter.

I don't know why the Authorization param is not considered because that's what I got in the logs of my app:

Parameters are not considered by JMeter.

PS: the problem is not in the token!

JMeter Report

Parameters are not considered by JMeter.

英文:

I'm new to JMeter.

I'm trying to test this endpoint manually using JMeter :

@GetMapping(&quot;total-opportunities-value&quot;)
ResponseEntity&lt;DashboardMetricDto&gt; getTotalOpportunitiesValue(){}

that's the config I set to the Thread Group (same I use from postman) :

Parameters are not considered by JMeter.

I don't know why the Authorization param is not considered because that's what I got in the logs of my app :

Parameters are not considered by JMeter.

PS: the problem is not in the token !

JMeter Report

Parameters are not considered by JMeter.

答案1

得分: 1

我认为你没有以正确的方式传递“parameter”。

虽然可以将其作为表单编码的请求体参数传递,

但我期望你需要添加一个HTTP Header Manager,并将其放在那里,以便作为Authorization头的一部分发送:

Parameters are not considered by JMeter.

英文:

I don't think you're passing the "parameter" in the correct way.

Although it's possible to pass it as a form-encoded body parameter

my expectation is that you need to add a HTTP Header Manager and put it there in order to send it as a part of Authorization header :

Parameters are not considered by JMeter.

huangapple
  • 本文由 发表于 2023年4月17日 18:00:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76033911.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定