Service Virtualization

  • 1.  How to handle OR conditions in Assertions?

    Posted Jan 12, 2017 07:13 AM

    I have 100 conditions to met. For example, If variable equals value1 or value 2...value 100 then return true else false.

     

    Other than script assertion, how best to handle this scenario in DevTest 9.5.1?



  • 2.  Re: How to handle OR conditions in Assertions?

    Posted Jan 12, 2017 07:51 AM

    Hello Arup,

    Most of the assretions accept 2 parameters and are developed to met specific conditions. Scripted assertion, Java Script Step are the best options in my view. You can also write small code in Java and call that using Dynamic java execution step, if it's used across the DevTest suite.

     

    Kumar



  • 3.  Re: How to handle OR conditions in Assertions?

    Posted Jan 17, 2017 02:41 PM

    Hi Arup,

     

    Did Kumar's recommendations help you out?

     

    Regards,

    Reid



  • 4.  Re: How to handle OR conditions in Assertions?
    Best Answer

    Posted Jan 18, 2017 12:50 AM

    create a dataset with two columns(variable name and condition). route it further based on the match.