simonjdonnelly
10 years agoContributor
Setting Request Properties - stripWhitespaces and removeEmptyContent using Groovy
Hi, As part of a clean up exercise with Soap UI/Ready API, I would like to be able to set the value of two Soap Test Request properties: 1. Strip whitespaces 2. Remove empty content I ha...
- 10 years ago
Figured it out - very simple in the end :manembarrassed:
for( testSuite in testRunner.testCase.testSuite.project.getTestSuiteList() ) { for( testCase in testSuite.getTestCaseList() ) { for( testStep in testCase.getTestStepList() ) { if( testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep ) { testStep.getTestRequest().setStripWhitespaces(true) testStep.getTestRequest().setRemoveEmptyContent(true) } } } }