Service Virtualization

  • 1.  Check on Return value of SharedModelMap

    Posted Oct 31, 2017 03:59 PM

    Hi All,

    I am working on SharedModelMap to insert some records on VSE and then accessing them using other service SMM.get request.

     

    I have a scenario where I have to assert if queried 'Key' has returned any value from SMM.

    If No value returned , have to perform other action. Else continue.

     

    I tried to read the property used for storing the returned value of SMM, but I am unable to find a way to ascertain if SMM is returning "null" .

     

    Assertion: Ensure Non-Empty results , returns True even if returned value is 'null'.

     

     

     

    Please help.

     

    Thanks,

    Dinesh Kumar



  • 2.  Re: Check on Return value of SharedModelMap

    Posted Oct 31, 2017 10:31 PM

    Can you share your code Dinesh?  Perhaps you can create a custom scripted assertion (Scripted Assertion - DevTest Solutions - 10.1 - CA Technologies Documentation) on the test step.  In the assertion you can check if the value of the key in your SMM is null or not and return true/false as required to route to the appropriate step.