Forum Discussion
9 Replies
Sort By
- omatzuraSuper ContributorHi Srinivas,
sure, what kind of teststep do you want to add?
regards,
/Ole
eviware.com - srinivas_das_lContributortestrequest the operation addTestStep
- omatzuraSuper ContributorHi!
please clarify the name of the interface and operation you want to create the request-step for.
Thanks in advance!
regards,
/Ole
eviware.com - srinivas_das_lContributorinterface name : DiseAccountBinding
operation name : CreateAccount - omatzuraSuper ContributorHi!
ok.. please try the following:// get operation
def op = testRunner.testCase.testSuite.project.interfaces["DiseAccountBinding"].operations["CreateAccount"]
// create config
def config = com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestRequestStepFactory.createConfig( op, "Name of Request" )
// add to testcase
testRunner.testCase.addTestStep( config )
let me know how it works!
regards,
/Ole
eviware.com - srinivas_das_lContributorHi Ole,
wht u have written,absolutely working fine for testcase level scripting i.e if we add a groovy script in testcase and execute it but My query is about testSuite
In testSuite level how is the code?? - omatzuraSuper ContributorHi!
oh.. sorry.. my mistake.. try// get operation
def op = testSuite.project.interfaces["DiseAccountBinding"].operations["CreateAccount"]
// create config
def config = com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestRequestStepFactory.createConfig( op, "Name of Request" )
// add to testcase
def testCase = testSuite.testCases["Desired TestCase"].addTestStep( config )
regards!
/Ole
eviware.com - srinivas_das_lContributorHi Ole,
I am getting the following error
groovy.lang.MissingPropertyException: Exception evaluating property 'createAccount' for java.util.ArrayList, Reason: groovy.lang.MissingPropertyException: No such property: createAccount for class: com.eviware.soapui.impl.wsdl.WsdlOperation - omatzuraSuper ContributorHi!
please show your entire script!
regards,
/Ole
evwiare.com
Related Content
Recent Discussions
- 6 days agoruchisingh