How to find all places where variable is used in JMeter scenario?

I use JMeter to record HTTP scenario and do load testing. Now I need to correlate some values using Regular Expression Extractor, for example ${secure_id}, but I don't know how to find all requests where this variable is used. I can substitute this step by step, but it is necessary for me to do it automatically in all places where it is used. Thanks for any answer

Upvotes: 1

Views: 640

Answers (2)

Dmitri T
Dmitri T

Reputation: 168157

  1. Have you seen "Search" option in JMeter's main menu? It's available since JMeter 2.9 if not earlier

    JMeter Search

  2. As @Boyan suggests JMeter scripts are XML files so you can use your favourite text editor for bulk replacing hardcoded recorded value with the variable
  3. You can use a 3rd-party recorder which has SmartJMX mode. The main feature is automatic correlation of any detected entities. See How to Cut Your JMeter Scripting Time by 80% for details.

Upvotes: 1

Boka
Boka

Reputation: 347

You could open your TestPlan.jmx file with text editor notepad++ for example and find+replace all occurrences of ${secure_id} here is an example enter image description here

Upvotes: 2

Related Questions