Forum Discussion
amarcilla
9 years agoOccasional Contributor
Hi Anton,
Any update related to the issue?.
Any other way to replace parameters?.
With this issue we can not work very much with automation
Thanks very much
Anna
AntonE
Alumni
9 years agoHi Anna
The issue isn't fixed yet. I can suggest a simple workaround though - using Groovy script to replace {} with "null" values. You should add a Groovy test step right after Property Transfer with the following script (assuming POST Request is your request with corrupted null fields):
import com.eviware.soapui.model.testsuite.TestStep
String request = context.expand( '${POST Request#Request}' )
String correctedRequest = request.replace("{}", "null")
TestStep testStep = testRunner.getTestCase().getTestStepByName("POST Request")
testStep.setPropertyValue("Request", correctedRequest)
Hope it helps.