Search code examples
testingjmeterautomated-testsweb-api-testing

JMeter: Group results by header authorization?


Is there a report or some way I can show the end to end journey of a single thread based on say an authorization token in JMeter?

For example say I have the following HTTP requests:

  • Registration
  • Add Product
  • Add Payment Details
  • Submit

And then the report to show the following:

  • Authorization code 1: Registration successful, Add Product successful, Add Payment Details successful, Submit successful
  • Authorization code 2: Registration successful, Add Product successful, Add Payment Details successful, Submit failed
  • Authorization code 3: Registration failed, Add Product failed, Add Payment Details failed, Submit failed

Is this possible? I just want a simple way to see this without having to use View Results Tree and backtrack.


Solution

    1. Extract the header value using i.e. Regular Expression Extractor
    2. Add the resulting JMeter Variable as a prefix or postfix to your Sampler Labels

      enter image description here