|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Comparing CWF messages |
« View previous topic :: View next topic » |
Author |
Message
|
goffinf |
Posted: Tue Aug 17, 2010 9:43 am Post subject: Comparing CWF messages |
|
|
Chevalier
Joined: 05 Nov 2005 Posts: 401
|
Most of our Message Broker flows use XML and therefore unit testing is relatively straight-forward in terms of comparing expected responses which actual responses (using libraries such as XML-Diff) BTW we drive our flows directly from JUnit.
We are now going to receive (and send) non-XML messages in a format as defined by a CWF message set (to/from IMS).
How can messages written [say] to an MQ queue using such a format be compared so as to satisfy units tests similarly to what we are doing with XML ?
Regards
Fraser |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 17, 2010 10:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Regular diff rather than XML-Diff?
To some extent, it depends on how much knowledge of the logical meaning of the response message you need to have in order to produce a comparison that is considered "meaningful".
But I'd be kind of surprised if this required anything more than a plain byte-level comparison, which the plain ordinary unix diff command will do. (windows fc command may be a suitable alternative). |
|
Back to top |
|
 |
goffinf |
Posted: Tue Aug 17, 2010 12:52 pm Post subject: |
|
|
Chevalier
Joined: 05 Nov 2005 Posts: 401
|
Yes, that's what I had in mind. I guess I am wary of data which is generated dynamically such as a current date-time where, depending on the resolution, creating an exact match in the expected response might be problematic. I don't know if that will be an issue in this particular case but I'm betting it will be at some point.
Thanks for the pointer and I agree, a semantic comparison is unlikely to be required, just syntax.
Regards
Fraser. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|