tests with token authentication

18 views
Skip to first unread message

Jose Miguel liriano

unread,
Jun 26, 2024, 12:14:52 PM (9 days ago) Jun 26
to JMeter Forum
hello;
I am trying to test an API that must first be authenticated so that a token is returned and with that token the API services are tested.

please help me.

DT

unread,
Jun 27, 2024, 2:58:55 AM (8 days ago) Jun 27
to JMeter Forum
So you need to authenticate first like
  1. Send a request (or several, depending on your authentication/authorization) setup using HTTP Request sampler
  2. Extract the token from the response using a suitable Post-Processor and save it into a JMeter variable
  3. Use HTTP Header Manager to add the token to the subsequent requests which need authentication

Reply all
Reply to author
Forward
0 new messages