AnsweredAssumed Answered

XML node counting in soap ui output

Question asked by tims.registration on Jan 23, 2018
Latest reply on Feb 6, 2018 by tims.registration

Hi All,

I want to count particular xml node from web service output xml file in soap UI. I have used Assertion xPath match functionality, but still no luck. Web service output is like the below :

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<doSelectResponse xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<doSelectReturn xmlns=""><![CDATA[<?xml version="1.0" encoding="UTF-8"?><UDSObjectList>
<UDSObject>
<Handle>chg:1509967</Handle>
<Attributes>
<Attribute DataType="2002">
<AttrName>chg_ref_num</AttrName>
<AttrValue>Chg #1121138</AttrValue>
</Attribute>
</Attributes>
</UDSObject>
<UDSObject>
<Handle>chg:1509562</Handle>
<Attributes>
<Attribute DataType="2002">
<AttrName>chg_ref_num</AttrName>
<AttrValue>Chg #1120733</AttrValue>
</Attribute>
</Attributes>
</UDSObject>
<UDSObject>
<Handle>chg:1509474</Handle>
<Attributes>
<Attribute DataType="2002">
<AttrName>chg_ref_num</AttrName>
<AttrValue>Chg #1120645</AttrValue>
</Attribute>
</Attributes>

 

 

Can anybody please help me in this, need to count the number of occurrence for change order ids.

Outcomes