title: Jmeter vars.put doesnt save variable (jsr223 preprocessor groovy)
body: <p>I want to store variable in goovy and use them later on</p>
  
  <p>I get my initial value from "user defined variables" (these are set by maven)</p>
  
  <p>but when i change them and then put them they are not stored permanently</p>
  
  <p>so the effect works as followed:</p>
  
  <pre><code>... INFO ...: throughput was: 600
  ... INFO ...: throughput is now: 720
  ... INFO ...: throughput is now (get): 720
  ... INFO ...: throughput is now (get): 720
  ... INFO ...: throughput is now (get): 600
  ... INFO ...: throughput is now (get): 600
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>org.apache.jmeter.testelement.property.JMeterProperty;
  
  
  int troughtputEnabled = Integer.parseInt(vars.get("enableTroughput"));
  if(troughtputEnabled == 1){
      int req = Integer.parseInt(vars.get("idCounter"));
      int troughput = Integer.parseInt(vars.get("throughput"));
      if (req%100 == 0){
          log.info("throughput was: " +  troughput);
          troughput += 120;
          log.info("throughput is now: " +  troughput);
          vars.put("throughput",troughput+"");
          log.info("throughput is now (get): " +  vars.get("throughput"));
      }
      log.info("throughput is now (get): " +  vars.get("throughput"));
  
  }
  </code></pre>
  
  <p>Can someone see what i do wrong here (the logs are only for debugging)</p>