× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 6/9/2014 6:02 AM, Aaron Price wrote:
I have once again tested this, but with no luck :(

Using the following procedure,
Right click on my program object > Code Coverage (prompt) > Batch
Leave all tabs at default except for:
https://dl.dropboxusercontent.com/u/3229426/start.png
and
https://dl.dropboxusercontent.com/u/3229426/Append.png

Teardown code is as follows:
https://dl.dropboxusercontent.com/u/3229426/Teardown.png

In the teardown code above the close mode of GetClientRate (which is the
API that I am running code coverage for) switches LR *on and returns
(which I suspect may be the cause of the issue ?!?)

Running the coverage gives me exactly the same results: No Main
procedure coverage at all (identified by buck as an issue with programs
with prototyped entry parameters) and coverage which only covers one of
the test cases.

Spooled output from the run shows that all test cases have run:

*** Tests from TSB.GETCLR ***
Success. 45 test cases, 131 assertions, 0 failure, 0 error.

Running the same RUCALLTST command with a breakpoint on one of the lines
which the coverage report shows in RED (Not Run), breaks during three of
the test cases, proving that this line is covered by multiple test
cases.

Try as I might, I cannot get my RDi to produce the same behaviour. I
wrote a simple RPG program that takes one parameter. If 'open' it does
a RETURN, if 'close' it sets on LR. Created a test, put the 'close' in
the teardown and fired it off. Append to previous shows each and every
test being called, not just the last one.

I suggest opening a PMR. I Bet the developers would love to understand
this behaviour and fix it. I'm going to be off the grid for a week, so
I can't do any more testing until I get back.

Thanks for your patience and participation!
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.