I have extracted the jwt token from the User login controller through my http service my test plan looks like this:
As seen 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(“BEARER”)));
But it doesn’t solve the issue. Please guide.
Source: Read More