title: How can we add SOAP request Test step in a Test Case using groovy scripts
body: <p>I am looking for adding a SOAP request Test step in a test case, from a different TestSuite and test case, i have already coded the part to add Groovy script for same requirement but not able to add a SOAP request test step. Any help?</p>
  
  <p>following is my code:</p>
  
  <pre><code>import com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory
  
  suite = context.testCase.testSuite.project.addNewTestSuite("AutomatedTestSuite")
  tc = suite.addNewTestCase("automatedTestCase")
  gs = tc.addTestStep( GroovyScriptStepFactory.GROOVY_TYPE, "GroovyScript1" )
  gs2 = tc.addTestStep( GroovyScriptStepFactory.GROOVY_TYPE, "GroovyScript3" )
  gs.properties["script"].value = 'log.info(\'hello world\')'
  </code></pre>