Forum Discussion
SmartBear_Suppo
SmartBear Alumni (Retired)
Hello,
Try this, and let me know does it helps,
robert
import com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory
suite = context.testCase.testSuite.project.addNewTestSuite("ali")
tc = suite.addNewTestCase("test case ali")
gs = tc.addTestStep( GroovyScriptStepFactory.GROOVY_TYPE, "ali's GroovyScript" )
gs.properties["script"].value = 'log.info(\'hello world\')'
context.testCase.testSuite.project.save()
Try this, and let me know does it helps,
robert
Davnm
8 years agoMember
Thanks for the example.
What I am trying to achieve is to dynamically create a SOAP UI request in its own test suite using groovy scripting. very similar to the example below but instead of GroovyScriptStepFactory, I need a SOAPScriptStepFactory if you know what I mean.
Related Content
- 6 years ago
Recent Discussions
- 24 hours ago
- 17 days ago