testing - XMLUtil not showing details of mismatched xml attributes -
i using qtp's xmlutil
compare 2 xmls. works fine except if there differences in tag elements. example,
in xml1, tag is:
<dirtybondprice pricetype="price" currency="gbp" weight1="02">110</dirtybondprice>
in xml2, tag is
<dirtybondprice pricetype="price" currency="usd" weight1="02">110</dirtybondprice>
code snippet
booleanresult = objxml1.compare(objxml2, objresultsxml) objresultsxml.savefile "c:\users\pankaj.jaju\desktop\6.xml"
so difference show follows
<mic_root state="mismatch"> <repotrade state="mismatch"> <specificdetail state="mismatch"> <dirtybondprice mic_elema_attr="%s="%s";%s="%s"" mic_elemb_attr="%s="%s";%s="%s"" state="mismatch" /> </specificdetail> </repotrade> </mic_root>
what expecting (and according qtp file should displayed):
<dirtybondprice mic_elema_attr="currency="gbp"" mic_elemb_attr="currency="usd"" state="mismatch" />
is bug in qtp's xmlutil api?
update there uft users out there can verify if problem reproduceable uft? because if qtp bug, won´t have chance patch developed...
Comments
Post a Comment