0
votes

I have recorded a native app in jmeter. It shows one auto-generated 'Authorization Manager' where username is appearing as '${Auth_Login}' and password as ${Auth_password}.

I am running the script but the response is appearing as :

"{"error":"No authorization header."}"

enter image description here

Please help me out to resolve this issue.

1

1 Answers

0
votes

You should extract the token which returns from the first response using a post processor (i.e regular expression extractor).

Now add this token to the next request's header manager like this:

  • Name: Authorization
  • Value: ${Token}

Note: you should check the request header using traffic capturing tool i.e fiddler, because these names might not be the same also the token sometimes looks like this Bearer ${Token}

See using regex with jmeter for more information on regular expression extractor.