How to log regular expression extractor value in results when ran through blaze-meter
1 Answers
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 nameOnce 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 LogsIf 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:
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

- 159,985
- 5
- 83
- 133