Service Virtualization

 View Only
  • 1.  How to capture exact XML tag's value in Assertions?

    Posted Jan 11, 2017 07:03 AM

    We can use Assertion "Ensure Property Matches Expression". However, for example, if a value is Arupa it will be passed but I want to check for Arup only. How best to capture these in an Assertion?



  • 2.  Re: How to capture exact XML tag's value in Assertions?
    Best Answer

    Broadcom Employee
    Posted Jan 11, 2017 10:22 AM

    Hello - 

     

    Have you tried using the assertion Highlight Text Content for Comparison?

     

    Highlight Text Content for Comparison - DevTest Solutions - 9.1 - CA Technologies Documentation 

     

    If that does not help, you can using the Scripted Assertion and create your own assertion using Java BeanShell

     

    Scripted Assertion - DevTest Solutions - 9.1 - CA Technologies Documentation 

     

    Hope this helps.



  • 3.  Re: How to capture exact XML tag's value in Assertions?

    Posted Jan 17, 2017 02:39 PM

    Arup,

     

    Did Stephanie's recommendations help you out?

     

    Regards,

    Reid