Forum Discussion
MMAKELA
11 years agoNew Contributor
SmartBear Support wrote: Hello,
Try giving the Property a name and the value = null. Let me know if this works for you.
Regards,
Temil
This doesn't work as expected. My request looks like this:
<cp:date-value>
<cp:date>
<com:value>${#TestCase#date1}</com:value>
</cp:date>
</cp:date-value>
If I set the date1 property to null with Groovy, the generated request will contain a blank in the value element:
<cp:date-value>
<cp:date>
<com:value></com:value>
</cp:date>
</cp:date-value>
What I want to have is a nil value in the value element:
<cp:date-value>
<cp:date>
<com:value xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</cp:date>
</cp:date-value>