How to parameterize Bearer token authorization in Jmeter
<p>I have a jmeter login script where user logs in and logs out. The detailed screenshots are attached below.</p>
<p>Request data is as attached:
<a href="https://i.stack.imgur.com/4C819.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4C819.png" alt="The request data content " /></a></p>
<p>In the response date , the authorization token is generated:</p>
<p><a href="https://i.stack.imgur.com/Q0e1K.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Q0e1K.png" alt="enter image description here" /></a></p>
<p>And the regular expression for the same is as below: <a href="https://i.stack.imgur.com/FfnW0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FfnW0.png" alt="enter image description here" /></a></p>
<p>I am passing the value as parameter in 55/users:</p>
<p><a href="https://i.stack.imgur.com/1mI9K.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1mI9K.png" alt="enter image description here" /></a></p>
<p>When I'm running the script it is failing:
<a href="https://i.stack.imgur.com/Nisz6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Nisz6.png" alt="enter image description here" /></a></p>
<p>Here is the response data:</p>
<p><a href="https://i.stack.imgur.com/tnusq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tnusq.png" alt="enter image description here" /></a></p>