Forum Discussion

clay's avatar
clay
Contributor
7 years ago

XML checkpoints on un-ordered lists?

I would like to use an XML checkpoint to check a file that has a list of node items that appear in different orders each time the application is run.  I was hoping that the "Ignore Node Order" checkbox would do the trick, but apparently it does not.

 

By way of example:

Test Run #1 results

    <List>

        <Item>Item1</Item>

        <Item>Item2</Item>

    </List>

 

Test Run #2 results

    <List>

        <Item>Item2</Item>

        <Item>Item1</Item>

    </List>

 

I would like to create an XML checkpoint that accepts the results of Test Run #1 or Test Run #2 as a "Pass".  Is there anyway to do this without having to write a custom checkpoint script?

 

Thanks.

3 Replies