apache / apache/jmeter

Implement "strict mode" where referencing an undefined variable in ${nonExistingVar} would fail

Open
#6,025 0 comments 1 reaction 0 assignees View on GitHub
enhancement to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Use case

Currently, a typo in variable name is hard to spot as it might silently pass to the downstream system unnoticed.

### Possible solution

It might be helpful if we implement opt-in "strict mode" so referencing unknown variables becomes error rather than acceptable behavior.

See:
* https://perldoc.perl.org/strict
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode

### Possible workarounds

_No response_

### JMeter Version

5.6

### Java Version

_No response_

### OS Version

_No response_

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.