title: Eexecute groovy code in soapui cucumber project
body: <p>I am trying to run existing SoapUI tests with Cucumber for a customer.
  I have use this example <a href="https://www.soapui.org/docs/test-automation/junit/junit-integration/" rel="nofollow noreferrer">https://www.soapui.org/docs/test-automation/junit/junit-integration/</a></p>
  <p>The test execution in Cucumber works fine for SoapUI test cases with REST Requests.</p>
  <p>But my customer also uses groovy code in a few test cases. All test cases with groovy code shows in result (test runner) an error.</p>
  <p><strong>My question:</strong> Is it possible to execute groovy code via Cucumber/JUnit?</p>
  <p>I'm not sure in the documentation i haven't found anything about it.</p>
  <p>This is my groovy code:</p>
  <pre><code>def ec00Configuration = testRunner.testCase.getTestStepByName(&quot;Configuration&quot;)
  def response = new JsonSlurper().parseText(context.expand( '${Request#Response}' )).message
  def dealerId = response.find{it.name == ec00Configuration.getPropertyValue(&quot;dealerName&quot;)}?.id
  log.info &quot;Id of dealer is : ${dealerId}&quot;
  // move to property for demo!
  testRunner.testCase.testSuite.setPropertyValue(&quot;dealerId&quot;,dealerId)
  </code></pre>