title: Some time my groovy unable to set Soapui Project property though I have written the proper code
body: <p>I am facing some problem with groovy code and <code>SoapUI</code>.  <code>Groovy</code> code works fine some times and some times not.</p>
  
  <p><strong>Example:</strong>  I have written a piece of groovy script which use to set project property of SoapUI and another piece of groovy Script to enable the TestSuite and TestCase if it is disabled. </p>
  
  <p>But the problem here, it is working very inconsistently .  </p>
  
  <pre><code>//To set Project Property
  //Get Project
  def getProject = testRunner.testCase.testSuite.project
  
  //Set Project IP Property in Project level
  def IP = context.expand( '${Properties#IP}' )
  getProject.setPropertyValue( "Project_IP", "$IP")
  
  //To enable TestSuite if its disable
   //get Project
  def getProject = context.testCase.testSuite.project
   //get Test Suite Name
  def TestSuite_Name = context.expand( '${DataSource#TestSuite_Name}' )
  log.info TestSuite_Name
  
  //Enable the TestSuite
  getProject.getTestStepByName(TestSuite_Name).setDisabled(false)
  </code></pre>