javaspringtestingjmetermanual-testing

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) :

enter image description here

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

enter image description here

PS: the problem is not in the token !

JMeter Report

enter image description here


Solution

  • 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 :

    enter image description here