I have extracted the JWT token from the User login controller Rest API(taken endpoints from swagger) and my test plan looks like this
As you can see in the images in login request it takes the header of Breakdown Configuration and it doesn't take authorization token value pass as a JSON object in Bearer ${token} although I have extracted it in JSON extractor and debug sampler shows it.
I have also used the once only controller but it doesn't solve the issue. Please help in the nested Header Manager and how to use it correctly. Even I have used Bean Shell processor under my GETALL Bd-config request and pass the command:
import org.apache.jmeter.protocol.http.control.Header;
sampler.getHeaderManager().add(new Header("Authorization","Bearer " + vars.get("token")));
But it doesnt solve the issue. Please guide. My jwt token expiration time is 1 hour