apache / apache/jmeter

$-expressions are not evaluated on client/master in distributed tests

Open
#5,896 2 comments 2 reactions 0 assignees View on GitHub
defect
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

In distributed testing ("master/slave") the evaluation of $-expressions works in ResultsCollector, BackendListener and User Defined Variables.

### Actual behavior

In distributed testing ("master/slave") the evaluation of $-expressions works in ResultsCollector, BackendListener but **not** User Defined Variables.

### Steps to reproduce the problem

Create simple Test having User Defined Variables and BackendListener.

User Defined Variables:
`TEST_PROFILE=${__P(activeProfileId)}`

BackendListener:
`profileId=${TEST_PROFILE}`

Run in distributed setup.

Client (master) does not evaluate $-expressions in User Defined Variables.
In the given case, the content of profileId is "`${__P(activeProfileId)}`" instead of the value passed by the property "`activeProfileId`".

Note: We already implemented a fix for this, Pull Request will follow soon.

### JMeter Version

5.5

### Java Version

OpenJDK Runtime Environment 18.9 (build 11+28)

### OS Version

openjdk version "11" 2018-09-25

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.