title: SoapUI - Increase property value for each test case
body: <p>I want to use a property ('currentId') which has a certain start value. For each test case the value should be increased by 1. I can do that by adding an extra test step in each test case which increases the value but that would be much copy paste. The code for that would be (see <a href="https://stackoverflow.com/questions/31056482/auto-increment-custom-properties-for-soapui-testsuite">reference</a>):</p>
  
  <pre><code>def uniqueUserPortion = testRunner.testCase.testSuite.project.getPropertyValue("currentId")
  // convert it to an Integer, and increment
  def uniqueUserPortionInc = uniqueUserPortion.toInteger() + 1
  // set the property back as string
  testRunner.testCase.testSuite.project.setPropertyValue("currentId", uniqueUserPortionInc.toString())
  </code></pre>
  
  <p>To avoid that copy&amp;paste I've added the code above to the Load Script of the project but it doesn't work:</p>
  
  <pre><code>testSuite.testCases.each {
      *code above*
  }
  </code></pre>
  
  <p>What can I do to use the code in one script/call for all test cases?
  I could define the property as the start value plus the test case ID but that would be a definition in each test case again since I can not reference the #TestCase#ID in project level/property.</p>