Hi Danny,
Keep in mind that if you are running code coverage with a *SRVPGM you should have a start and an end, just like you would for a debug session. Most *SRVPGM don't end by themselves. So my guess is your program is waiting for a signal to end.
So you may need to wrap a caller. If any of your programs stay active until a user exits, you need to actually exit the screen or end the program.
I generally run them as debug first, then when I have the wrapper programs running in a debug environment, I run code coverage. I add calls to the wrapper programs to invoke any code that wasn't excecuted from an earlier run until either all code has coverage, or I'm at a comfortable %. With a *SRVPGM you can generally call enough wrapper programs to excersize all of the paths.
You can cancel the code coverage generation by opening the Status Bar and pressing the red stop button.
For the PDF code coverage report, once the code coverage is done, you'll be prompted for saving the report, so you get to choose where you save it.
Hope this helps!
Steve Ferrell
-----Original Message-----
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Danny Hayes
Sent: Thursday, March 21, 2019 10:01 AM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WDSCI-L] [EXT] Icons for RDi Perspectives
Steve,
First thanks, second, on the Edit configuration and launch I clicked on Generate PDF Report. Where do I go to find it? Ummmm, the message in the lower right hand corner has been saying Running code coverage well over an hour now, is that normal?
Thanks & Regards,
Danny Hayes
IT-Developer
Genuine Parts Company, APG IT
3100 Windy Hill Road
Atlanta, Georgia 30339
mailto:Danny_Hayes@xxxxxxxxx
(904) 502-2969
"People will forget what you said, people will forget what you did, but people will never forget how you made them feel." - Maya Angelou
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Steve Ferrell via WDSCI-L
Sent: Thursday, March 21, 2019 9:01 AM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxxxxxxxx>
Cc: Steve Ferrell <Steve.Ferrell@xxxxxxxxxxxxxxx>
Subject: Re: [WDSCI-L] [EXT] Icons for RDi Perspectives
Hi Danny,
If you haven't found the information yet, you can include as many programs as you wish.
I generally start from the Object Table view, Objects and type the library I want, part of the name* I want and *PGM or *SRVPGM. (You can even use *PGM* and it will find both *PGM and *SRVPGM.) Then if I'm working with it a lot I add the source member, the *PGM object, and any create command members I use on the scratch pad to find it easier.
Make sure it's been created with debug listing so it can be debugged.
Right-click on the *PGM or *SVRPGM and select "Set service entry point".
Then open the IBM I Service Entry Points tab and right-click on the SEP and toggle on Code Coverage Mode.
Now right-click again and select the option, Open Launch Configuration.
From the tab, "What To Analyze", you can add as many programs to be analyzed for code coverage.
If you change your source, make sure to recompile and refresh the SEP. (There is an RFE asking to do this automatically on a compile.)
There are several helpful videos provided by some great trainers if you Google "RDi code coverage".
Keep in mind that the source Code Coverage opens up is a copy of your source, not to be edited directly.
Hope this helps!
Steve Ferrell
"This email and any attachments, contain Genuine Parts Company confidential information that is proprietary, privileged, and protected by applicable laws. If you have received this message in error and are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy this email, any attachments or copies therein forthwith. Please notify the sender immediately by email if you have received this email in error."
--
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@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/wdsci-l.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.