How to calculate the defect density in software products
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY anju.r
4 years ago
Software-Quality
0 comments comment

Defect density could be defined as the value of the total defects which are known to the size of the software product calculated. i.e. Defect Density= Total defects/Size

For better understanding, consider the following example.

Suppose you have a software product which has been integrated with the 4 modules and you found the following bugs in each of the modules.

  • Module 1 = 20 bugs
  • Module 2 = 30 bugs
  • Module 3 = 50 bugs
  • Module 4 = 60 bugs
    • And the total line of code for each module is

      • Module 1 = 1200 LOC
      • Module 2 = 3023 LOC
      • Module 3 = 5034 LOC
      • Module 4 = 6032 LOC

      Then, we calculate defect density as

      Total bugs = 20+30+50+60 = 160

      Size= 15289 LOC


Defect Density =  160/15289 = 0.01046504 defects/loc = 10.465 defects/Kloc

We can use defect density to calculate the following:

  1. We can predict the remaining defect in the software product by using the defect density.
  2. We can determine whether our testing is sufficient before the release.
  3. We can ensure a database of standard defect densities.

Hope this gives you a good understanding of Defect Density.


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
close

on 23rd May 2013 / by tany.antony
Just as for File Upload fields, Image Upload fields are equally prone to hack attempts. They also have additional functionality to do post-upload, such as passing the image through various image processing filters / presets. While testing Image Upload Fields, you have to take into consideration all these points. Here are some test cases to help you test image upload fields on a Drupal site: Drupal Drupal Development Software Testing Test Cases Web Testing Drupal Testing Software Quality Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
close

on 17th May 2013 / by tany.antony
You might ponder as to why test a link, or even include it as a test case when there are several other major functionalities to be tested in a Drupal website. Every site, be it Drupal or non-Drupal, contains numerous links, some of which lead to external sites and some that whirl within the site. The 'web' works extensively through links, and it is through links that sites are navigated to and get found. Links are also the underlying indicators for security of a site. So links should be paid attention to and be tested thoroughly. Here are some test cases to help you get started: Drupal Drupal Development Software Testing Test Cases Web Testing Drupal Testing Software Quality Leave a reply Your email address will not be published. Required fields are marked * Shinu (not verified) access_time 14 Oct 2019 - 10:42 1) Ensure that the link has a mouse hover effect ( Eg: An underline appears for the hyper link text when pointing mouse over it ) 2) Ensure that the color change made when clicking a link resets after clearing the browser cache 3) Ensure the linked page content is dependent of the text given in the hyper link. Martha Cole (not verified) access_time 14 Oct 2019 - 10:42 I feel immense pleasure to read articles on CMS platforms trending changes and its advantages. This post provides excellent information on Drupaltesting links. Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
close

on 20th May 2013 / by rajula.s
A contact form is included with websites mainly with an intention to allow users to communicate with the site administrator, sharing their feedback/messages regarding the website or reaching out to the business owner of the site for services / support. In this article I have covered a set of test cases that can be used to test the Drupal site contact form. Drupal Software Testing Test Cases Drupal Testing Software Quality Leave a reply Your email address will not be published. Required fields are marked *
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.