Table of Contents

JMeter - Variable

About

Variable are used to parametrize a test plan.

Scope

JMeter variables have thread scope. This is deliberate, so that threads can act independently.

Variables

Before the test start

Variables Definition

You can define an initial set of variables within:

Jmeter Test Plan Variable

All the UDV elements in a test plan - no matter where they are - are processed at the start.

User variables per Thread

Some test plans need to use different values for different users/threads.

For example, you might want to test a sequence that requires a unique login for each user.

Jmeter Different User Login By Thread

Command Line

You can change the values of variable on the command-line only by using a property.

After the test start

Passing variable between thread

To pass variable between thread when the value is not known until the test starts, you may use:

Documentation / Reference