You are right, it tells you which lines were covered and you can infer from
the conditions why. It also does not tell how many times a line was
executed. So a line could be covered under different conditions multiple
times.
My suggestion is to convert those programs with left-hand indicators to
free form (using ARCAD or Linoma) and generations of programmers thereafter
will bless your name. :-)
Regards,
Edmund (E.H.) Reinhardt
Technical Architect for Rational Developer for i
Phone: 1-905-413-3125 | Home: 1-905-854-6195 IBM
E-mail: edmund.reinhardt@xxxxxxxxxx
RDi YouTube: 8200 Warden Ave
www.youtube.com/user/IBMRational#g/c/62DF24D5BCD43501 Markham, ON L6G 1C7
Find me on: LinkedIn: Canada
http://ca.linkedin.com/in/edmundreinhardt/
From: "Briggs, Trevor (TBriggs2)" <TBriggs2@xxxxxxxxxxx>
To: <wdsci-l@xxxxxxxxxxxx>,
Date: 30/04/2014 12:55 PM
Subject: Re: [WDSCI-L] RDI 9.1 Availability
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>
Aye, there's the rub. If you still have leviathan programs with
left-hand indicators this tool may tell you that your test went through
that instruction, but I'm guessing it probably won't tell you that
indicators 41, 23 and 94 were off and indicators 54 and 87 were on,
therefore the instruction didn't actually execute. If it does - then
kudos!
Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck
Calabro
Sent: Wednesday, April 30, 2014 11:43 AM
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] RDI 9.1 Availability
On 4/30/2014 10:50 AM, Jeff Crosby wrote:
What is "Line level code coverage analysis capability"
Charles gave a good reference, but here's an example.
I have a massive S/38 style leviathan of a program. It's got dozens of
TAGs and probably a hundred GOTOs. It's got lines conditioned by
indicators, groups of indicators. It's got IF statements 9 levels deep.
I made some changed and now I want to test this thing. How do I know
that I've tested all the possibilities?
With line level coverage, I can see which IF statements did not get
executed during my test run. That probably means my test database is
missing some customers that trigger the special conditions, so I add
those to my test database and run it again.
Some of the lines that weren't hit may be irrelevant: they were put in
during the 90s when we bought that other company out. Hey, now I can
see that I'll never need those lines again and can take them out! But
some of those lines are going to be important, and if we want to be sure
we've processed all the possible combinations (it can seem like
N-factorial!) line level coverage is a great start.
--buck
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
************************************************************************************************************************************************************************************************************
This message originates from Lincare Holdings Inc. It contains information
which may be confidential or privileged and is intended only for the
individual or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or use the
contents of this message.
All personal messages express views solely of the sender, which are not to
be attributed to Lincare Holdings Inc., and may not be copied or
distributed without this disclaimer.
If you received this message in error, please notify us immediately at
MailAdmin@xxxxxxxxxxx or (800) 284-2006.
************************************************************************************************************************************************************************************************************
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.