Bug 62511

Summary: only variables defined in HTTP recorder should be substitued in HTTP requests, but variables defined under the test plan are also substituted.
Product: JMeter - Now in Github Reporter: dwight7 <dwight7>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: enhancement CC: dwight7, p.mouawad
Priority: P4    
Version: 2.13   
Target Milestone: ---   
Hardware: All   
OS: All   

Description dwight7 2018-06-29 14:20:04 UTC
It is normal for variables defined under the HTTP recorder to be substitued in the recorded request ( like HOSTNAME = my.host.domain.com defined as a variable under the recorder will substitute $HOSTNAME whenever it encounters my.host.domain.com in the recording ).

However, i had the variable TIMER_DELAY=0 defined directly under the testplan (NOT in the http recorder). and whenever i recorded anything, it would be filled with $TIMER_DELAY variables where ever there had been a "0" in the request.

this is a bug.
Comment 1 UbikLoadPack support 2018-06-29 14:22:11 UTC
Hello,
It's not a bug, it's a feature currently, as there is no difference between User Defined Variables scope
So requalifying as enhancement.

Regards
Comment 2 The ASF infrastructure team 2022-09-24 20:38:14 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4813