SlideShare a Scribd company logo
1 of 15
Code Coverage
Copyright © 2016. All rights reserved.
https://bitbucket.org/wishcoder/codecoverage
• Code Coverage is a java/web application built
using JACOCO library.
• Use MySQL database
• Application provides web interface to generate
code coverage reports.
• Application supports three user categories:
– Admin
– Manager
– User
Copyright © 2016. All rights reserved.
• Admin
– Create and manage ‘Manager’ accounts
• Manager
– Create and manage ‘User’ accounts
– Create and manage Projects
– Generate coverage reports using uploaded
JACOCO coverage files (*.exec)
• User
– Upload JACOCO coverage files (*.exec)
Copyright © 2016. All rights reserved.
• Install MySQL database
– Create schema ‘codecoveragedb’ (See ‘Override default values’)
– Create user ‘coverageadmin’ with password ‘coveragesecret’
– Assign database admin rights to this user for ‘codecoveragedb’ schema
– DON’T create database tables. Code Coverage application will create tables
and other required database objects when started first time
• Override default database and web server values
– Create property file CodeCoverage.properties in application root folder
– Override following properties:
• #Application
• app.title=Code Coverage Server
• #Database
• database.name=codecoveragedb
• database.port=3306
• database.user=coverageadmin [Used to access database and to access web interface as Admin]
• database.user.pwd=coveragesecret [Used to access database and to access web interface as Admin]
• #Web Server
• web.server.port=8080
Copyright © 2016. All rights reserved.
• Launch Code Coverage Application
– Developer mode: Execute run.bat in application root folder from
command prompt
– Installer mode: Run CodeCoverage.exe
Copyright © 2016. All rights reserved.
• Start Code Coverage Web Server
– Click on ‘Start’ button
– Messages console will show application logs
– After successful start ‘Admin Console…’ button will be enabled
Copyright © 2016. All rights reserved.
• Open ‘Admin Console’ in web browser (Supported browsers: Firefox and
Chrome)
– Click on ‘Admin Console…’ button
– Login as admin using user name and password used to create database
user
Copyright © 2016. All rights reserved.
• Create or update ‘Manager’ level accounts
– Logout and log back using Manager account
Copyright © 2016. All rights reserved.
• Create and update User accounts
Copyright © 2016. All rights reserved.
• Create and update Projects
– Select project from list to upload application jar file for code coverage
Copyright © 2016. All rights reserved.
• Generate code coverage reports
– Select JACOCO coverage files (*.exec) from list to generate project
coverage report
Copyright © 2016. All rights reserved.
• View code coverage reports
– Click on ‘View’ link
– Coverage report will open in browser window
Copyright © 2016. All rights reserved.
• Generate JACOCO coverage files (*.exec)
– Run java application with following JVM arguments:
-javaagent:lib/jacocoagent.jar=destfile=C:coverageapp-code-
coverage.exec,sessionid=app-code-coverage, output=file,includes=*,
dumponexit=true, append=true
– Coverage file will be generated after java application exit
Copyright © 2016. All rights reserved.
• Upload JACOCO coverage files (*.exec) for project
Copyright © 2016. All rights reserved.
• References
Code Coverage may utilize certain third party software. Such third
party software is copyrighted and licensed by their respective
owners:
• JACOCO
• Java sample application used in Code Coverage example : Movies
• Jetty embedded web server
• Hibernate
• Log4J
• Java
• Jquery
• Jquery file upload plugin
• Jquery themes plugin
• Java MigLayout
Copyright © 2016. All rights reserved.
https://bitbucket.org/wishcoder/coveragewebapp/
https://bitbucket.org/wishcoder/coverageserverapp
Ajay Singh [message4ajay@gmail.com]

More Related Content

What's hot

Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance Topics
Ali Taki
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
Gopal Ji Singh
 
Application Syndication Whitepaper
Application Syndication WhitepaperApplication Syndication Whitepaper
Application Syndication Whitepaper
aboutouria
 
Ajuby: Open Source Application Builder
Ajuby: Open Source Application BuilderAjuby: Open Source Application Builder
Ajuby: Open Source Application Builder
mosespaik
 

What's hot (20)

Oracle Forms : Reusable Components
Oracle Forms : Reusable ComponentsOracle Forms : Reusable Components
Oracle Forms : Reusable Components
 
Oracle Forms Creation
Oracle Forms CreationOracle Forms Creation
Oracle Forms Creation
 
Troubleshooting mule
Troubleshooting muleTroubleshooting mule
Troubleshooting mule
 
Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance Topics
 
Mule Integration with Dropbox
Mule Integration with DropboxMule Integration with Dropbox
Mule Integration with Dropbox
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
 
ATG - Installing WebLogic Server
ATG - Installing WebLogic ServerATG - Installing WebLogic Server
ATG - Installing WebLogic Server
 
Application Syndication Whitepaper
Application Syndication WhitepaperApplication Syndication Whitepaper
Application Syndication Whitepaper
 
Running mule as worker role on azure
Running mule as worker role on azureRunning mule as worker role on azure
Running mule as worker role on azure
 
Oracle Forms Introduction
Oracle Forms IntroductionOracle Forms Introduction
Oracle Forms Introduction
 
Asp dot net final (2)
Asp dot net   final (2)Asp dot net   final (2)
Asp dot net final (2)
 
08 express introduction
08 express introduction08 express introduction
08 express introduction
 
Asp
AspAsp
Asp
 
Ajuby: Open Source Application Builder
Ajuby: Open Source Application BuilderAjuby: Open Source Application Builder
Ajuby: Open Source Application Builder
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
 
Salesforce ANT migration
Salesforce ANT migration Salesforce ANT migration
Salesforce ANT migration
 
Logging configuration in mule
Logging configuration in muleLogging configuration in mule
Logging configuration in mule
 
Winter '19 release development.ppt
Winter '19 release development.pptWinter '19 release development.ppt
Winter '19 release development.ppt
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 

Viewers also liked

The Impact of Code Review Coverage and Participation on Software Quality
The Impact of Code Review Coverage and Participation on Software QualityThe Impact of Code Review Coverage and Participation on Software Quality
The Impact of Code Review Coverage and Participation on Software Quality
Shane McIntosh
 
Code Coverage Revised : EclEmma on JaCoCo
Code Coverage Revised : EclEmma on JaCoCoCode Coverage Revised : EclEmma on JaCoCo
Code Coverage Revised : EclEmma on JaCoCo
Evgeny Mandrikov
 
Code Coverage in Theory and in practice form the DO178B perspective
Code Coverage in Theory and in practice form the DO178B perspective   Code Coverage in Theory and in practice form the DO178B perspective
Code Coverage in Theory and in practice form the DO178B perspective
Engineering Software Lab
 

Viewers also liked (17)

Crossant
CrossantCrossant
Crossant
 
Collection pipeline par Mathieu Godart
Collection pipeline par  Mathieu GodartCollection pipeline par  Mathieu Godart
Collection pipeline par Mathieu Godart
 
Couverture de code
Couverture de codeCouverture de code
Couverture de code
 
Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.
 
Fight your technical debt with Jenkins, Jacoco and Sonar
Fight your technical debt with Jenkins, Jacoco and SonarFight your technical debt with Jenkins, Jacoco and Sonar
Fight your technical debt with Jenkins, Jacoco and Sonar
 
The Impact of Code Review Coverage and Participation on Software Quality
The Impact of Code Review Coverage and Participation on Software QualityThe Impact of Code Review Coverage and Participation on Software Quality
The Impact of Code Review Coverage and Participation on Software Quality
 
The Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage FuzzerThe Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
 
Code Coverage Revised : EclEmma on JaCoCo
Code Coverage Revised : EclEmma on JaCoCoCode Coverage Revised : EclEmma on JaCoCo
Code Coverage Revised : EclEmma on JaCoCo
 
Code Coverage in Theory and in practice form the DO178B perspective
Code Coverage in Theory and in practice form the DO178B perspective   Code Coverage in Theory and in practice form the DO178B perspective
Code Coverage in Theory and in practice form the DO178B perspective
 
Code coverage & tools
Code coverage & toolsCode coverage & tools
Code coverage & tools
 
Code coverage analysis in testing
Code coverage analysis in testingCode coverage analysis in testing
Code coverage analysis in testing
 
Code coverage
Code coverageCode coverage
Code coverage
 
Code Coverage
Code CoverageCode Coverage
Code Coverage
 
Code coverage
Code coverageCode coverage
Code coverage
 
Top 5 Code Coverage Tools in DevOps
Top 5 Code Coverage Tools in DevOpsTop 5 Code Coverage Tools in DevOps
Top 5 Code Coverage Tools in DevOps
 
Code coverage for automation scripts
Code coverage for automation scriptsCode coverage for automation scripts
Code coverage for automation scripts
 
Ja coco ignite
Ja coco igniteJa coco ignite
Ja coco ignite
 

Similar to Code Coverage Web Application

Spring Live Sample Chapter
Spring Live Sample ChapterSpring Live Sample Chapter
Spring Live Sample Chapter
Syed Shahul
 
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.pptintroaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
AvijitChaudhuri3
 

Similar to Code Coverage Web Application (20)

Web works hol
Web works holWeb works hol
Web works hol
 
Asp net
Asp netAsp net
Asp net
 
Tutorial 1
Tutorial 1Tutorial 1
Tutorial 1
 
Spring Live Sample Chapter
Spring Live Sample ChapterSpring Live Sample Chapter
Spring Live Sample Chapter
 
Learn Electron for Web Developers
Learn Electron for Web DevelopersLearn Electron for Web Developers
Learn Electron for Web Developers
 
BlackBerry WebWorks
BlackBerry WebWorksBlackBerry WebWorks
BlackBerry WebWorks
 
ONLINE PORTAL WITH COMPILER USING C#
ONLINE  PORTAL WITH COMPILER USING C#ONLINE  PORTAL WITH COMPILER USING C#
ONLINE PORTAL WITH COMPILER USING C#
 
Hyperledger Composer architecture
Hyperledger Composer architectureHyperledger Composer architecture
Hyperledger Composer architecture
 
Link. apache wicket [santi caltabiano]
  Link. apache wicket [santi caltabiano]  Link. apache wicket [santi caltabiano]
Link. apache wicket [santi caltabiano]
 
Setting up the hyperledger composer in ubuntu
Setting up the hyperledger composer in ubuntuSetting up the hyperledger composer in ubuntu
Setting up the hyperledger composer in ubuntu
 
Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]
 
Build a notepad application with PHP, MongoDB, and IBM Bluemix - by Vikram Va...
Build a notepad application with PHP, MongoDB, and IBM Bluemix - by Vikram Va...Build a notepad application with PHP, MongoDB, and IBM Bluemix - by Vikram Va...
Build a notepad application with PHP, MongoDB, and IBM Bluemix - by Vikram Va...
 
Hippo CMS - A first look
Hippo CMS - A first lookHippo CMS - A first look
Hippo CMS - A first look
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
 
Web browser architecture
Web browser architectureWeb browser architecture
Web browser architecture
 
JavaScript - Chapter 3 - Introduction
 JavaScript - Chapter 3 - Introduction JavaScript - Chapter 3 - Introduction
JavaScript - Chapter 3 - Introduction
 
"BlackBerry Webworks : Apps for The Smartphone and Tablet"
"BlackBerry Webworks : Apps for The Smartphone and Tablet""BlackBerry Webworks : Apps for The Smartphone and Tablet"
"BlackBerry Webworks : Apps for The Smartphone and Tablet"
 
introaspnet.ppt
introaspnet.pptintroaspnet.ppt
introaspnet.ppt
 
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.pptintroaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
 
introaspnet.ppt
introaspnet.pptintroaspnet.ppt
introaspnet.ppt
 

Recently uploaded

The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 

Recently uploaded (20)

Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 

Code Coverage Web Application

  • 1. Code Coverage Copyright © 2016. All rights reserved. https://bitbucket.org/wishcoder/codecoverage
  • 2. • Code Coverage is a java/web application built using JACOCO library. • Use MySQL database • Application provides web interface to generate code coverage reports. • Application supports three user categories: – Admin – Manager – User Copyright © 2016. All rights reserved.
  • 3. • Admin – Create and manage ‘Manager’ accounts • Manager – Create and manage ‘User’ accounts – Create and manage Projects – Generate coverage reports using uploaded JACOCO coverage files (*.exec) • User – Upload JACOCO coverage files (*.exec) Copyright © 2016. All rights reserved.
  • 4. • Install MySQL database – Create schema ‘codecoveragedb’ (See ‘Override default values’) – Create user ‘coverageadmin’ with password ‘coveragesecret’ – Assign database admin rights to this user for ‘codecoveragedb’ schema – DON’T create database tables. Code Coverage application will create tables and other required database objects when started first time • Override default database and web server values – Create property file CodeCoverage.properties in application root folder – Override following properties: • #Application • app.title=Code Coverage Server • #Database • database.name=codecoveragedb • database.port=3306 • database.user=coverageadmin [Used to access database and to access web interface as Admin] • database.user.pwd=coveragesecret [Used to access database and to access web interface as Admin] • #Web Server • web.server.port=8080 Copyright © 2016. All rights reserved.
  • 5. • Launch Code Coverage Application – Developer mode: Execute run.bat in application root folder from command prompt – Installer mode: Run CodeCoverage.exe Copyright © 2016. All rights reserved.
  • 6. • Start Code Coverage Web Server – Click on ‘Start’ button – Messages console will show application logs – After successful start ‘Admin Console…’ button will be enabled Copyright © 2016. All rights reserved.
  • 7. • Open ‘Admin Console’ in web browser (Supported browsers: Firefox and Chrome) – Click on ‘Admin Console…’ button – Login as admin using user name and password used to create database user Copyright © 2016. All rights reserved.
  • 8. • Create or update ‘Manager’ level accounts – Logout and log back using Manager account Copyright © 2016. All rights reserved.
  • 9. • Create and update User accounts Copyright © 2016. All rights reserved.
  • 10. • Create and update Projects – Select project from list to upload application jar file for code coverage Copyright © 2016. All rights reserved.
  • 11. • Generate code coverage reports – Select JACOCO coverage files (*.exec) from list to generate project coverage report Copyright © 2016. All rights reserved.
  • 12. • View code coverage reports – Click on ‘View’ link – Coverage report will open in browser window Copyright © 2016. All rights reserved.
  • 13. • Generate JACOCO coverage files (*.exec) – Run java application with following JVM arguments: -javaagent:lib/jacocoagent.jar=destfile=C:coverageapp-code- coverage.exec,sessionid=app-code-coverage, output=file,includes=*, dumponexit=true, append=true – Coverage file will be generated after java application exit Copyright © 2016. All rights reserved.
  • 14. • Upload JACOCO coverage files (*.exec) for project Copyright © 2016. All rights reserved.
  • 15. • References Code Coverage may utilize certain third party software. Such third party software is copyrighted and licensed by their respective owners: • JACOCO • Java sample application used in Code Coverage example : Movies • Jetty embedded web server • Hibernate • Log4J • Java • Jquery • Jquery file upload plugin • Jquery themes plugin • Java MigLayout Copyright © 2016. All rights reserved. https://bitbucket.org/wishcoder/coveragewebapp/ https://bitbucket.org/wishcoder/coverageserverapp Ajay Singh [message4ajay@gmail.com]