You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "vlsi (via GitHub)" <gi...@apache.org> on 2023/05/04 13:00:53 UTC

[GitHub] [jmeter] vlsi opened a new issue, #5878: Add Local Variables

vlsi opened a new issue, #5878:
URL: https://github.com/apache/jmeter/issues/5878

   ### Use case
   
   Use a temporary regexp extractor, and make sure the variable name does not accidentally collide with other variable.
   
   Currently, JMeter supports only global variables, which is a bad coding practice overall. We should lean towards scoped variables.
   
   ### Possible solution
   
   Implement `Local Variables` config element that would specify variable names that would become "local" to the controller.
   
   For instance:
   
   ```
   Transaction Controller
       Local Variables(names = {test})
       Http Sampler
           Regex Extractor(variable = {test})
   ```
   
   
   ### Possible workarounds
   
   _No response_
   
   ### JMeter Version
   
   5.5
   
   ### Java Version
   
   _No response_
   
   ### OS Version
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org