XML transactional message testing
Does anyone have any experience in testing (validating) XML messages from mainframe applications? We are manually checking the output XML messages against the contents of our mainframe application. Unfortunately the mainframe app does not always generate the XML tags in the same order for each XML message. We cannot therefore do a simple text comparison between different XML messages. Is there another way to speed up the testing?
Re: XML transactional message testing
(A) Set it up so that the mainframe does generate the XML tags in the same order for each XML message?
(B) Write a little application (in the language of your choice) to take the output from the mainframe and normalize it so that each message is the same in structure?
Unfortunately I have no specific solutions for you given what I know about your setup but your problem is that the mainframe does not generate the same structure each time. It seems the only way around that is to change the mainframe messaging routine (probably not likely) or change the output after the fact to make it amenable to what you need (which might be more trouble than it is worth, depending upon the volume of messages we are talking about here).