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 » Unit testing a node?

Post new topic  Reply to topic
 Unit testing a node? « View previous topic :: View next topic » 
Author Message
sleepyjamie
PostPosted: Wed Aug 19, 2015 12:15 pm    Post subject: Unit testing a node? Reply with quote

Centurion

Joined: 29 Apr 2015
Posts: 135

I want to unit test a function within an ESQL node that performs a transformation. Does WMB Toolkit allow you to do this?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 19, 2015 12:22 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There's no method to execute ESQL code outside of the runtime.

Unless v10 has added this - I've not done much with v10.

For this kind of thing, I always make a very simple flow that uses MQInput/MQOutput and has a compute node that creates a fixed (or set of fixed) input messages. Or, of course, you could send a fixed/known message or set of messages to the input node.
Back to top
View user's profile Send private message
sleepyjamie
PostPosted: Wed Aug 19, 2015 12:41 pm    Post subject: Reply with quote

Centurion

Joined: 29 Apr 2015
Posts: 135

mqjeff wrote:
There's no method to execute ESQL code outside of the runtime.

Unless v10 has added this - I've not done much with v10.

For this kind of thing, I always make a very simple flow that uses MQInput/MQOutput and has a compute node that creates a fixed (or set of fixed) input messages. Or, of course, you could send a fixed/known message or set of messages to the input node.


Yeah that's what I guessed was to use an mq input/output node. Thanks!
Back to top
View user's profile Send private message
sleepyjamie
PostPosted: Thu Aug 20, 2015 6:01 am    Post subject: Reply with quote

Centurion

Joined: 29 Apr 2015
Posts: 135

Found an example of unit testing in IIB10.

https://www.ibm.com/developerworks/community/blogs/c7e1448b-9651-456c-9924-f78bec90d2c2/entry/unit_testing_a_message_flow_in_ibm_integration_bus?lang=en
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 20, 2015 6:05 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

sleepyjamie wrote:
Found an example of unit testing in IIB10.

https://www.ibm.com/developerworks/community/blogs/c7e1448b-9651-456c-9924-f78bec90d2c2/entry/unit_testing_a_message_flow_in_ibm_integration_bus?lang=en


Cool!

As I said, I haven't worked with v10 very much.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 20, 2015 6:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
sleepyjamie wrote:
Found an example of unit testing in IIB10.

https://www.ibm.com/developerworks/community/blogs/c7e1448b-9651-456c-9924-f78bec90d2c2/entry/unit_testing_a_message_flow_in_ibm_integration_bus?lang=en


Cool!

As I said, I haven't worked with v10 very much.


The flow exerciser is cool (and my experience is likewise somewhat limited).

It doesn't do exactly what the OP originally wanted; you can't take a function outside of the module and just test that. But it does revolutionize testing a single flow, and that includes a single flow that's the kind of harness described here to test a function.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Unit testing a node?
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.