Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

how to enable/disable an optional element on virtualize response

Options
jimboy
jimboy 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

  • williammccusker
    williammccusker Posts: 643 ✭✭✭
    Options

    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"

  • jimboy
    jimboy Posts: 33
    Options

    thanks. found it.