Load Testing · Middle · Question 36 of 76
How do you pass a token from a login response to the next request in JMeter?
- 1Copy it into the test plan by hand before the test starts
- 2Use a Constant Timer so the token is saved automatically
- 3Extract it with a JSON or Regular Expression Extractor into a variable
Show the answer
Correct answer: Extract it with a JSON or Regular Expression Extractor into a variable
Explanation
Post-processors parse the response and store values as variables. The next sampler uses them, e.g. Bearer ${token}.