ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Comparing CWF messages

Post new topic  Reply to topic
 Comparing CWF messages « View previous topic :: View next topic » 
Author Message
goffinf
PostPosted: Tue Aug 17, 2010 9:43 am    Post subject: Comparing CWF messages Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 17, 2010 10:03 am    Post subject: Reply with quote

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
View user's profile Send private message
goffinf
PostPosted: Tue Aug 17, 2010 12:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Comparing CWF messages
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.