User Activity

  • Modified a comment on discussion Help on XML Unit

    I'm talking about Map { } inside <entry key="groups_objects"> <value> <List> <Map> <entry key="display" value="Agggrp1"/> <entry key="value" value="S013S71EMLN"/> </Map> <Map> <entry key="display" value="Agggrp5"/> <entry key="value" value="S013S71GTU6"/> </Map> <Map> <entry key="display" value="Agggrp7"/> <entry key="value" value="S013S71HVU6"/> </Map> </List> </value> </entry>

  • Posted a comment on discussion Help on XML Unit

    I'm talking about Map { } inside ~~~ <entry key="groups_objects"> <value> <list> <entry value="Agggrp1" key="display"> <entry value="S013S71EMLN" key="value"> </entry></entry> <entry value="Agggrp5" key="display"> <entry value="S013S71GTU6" key="value"> </entry></entry> <entry value="Agggrp7" key="display"> <entry value="S013S71HVU6" key="value"> </entry></entry> </list> </value> </entry> ~~~

  • Modified a comment on discussion Help on XML Unit

    I've used below DiffBuilder using XMLUnit-2 diff = DiffBuilder.compare(control).withTest(test).checkForSimilar() .normalizeWhitespace().ignoreComments() .ignoreWhitespace().ignoreElementContentWhitespace() .withNodeFilter(node -> (filter(node, attrsToIgnore))) .withAttributeFilter(fields -> (filterFields(fields, fieldsToIgnore))) .withNodeMatcher(new DefaultNodeMatcher(ElementSelectors.byNameAndText)).build(); It works well for shuffling the List<> values or random value in List<> as shown below...

  • Modified a comment on discussion Help on XML Unit

    I've used below DiffBuilder using XMLUnit-2 diff = DiffBuilder.compare(control).withTest(test).checkForSimilar() .normalizeWhitespace().ignoreComments() .ignoreWhitespace().ignoreElementContentWhitespace() .withNodeFilter(node -> (filter(node, attrsToIgnore))) .withAttributeFilter(fields -> (filterFields(fields, fieldsToIgnore))) .withNodeMatcher(new DefaultNodeMatcher(ElementSelectors.byNameAndText)).build(); ```` It works well for shuffling the `List<>` values or random value in `List<>` as shown...

  • Posted a comment on discussion Help on XML Unit

    I've used below DiffBuilder using XMLUnit-2 diff = DiffBuilder.compare(control).withTest(test).checkForSimilar() .normalizeWhitespace().ignoreComments() .ignoreWhitespace().ignoreElementContentWhitespace() .withNodeFilter(node -> (filter(node, attrsToIgnore))) .withAttributeFilter(fields -> (filterFields(fields, fieldsToIgnore))) .withNodeMatcher(new DefaultNodeMatcher(ElementSelectors.byNameAndText)).build(); ```` It works well for shuffling the `List<>` values or random value in `List<>` as shown...

  • Posted a comment on discussion Help on XML Unit

    Thanks you Stefan, this will help :) On Tue, May 12, 2020 at 10:27 PM Stefan Bodewig bodewig@users.sourceforge.net wrote: Sorry I was busy elsewhere and forgot to answer here. Starting out with you ElementSelector that would use byNameAndAttributes("key") for entry - and whatever else is needed, you'd only end up with CHILD_LOOKUP differences for things the server has added and CHILD_NODELIST_LENGTH. The later could be downgraded easily in a DifferenceEvaluator using DifferenceEvaluators.downgradeDifferencesToSimilar....

  • Posted a comment on discussion Help on XML Unit

    Thanks Stefan, Assume, I have localTestXML as <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE ResourceObject PUBLIC "my_corp.dtd" "my_corp.dtd"> <ResourceObject displayName="TESTNGAD\AggUserFSP test" identity="FooBar" objectType="account" uuid="{97182a65-61f2-443c-b0fa-477d0821d8c4}"> <Attributes> </entry> <entry key="homePhone" value="6555"/> <entry key="l" value="Pune"/> <entry key="memberOf"> </Map> </Attributes> </ResourceObject> But, server Response can keep on increasing. It might add newer...

  • Modified a comment on discussion Help on XML Unit

    I already have implemented it using CSV but my data is complex so I turned to XMLUnit library. My server can returns data of 100s of Users/Groups etc and I've to validate some of them. Considering above given XML, I can specify data into CSV as below identity,accountFlags,homePhone "FooBar",(Not_to_Validate),6555 "FooBar1",["list data1","list data2"],6555 Here , you can notice, in first row of CSV 1. I mentioned only very few partials entrys to validate and also ignored (filtered out) accountFlags=(Not_to_Validate)....

View All

Personal Data

Username:
swapnilvkotwal
Joined:
2020-04-10 11:55:59

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB