Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

code coverage generated by users

Thread view: 
GT - 06 Feb 2007 20:43 GMT
Hello,

Do you know any tools / libraries (best open source) which support below
desc. idea?

I want to examine which parts of application / code are [not] used while
performing user requests.
In similar way to examining "code coverage by unit tests" but instead of
unit tests we have real users, best from production environment.

Such tool will be working with real application through ie 1 month and then
will be generated report. Report which, in basic, shows which code was never
used "by users".
I hope this will help me to refactor whole project (remove unused
fragments).

Application bases on J2EE techn. and run on Web Logic Server and have many
funcionalities which currently are not used, not documented and effectively
make hard maintenance :)

Thank you for help

Greetings
Gregory
Daniel Pitts - 06 Feb 2007 21:06 GMT
> Hello,
>
[quoted text clipped - 20 lines]
> Greetings
> Gregory

I would suggest method enter/exit logging, as a sort of coarse grain
approach.
Leaving any profiler running for a long enough period of time to
measure use cases is likely to fill up all your disk space :-)

It might also be worth simply logging the user interactions taken, and
turn those into unit-like tests, and run a profiler on that.

I've used jprofile with success, but it is not without its own
eccentrisities.
GT - 06 Feb 2007 21:35 GMT
> I would suggest method enter/exit logging, as a sort of coarse grain
> approach.
[quoted text clipped - 6 lines]
> I've used jprofile with success, but it is not without its own
> eccentrisities.

Tnx 4 suggestion but, well, there is some missunderstending.

I don't want to profile any code but examine which code was executed.
I'm searching tool that by using i.e. instrumantalisation [or others
techniques which doesn't require changing application code] can register
only fact that such code was executed, nothing more :)
pascal.lecointe@euriware.fr - 06 Feb 2007 21:48 GMT
> > I would suggest method enter/exit logging, as a sort of coarse grain
> > approach.
[quoted text clipped - 13 lines]
> techniques which doesn't require changing application code] can register
> only fact that such code was executed, nothing more :)

You can also use emma, which is a java test coverage tool, but works
on every java application. It generate a report where you can see the
percentage of code used, by package, class, method, ...

Open source, so you can use it where you want (and a nice Eclipse
pugling also)
GT - 06 Feb 2007 23:04 GMT
>You can also use emma, which is a java test coverage tool, but works
>on every java application. It generate a report where you can see the
>percentage of code used, by package, class, method, ...

>Open source, so you can use it where you want (and a nice Eclipse
>pugling also)

tnx

according to http://emma.sourceforge.net/faq.html#q.runtime.appservers we
can use EMMA in J2EE env to test coverage generated by user
[earlier I briefly searched such funcionality in EMMA but i didn't notice
it, well ...]
I will try it

BTW. has somebody used EMMA in such context and has some experiences?

greetings
GT


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.