Forum Discussion

spailkar's avatar
spailkar
Occasional Visitor
9 years ago

Handling test request with Mandatory and Optional tags

Hello,

 

There is a webservice in my project having some mandatory and optional tags. For optional tags, if the data is blank then expected format of tag is

<MaturityDateFrom i:nil="true" />

 

however, if data exist then expected format would be

<MaturityDateFrom>some data</MaturityDateFrom>

 

Now while calling the request using SoapUI, is there an option available in SoapUI to handle both cases at run-time using groovy(with assumption that data will be feeded from external files like txt or excel) or some in-built soapUI functionality? or

I will have to create multiple test requests handling different combinations of mandatory and optional tags. Example, one with only mandatory tags and second with mandatory and optional tags.

 

 

No RepliesBe the first to reply