title: using variables in groovy context.expand expression
body: <p>I tried to automate a test case using groovy script and soapUI.</p>
  
  <p>Sending a soap request, I got a response contains a company list.
  What I'ld like to do is verifying names of listed companies.
  Size of the response array is not fixed.</p>
  
  <p>So I tried the script below just for the beginning but I got stuck..</p>
  
  <pre><code>def count = context.expand( '${Properties#count}' )
  count = count.toInteger()
  def i = 0
  while (i&lt;count)
      (
  def response = context.expand( '${getCompanyList#Response#//multiRef['+i+']/@id}' )
   log.info(response)
  i=İ+1   
      )
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script12.groovy: 6: unexpected token: def @ line 6, column 1. def response = context.expand( '${getCompanyList#Response#//multiRef['+i+']/@id}' ) ^ org.codehaus.groovy.syntax.SyntaxException: unexpected token: def @ line 6, column 1. at
  </code></pre>
  
  <p>I should somehow put "i" in the "response" definition..</p>