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 » Code Coverage - WBIMB

Post new topic  Reply to topic
 Code Coverage - WBIMB « View previous topic :: View next topic » 
Author Message
jainvik7
PostPosted: Wed Jun 20, 2007 4:23 am    Post subject: Code Coverage - WBIMB Reply with quote

Apprentice

Joined: 19 Feb 2006
Posts: 38

Hi,

I just wanted to know whether there are any code coverage utilities available for WBIMB.

Code coverage = Code coverage is a measure used in software testing. It describes the degree to which the source code of a program has been tested. It is distinct from black box testing methods because it looks at the code directly, rather than other measures such as software functions or object interfaces.

Thanks.[/b]
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 20, 2007 4:28 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Given that most of the code that is actually executed by Broker is IBM code, I'm not sure that there's a lot of value in this particular metric.

One would have to scale it down to cover only the user written code, which is usually very very small. And that means that the code coverage metric would be correspondingly very large. And that might not indicate anything about whether the flow as a whole is any darned good.

The flow could be wired entirely wrong for the business logic, but your test cases hit every line of user code you wrote.

I'm also not aware of any such tools. This doesn't mean there aren't any. The best place to start looking is in the Rational/Tivoli brands. If IBM has one, then likely someone else does.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
DE110283
PostPosted: Wed May 21, 2008 5:52 am    Post subject: SupportPac IAM2 available Reply with quote

Novice

Joined: 13 Jun 2007
Posts: 11

SupportPac IAM2: WebSphere Message Broker Toolkit – ESQL Code Coverage is now available under:

http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24019169&loc=en_US&cs=utf-8&lang=en

Abstract:
This SupportPac consists of a Perl script which generates a code coverage analysis report. A user trace log file and a source code file are required as input resources. The generated report is a plain text file which will show a high level analysis about how many percent of the source code was executed and also a detailed overview which lines of code where executed or not.
Back to top
View user's profile Send private message
Gemz
PostPosted: Wed Apr 28, 2010 12:23 am    Post subject: Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

Hi All,

We are trying to analyze and check whether the Test case covers all the business scenarios using this ESQL Code Coverage utility(http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24019169&loc=en_US&cs=utf-8&lang=en).

We could use this to utility get the results for only one cmf file (message flow) because we can give only one cmf file as an input parameter to the perl script.

Suppose if we have 10 test cases which covers test scenarios for 4 message flows(which are linked like one message flow output is an input for another message flow).

Here the Questions are:
1. Is it possible to get the user trace for all these 4 Message flow?
2. How to run the IAM2 utility to get the ESQL Code Coverage utility for all these test cases in single stretch?

Thanks in Advance
_________________
GemZ
"An expert is one who knows more and more about less and less until he knows absolutely everything about nothing...."
Back to top
View user's profile Send private message
DE110283
PostPosted: Wed Apr 28, 2010 1:21 am    Post subject: Reply with quote

Novice

Joined: 13 Jun 2007
Posts: 11

Hi Gemz,

ad 1: you can get user trace on message flow or execution group basis - so yes, if all message flows belong to the same EG then it is possible
ad 2: IAM2 was not designed to handle multiple message flows. The best solution for using IAM2 is to integrate it to an automated (script based) unit test solution. We had done this in our last engagement and it works fine (The solution was based on an ant script which executes a configurable number of junit test cases and takes the user trace files and invokes finally the IAM2).

Best regards
_________________
IBM Certified Solution Developer - WebSphere Message Broker V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.1
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 » Code Coverage - WBIMB
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.