title: SoapUI datasource groovy script preload data
body: <p>I'm using SoapUI Pro, datasouce step from type groovy.</p>
  
  <p><strong>first part of my script:</strong></p>
  
  <pre><code>def url = "http://www.xmlfiles.com/examples/plant_catalog.xml"
  def slurper  = new XmlSlurper()
  def content = slurper.parseText(url.toURL().text)
  def allPlants = content.PLANT
  </code></pre>
  
  <p><strong>second part of my script:</strong></p>
  
  <pre><code>def row = testRunner.testCase.testSteps["groovyDS"].currentRow
  
  if (row &lt; allPlants.size()){
      result["zone"]=content.PLANT[row].ZONE
      result["light"]=content.PLANT[row].LIGHT
      result["price"]=content.PLANT[row].PRICE
  
  }
  </code></pre>
  
  <p>Currently all script run from the beginning every row. 
  I want the first part to run only once, and the second for each row </p>