Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cobertura report & Websphere help

 
shyam jakki
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help need to generate cobertura report when we use WebSPhere 6.
I have included the cobertura.ser file in the bin folder of websphere server that was insturmented and generated when i ran the build file.
Started the server and stopped the server after some testing.
But the cobertura report is showing 0% for all files.

Thanks
Shyam
 
shyam jakki
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where should i add the cobertura.ser file in the Websphere
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you can tell Cobertura where to look for the .ser file.
 
shyam jakki
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thanks for the reply.

I have done the following steps.

1. Build file generated the cobertura.ser file in the working dir of my workspace.
2. I have copied the cobertura.ser file and kept it in to the C:\Program Files\IBM\WebSphere\AppServer1\profiles\AppSrv01\bin folder.
I.e. included the cobertura.ser file in the bin folder of websphere server that was insturmented and generated when i ran the build file.

3. Started the Wesphere server and deployed the application
4. Done some testing on the application
5. Stopped the server.
But when i stopped the server the copbertura.file is not showing the latest time stamp in the bin folder of the websphere server and i think it is not loading and saving the tested insturmented cobertura.ser file.
6. Took the cobertura.ser file from the C:\Program Files\IBM\WebSphere\AppServer1\profiles\AppSrv01\bin folder and kept it in the cobertura home folder.
7. Ran the cobertura-report --destination ./report d:/MyWorkspace/project/src from the command prompt.
8. Cobertura report is showing 0% for all files.
Please let me know where should i kept the cobertura.ser file that was instrumented and genreated by the build file in the webshpere so that it will update the cobertura.ser file with the tested ones when i stopped the server.

Or otherwise please let me know what should be done to get the cobertura report.

The cobertura report is generated and is working ok when i used with the tomcat6.0

Appreciate your help

Thanks in advance.

Regards
Shyam
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic