How to use variable "sampler" in JSR223 Sampler (JMeter)
<p>I'm finding the way to use the variable <code>sampler</code> in JSR223 Sampler, JSR223 PreProcessor, JSR223 PostProcessor, and all other JSR223 script.</p>

<p>There are some other variables like <code>vars</code>, <code>props</code>, <code>prev</code>, <code>SampleResult</code>. I can use them easily.</p>

<p>For example:</p>

<ul>
<li><code>vars</code>: vars.get("VARIABLE_NAME"), vars.put("VARIABLE_NAME","VALUE"), ...</li>
<li><code>props</code>: props.get, props.put, ...</li>
<li><code>prev</code>: prev.getTime(), prev.isSuccessful(), prev.getLatency(), ...</li>
<li><code>SampleResult</code>: SampleResult.getResponseCode(), SampleResult.getResponseMessage(), ...</li>
</ul>

<p>But I don't know how to use variable <code>sampler</code>. Only thing I can do with this variable is:</p>

<p><code>sampler.sample()</code>: It helps to returns the Name of current Sampler</p>

<p>So, could anyome please let me know there is any other way to use this variable?</p>

<p>Thanks in advance!</p>