JMeter - How can I send token and using it to the next request?
How to send token with this request?
- I send POST request with the body: https://joxi.ru/MAjyLKZHj7lXN2
- I created Regular Expression Extractor to take a token: https://joxi.ru/LmGLPxGHwdPL32
- Then I put this token to the next POST request: https://joxi.ru/Y2L3PVBh7GPJGm
- After I run my test it fails: At LOGIN a take a token: https://joxi.ru/E2pjOoXi7eLMnr
BUT another request fails: https://joxi.ru/Vm6O80lf4ql8N2
After your Log_in thread group, the token is already stored in the BEARER variable.
You can access it on the Header Manager:
(Change key for BEARER and it should work)
Also be careful with typos, the name of the Header key is Authotization.