Contributions
SOAPUI 5.0 - REST mock - deploy as war
Hi, SOAPUI 5.0 rest mock is working awesome. I am not able to export mock responses as war as like SOAP. It says " project does not have any MockService to deploy". Experts, please help on this if this feature implement in 5.0. Thanks & Regards Saravanan Ramamoorthy4.9KViews0likes10CommentsRe: Adding headers using a script
Hi, Try the below code. def testStep = context.testCase.getTestStepList() testStep.each{ if ((it.config.type)=='request'){ def stepRequestName = it.name def tp = new com.eviware.soapui.support.GroovyUtils( context ) tp.setPropertyValue(stepRequestName,'header key', 'header value') } }833Views0likes0Comments- 626Views0likes0Comments
Re: Adding headers using a script
Hi EmBer, Please use the below code which changes the header property across all testsuite(including all testcase and teststep) testSuiteList = project.getTestSuites() testSuiteList.each{ testSuite = project.getTestSuiteByName(it.key) testCaseList = testSuite.getTestCases() log.info "TestSuite :: $testSuite.name" testCaseList.each{ testCase = testSuite.getTestCaseByName(it.key) wsdlTestSteps = testCase.getTestStepsOfType( com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.class ) //only WsdlTestRequest steps wsdlTestSteps.each{ it.properties['headerproperty1'].value = "headerproperty1 value") it.properties['headerproperty2'].value = "headerproperty 2 value") } } }833Views0likes0Comments