Test Plan-Thread-sample information using Jmeter Functions

In this following article we are going to see how can we retrieve current Test Plan , Thread and sample information. These are static, so they are rarely used.

-To get name of current running Test Plan
${__TestPlanName}
-Only used in function that calls the full test plan.

-To get number if thread currently running
${__threadNum} 
-It is independent thread wise.
-not useful for test plan

-To know the current sampler name
${__samplerName()}
-Not useful for test plan
-Sometime it can be used with header manager/cookie manager to get value from current sample


Thanks..:)

No comments:

Post a Comment