英文:
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):
I don't know why the Authorization param is not considered because that's what I got in the logs of my app:
PS: the problem is not in the token!
JMeter Report
英文:
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) :
I don't know why the Authorization param is not considered because that's what I got in the logs of my app :
PS: the problem is not in the token !
JMeter Report
答案1
得分: 1
我认为你没有以正确的方式传递“parameter”。
虽然可以将其作为表单编码的请求体参数传递,
但我期望你需要添加一个HTTP Header Manager,并将其放在那里,以便作为Authorization头的一部分发送:
英文:
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 :
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论