Forum Discussion

UnitTesters's avatar
UnitTesters
Contributor
11 years ago

[Res] DataSoruce with mandatory and non mandatory fields

Hi

I have a large data source of approx 1000 records which I would like to read and submit in one test cycle, my problem is that my WSDL has some mandatory and non-mandatory fields and when the XML is built it includes blanks for the non-mandatory which returns errors.

It is not possible to have the non-mandatory fields set with an expected value of "0".

Is there any way in SOAP UI to read in the data from the excel ignoring the blank columns or to not include the values in the XML that is built.

Apologies if I am explaining this very well.

An example of this would be I have field addressline1 (mandatory), addressline2 (non-mandatory). In some cases on the excel addressline2 is provided and for other not in the cases where addressline2 is not populated the insert test step is failing.

I am using SoapUI Pro 4.5.1.

Any help with this issue would be greatly appreciated.

Thank you

14 Replies