Author |
Message
|
Pavan Kumar PNV |
Posted: Wed Mar 18, 2009 2:44 am Post subject: MQ Testing |
|
|
 Acolyte
Joined: 03 Feb 2007 Posts: 66
|
Any pointers on how typical test cases would look like for applications that use MQ look? _________________ _____________
Pavan Pendyala
http://pavanz.blogspot.com |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Wed Mar 18, 2009 2:52 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
Question is a little vague, but you could try something like....
1) put test message to the queue
2) check the response message is as expected or that the data got updated correctly - ie check the application has done what its supposed to! |
|
Back to top |
|
 |
Pavan Kumar PNV |
Posted: Wed Mar 18, 2009 3:02 am Post subject: |
|
|
 Acolyte
Joined: 03 Feb 2007 Posts: 66
|
I am trying to write a set of re-usable components that can be used by application developers for their interaction with MQ. For this I am trying to gather how typical test cases look. For instance, how often do applications use dynamic queues and if using them, what would those testing requirments look like. _________________ _____________
Pavan Pendyala
http://pavanz.blogspot.com |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Mar 18, 2009 3:05 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Here are some things you don't need to test.
That persistent messages survive a queue manager restart.
That messages will be delivered across a channel if the channel disconnects and reconnects.
That MQ will do everything required to deliver a message once it has told you that it has accepted the message.
That MQ will not accept individual physical messages larger than 100MB. |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Wed Mar 18, 2009 3:16 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
I'm guessing the testing requirements for using a temporary queue will be the same as those for using a normal queue.....
Can the application put / get the messages from the queue as expected?
As to whether you use dynamic queues or not this really depends upon the messaging patterns you wish to use (eg dynamic q vs static queue where applications get responses by correlid), once these are decided you could then add testing requirements to ensure these patterns arent violated. |
|
Back to top |
|
 |
exerk |
Posted: Wed Mar 18, 2009 4:19 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Pavan Kumar PNV wrote: |
...how often do applications use dynamic queues... |
As often as they need to create them! The application design will dictate whether temp dyn, perm dyn, or 'static' queues are required.
My own take on this sort of thing is to have input to the development process, e.g. best practice documents, enforced standards etc., but DON't do their work for them...an example follows: http://www.mqseries.net/phpBB2/viewtopic.php?t=48268 _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
|