Skip to content

Runtime Properties

The Runtime Properties menu from the left panel lets you update JMeter Properties while the test is running:

Runtime Properties

These properties are initially defined in the JMeter tab of the User Profiles.

Name Description
User profile Name of the runtime profile owning this property
Key Name of the property
Value Value of the property
apply-allApply all Apply the value of this property to all others with the same key

The property value is updated as soon as you change the focus or click on apply all:

update-runtime-property

Manage different test environments

A common use of properties is to manage the test environment URL from the runtime screen.

This allows for more flexibility since this way you can test different environments using the same Virtual users. When you want to test a new environment you just need to create or edit a runtime profile:

property-url

And to use this property in the virtual user we will update the server so that all requests using this server will take input from the property. We use the property function configured this way ${__property(url,,petstore.octoperf.com)}:

property-server

With this syntax, we read from the url property if it exists, otherwise we use petstore.octoperf.com as a default value. This allows you to have a Virtual user that you can properly validate since the validation doesn't allow setting runtime properties. And at the same time you benefit from runtime properties during real tests if they exist.

Controlling hit rate

Combining a runtime property with the hit rate config allows you to edit the hit rate while the test is running.

Hit rate change

First you need to use a config like this one on every runtime profile ${__P(hits)}:

Hit rate config

Then on the same runtime profile create a runtime property with the same name hits:

Runtime hit

Then editing this property while the test is running will allow you to change the hit rate:

Hit rate change

This can be particularly convenient to pause the execution temporarily and resume it later.