title: SOAPUI Groovy - append list items to property
body: <p>I'm new SoapUi and Groovy;
  Trying to set and update (test case level) 2 properties, each iteration, from response of previous step request (called below "Get Media List").
  each iteration I need to append items from response, into the properties.</p>
  
  <p>Here's the script: </p>
  
  <pre><code>def fullMediaNameList = context.expand( '${#TestCase#MediaNameList}' )
  def currMediaNameList = context.expand( '${Get Media List#o_mediaNameList}' )
  AppendItemsToPropertyList(fullMediaNameList, currMediaNameList,"MediaNameList")
  
  def AppendItemsToPropertyList(fullListStr, currListStr, propToUpdate)
  {
      def fullList = []
      if (fullListStr != null &amp;&amp; fullListStr != "")
      {
          //cast to list
          fullList = Eval.me(fullListStr)
  
      }
  
      //specific list to append
      def currList = []
  
      if (currListStr != null &amp;&amp; currListStr != "")
      {
          //cast to list
          currList = Eval.me(currListStr)
  
      }
  
  
  fullList.addAll(fullList.size(), currList)
  testRunner.testCase.setPropertyValue( propToUpdate, fullList.toString() )
  </code></pre>
  
  <p>I call this method twice; once for property of media id, which working OK(!)
  and other, property called MediaNameList, and it fails with the following error:
  org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 1: unexpected token: HD @ line 1, column 21. [DMAX HD, RTL Nitro HD, ZDFNeo HD, Deutsches Wetter Fernsehen, Tele 5 HD, sixx HD, Sat.1 Gold, MTV, E! Entertainment, Disney Channel] ^ 1 error error at line: 8</p>
  
  <p>Why is this? if I understand right it has issues with the string converting, and tried other commands instead of Eval.me and it didn't help.
  e.g. <code>fullList = Arrays.asList(fullListStr)</code>
  Other solution is welcome!
  Thanks in advance, </p>