title: JMeter does not replace ${SUBPANEL_RELATE_MODULE_g1} with its value
body: <p>It's a long story, but I will try make it simple:</p>
  <ol>
  <li><p>I generated <a href="http://github.com/sugarcrm/MeterMaid" rel="nofollow noreferrer">MeterMaid</a> XML files with <a href="http://github.com/sugarcrm/SugarMMM" rel="nofollow noreferrer">SugarMMM</a>; I chose only the Accounts module:</p>
  <p><img src="https://i.stack.imgur.com/cZyeH.png" alt="enter image description here" /></p>
  </li>
  <li><p>I converted above files to JMeter format with MeterMaid (I consolidated the tests into one file and named it &quot;filename.xml&quot;):</p>
  <pre><code> ruby GenMeter.rb --inputfile=filename.xml --outputfile=filename.jmx
  </code></pre>
  </li>
  <li><p>I did the necessary CSV setup. All the CSV file contains is the login details (<code>usr,pwd</code>) for testing concurrent user logins. This part works well indeed.</p>
  </li>
  </ol>
  <p>When I run the test, I can see that a whole bunch of <code>${}</code> variables are converted into corresponding values. Sadly, <code>${SUBPANEL_RELATE_MODULE_g1}</code> doesn't get resolved... here's what the GET url (from <strong>View Results Tree</strong> Listener component) looks like:</p>
  <pre><code>http://localhost/sugarcrm/index.php?module=${SUBPANEL_RELATE_MODULE_g1}&amp;action=Popup&amp;hide_clear_button=true&amp;mode=MultiSelect&amp;create=true&amp;metadata=undefined
  </code></pre>
  <p>Note that it's not the only variable that isn't resolved. The following screenshot shows the other tests that fail, all also caused by other variables not replaced by their corresponding values:</p>
  <p><img src="https://i.stack.imgur.com/LdKOB.png" alt="enter image description here" /></p>
  <p>Here's how this variable is set up (which is well before the time it's used):</p>
  <p><img src="https://i.stack.imgur.com/4Ins0.png" alt="enter image description here" /></p>
  <p>Here's what <strong><a href="http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Debug_Sampler" rel="nofollow noreferrer">Debug Sampler</a></strong> says:</p>
  <pre><code>JMeterVariables:
  CAMPAIGN_ID=CAMPAIGN_ID_ERROR
  CAMPAIGN_NAME=CAMPAIGN_NAME_ERROR
  CONTACT_ID=997a3171-aa60-b2d6-a457-4e0ba8b0052b
  CONTACT_ID_g=4
  CONTACT_ID_g0=onclick=&quot;send_back('Contacts','997a3171-aa60-b2d6-a457-4e0ba8b0052b');&quot;&gt;Prof
  CONTACT_ID_g1=onclick=&quot;send_back('Contacts','
  CONTACT_ID_g2=997a3171-aa60-b2d6-a457-4e0ba8b0052b
  CONTACT_ID_g3=');&quot;&gt;
  CONTACT_ID_g4=Prof
  CONTACT_NAME=Prof
  CONTACT_NAME_g=4
  CONTACT_NAME_g0=onclick=&quot;send_back('Contacts','997a3171-aa60-b2d6-a457-4e0ba8b0052b');&quot;&gt;Prof
  CONTACT_NAME_g1=onclick=&quot;send_back('Contacts','
  CONTACT_NAME_g2=997a3171-aa60-b2d6-a457-4e0ba8b0052b
  CONTACT_NAME_g3=');&quot;&gt;
  CONTACT_NAME_g4=Prof
  FOUND_ID=1
  JMeterThread.last_sample_ok=true
  JMeterThread.pack=org.apache.jmeter.threads.SamplePackage@3c1635
  MEMBER_OF_ID=d7c26344-cad8-0503-b02a-4e0cb4db3985
  MEMBER_OF_ID_g=4
  MEMBER_OF_ID_g0=onclick=&quot;send_back('Accounts','d7c26344-cad8-0503-b02a-4e0cb4db3985');&quot;&gt;searchSearchForm
  MEMBER_OF_ID_g1=onclick=&quot;send_back('Accounts','
  MEMBER_OF_ID_g2=d7c26344-cad8-0503-b02a-4e0cb4db3985
  MEMBER_OF_ID_g3=');&quot;&gt;
  MEMBER_OF_ID_g4=searchSearchForm
  MEMBER_OF_NAME=searchSearchForm
  MEMBER_OF_NAME_g=4
  MEMBER_OF_NAME_g0=onclick=&quot;send_back('Accounts','d7c26344-cad8-0503-b02a-4e0cb4db3985');&quot;&gt;searchSearchForm
  MEMBER_OF_NAME_g1=onclick=&quot;send_back('Accounts','
  MEMBER_OF_NAME_g2=d7c26344-cad8-0503-b02a-4e0cb4db3985
  MEMBER_OF_NAME_g3=');&quot;&gt;
  MEMBER_OF_NAME_g4=searchSearchForm
  OPPORTUNITY_ID=864e402f-0d76-ab6e-b54f-4e0cb42f0249
  OPPORTUNITY_ID_g=4
  OPPORTUNITY_ID_g0=onclick=&quot;send_back('Opportunities','864e402f-0d76-ab6e-b54f-4e0cb42f0249');&quot;&gt;value
  OPPORTUNITY_ID_g1=onclick=&quot;send_back('Opportunities','
  OPPORTUNITY_ID_g2=864e402f-0d76-ab6e-b54f-4e0cb42f0249
  OPPORTUNITY_ID_g3=');&quot;&gt;
  OPPORTUNITY_ID_g4=value
  OPPORTUNITY_NAME=value
  OPPORTUNITY_NAME_g=4
  OPPORTUNITY_NAME_g0=onclick=&quot;send_back('Opportunities','864e402f-0d76-ab6e-b54f-4e0cb42f0249');&quot;&gt;value
  OPPORTUNITY_NAME_g1=onclick=&quot;send_back('Opportunities','
  OPPORTUNITY_NAME_g2=864e402f-0d76-ab6e-b54f-4e0cb42f0249
  OPPORTUNITY_NAME_g3=');&quot;&gt;
  OPPORTUNITY_NAME_g4=value
  RANDOM_CHAR=o
  RANDOM_CHAR_g=1
  RANDOM_CHAR_g0=o
  RANDOM_CHAR_g1=o
  RANDOM_STRING=value
  RANDOM_STRING_g=1
  RANDOM_STRING_g0=value
  RANDOM_STRING_g1=value
  RECORD_NAME=NOT_FOUND
  RECORD_NUMBER=3250317d-6c79-b20d-5e36-4e0cb4746e84
  RECORD_NUMBER_g=2
  RECORD_NUMBER_g0=javascript:lvg_nav('Accounts', '3250317d-6c79-b20d-5e36-4e0cb4746e84
  RECORD_NUMBER_g1=javascript:lvg_nav('Accounts', '
  RECORD_NUMBER_g2=3250317d-6c79-b20d-5e36-4e0cb4746e84
  SEARCH_FIELD=SEARCH_FIELD_ERROR
  START.HMS=190308
  START.MS=1309453388621
  START.YMD=20110630
  SUBPANEL_RELATE_MODULE=Accounts
  TEAM_ID=seed-Teams8
  TEAM_ID_g=4
  TEAM_ID_g0=onclick=&quot;send_team_to_form('Teams','seed-Teams8');&quot;&gt;Ball
  TEAM_ID_g1=onclick=&quot;send_team_to_form('Teams','
  TEAM_ID_g2=seed-Teams8
  TEAM_ID_g3=');&quot;&gt;
  TEAM_ID_g4=Ball
  TEAM_NAME=Ball
  TEAM_NAME_g=4
  TEAM_NAME_g0=onclick=&quot;send_team_to_form('Teams','seed-Teams8');&quot;&gt;Ball
  TEAM_NAME_g1=onclick=&quot;send_team_to_form('Teams','
  TEAM_NAME_g2=seed-Teams8
  TEAM_NAME_g3=');&quot;&gt;
  TEAM_NAME_g4=Ball
  TESTSTART.MS=1309455500088
  pwd=user1
  usr=user1
  </code></pre>
  <p><strong>UPDATE</strong>:</p>
  <p>Here's after changing <strong>Template</strong> to <code>$1$$2$$3$$4$</code>:</p>
  <p><img src="https://i.stack.imgur.com/mTGgW.png" alt="enter image description here" /></p>
  <p>And here's the Debug output (the Sampler is put just after regex Controller):</p>
  <pre><code>JMeterVariables:
  JMeterThread.last_sample_ok=true
  JMeterThread.pack=org.apache.jmeter.threads.SamplePackage@18fde89
  RANDOM_CHAR=t
  RANDOM_CHAR_g=1
  RANDOM_CHAR_g0=t
  RANDOM_CHAR_g1=t
  RANDOM_STRING=Tanzania
  RANDOM_STRING_g=1
  RANDOM_STRING_g0=Tanzania
  RANDOM_STRING_g1=Tanzania
  RECORD_NAME=NOT_FOUND
  RECORD_NUMBER=DOCTYPE
  RECORD_NUMBER_g=1
  RECORD_NUMBER_g0=DOCTYPE
  RECORD_NUMBER_g1=DOCTYPE
  START.HMS=100932
  START.MS=1312531772599
  START.YMD=20110805
  SUBPANEL_RELATE_MODULE=Accounts
  TESTSTART.MS=1312542237235
  pwd=user1
  usr=user1
  </code></pre>