how to enable/disable an optional element on virtualize response

jimboyjimboy Posts: 33

I would like to use only one responder for mocking response. In the response, there are two fields that are optional elements. In case, the datasource values are blank. I don't want them to be send out as part of the response. However, if there are value in my datasource. I would like them to be send out. This works on soatest where it's check element if empty or not. Is there something similar on virtualize that can be applied. Thanks.

Comments

  • williammccuskerwilliammccusker Posts: 528 ✭✭✭

    Hi,

    To make sure I understand you want the element in the response to be excluded from the response when the value in the data source is empty? I believe what you are looking for is found by right-clicking on an element in the response and selecting "Use Data Source: Exclude with Empty String"

  • jimboyjimboy Posts: 33

    thanks. found it.

Sign In or Register to comment.