1

How to log regular expression extractor value in results when ran through blaze-meter

Pasa
  • 37
  • 1
  • 4

1 Answers1

0

If you're a BlazeMeter customer it could make more sense to contact BlazeMeter Support, most probably you will get more quick and professional response than trying to ask random people over the Internet for their opinions.

Whatever. What do you mean by "log"?

  • If you need to write the value to jmeter.log file - just add __logn() function somewhere in your script like:

     ${__logn(My variable value is: ${foo},,)}
    

    replace ${foo} with your actual variable name

    Once test finishes you will see the variable value in the jmeter.log file (you can download it as a part of artifacts.zip bundle from your test Execution Logs

  • If you want to track the variable value per each sampler - the easiest option is to configure Sample Variables property and provide your variable value there:

    enter image description here

    this way you will see an extra column in the kpi.jtl file containing your variable value

Artifacts view containing kpi.jtl and jmeter.log files

enter image description here

Dmitri T
  • 159,985
  • 5
  • 83
  • 133