Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Coverage analyzer

Former Member
0 Likes
609

HI,

Can anyone tell me how to use scov transaction code. I had run my program for unit testing, now i want to know is there any unused code in my program. How can i achieve it using scov tcode.

Thank you,

Regards,

Kusuma.

4 REPLIES 4
Read only

Former Member
0 Likes
545

Hi Kusuma,

You can do one thing for unused variables in the program

Go to Program>check>Extended program check>

in that selec the chekc boxes Character Strings and Field Attributes and execute..

you will find the unused variables.

[Info about SCOV|]

hope it helps you.

Thanks!

Edited by: Prasanth on Mar 11, 2009 3:20 PM

Read only

0 Likes
545

hi prashanth,

I do not want to see unused variables. I want know is there any unneccesary code present in my code.

thanks for ur response,

kusuma.

Read only

former_member242255
Active Contributor
0 Likes
545

This message was moderated.

Read only

Former Member
0 Likes
545

To see it:

Run SCOV, and click on Details (under display).

On the settings tab, enter the selection criteria to find your program.

In the output list, find your program and double-click it.

This displays all processing blocks. If the icon is red, then that code has not been executed. This way you can find for example subroutines that are not used, or have not been tested.

Cheers,

Edwin.