MMAKELA
11 years agoNew Contributor
Setting request attributes to nil via Groovy
I have a data-driven Test Case which loads data from Excel via DataSource and then uses in the SOAP request message. Some of the fields loaded from Excel are Date values and sometimes the source data can contain blanks. However, my Web Service doesn't except blank values in field that expects xsd:date, so they should be dynamically changed to nil (xsi:nil = true).
Is it somehow possible via Groovy script to set certain elements to nil? I have already tried to set the property value to null, but that is only converted into blank element in the property expansion.
Is it somehow possible via Groovy script to set certain elements to nil? I have already tried to set the property value to null, but that is only converted into blank element in the property expansion.