title: JMeter: doesn't increment counter value
body: <p>I'm working on a load test for Eclipse RAP-based application in JMeter. I need to replace requestCounter in each http request with variable. Variable should be incremented by 1 in next requests.</p>
  
  <p>Tried to use JMeter's <em>__counter</em> function <em>${__counter(FALSE)}</em> for my <em>${COUNTER}</em> variable:</p>
  
  <p>1) in User Defined Variables (didn't increment counter <a href="http://screencast.com/t/5MP1ovdHJN5p" rel="nofollow">http://screencast.com/t/5MP1ovdHJN5p</a>),</p>
  
  <p>2) in CSV Data Set (function body was inserted instead of number <a href="http://screencast.com/t/mUIaYF3Oc" rel="nofollow">http://screencast.com/t/mUIaYF3Oc</a>).
  Replaced <em>${__counter(FALSE)}</em> with <em>${__javaScript(${__counter(FALSE)})}</em> - still no success.</p>
  
  <p>3) Counter config element brings the same result as User Defined Variable - not incrementing value for next request.</p>
  
  <p>Plan:</p>
  
  <p>+Thread_group</p>
  
  <p>+Counter config element/User Defined Variables/CSV Data Set</p>
  
  <p>+Request group</p>
  
  <p>++ HTTP request1: {"head":{"requestCounter":${COUNTER}} #should be 1</p>
  
  <p>++ HTTP request2: {"head":{"requestCounter":${COUNTER}} #should be 2</p>
  
  <p>++ HTTP request2: {"head":{"requestCounter":${COUNTER}} #should be 3
  ...</p>
  
  <p>Any suggestions?﻿</p>