TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Software Testing

Error Density Metrics

Overview

In this post, we will calculate Error density metrics. The project information, error distribution numbers, and the error weights can be found at:

https://www.testingdocs.com/error-removal-effectiveness-metrics/

 

Errors Code Testing Development

 

Sample Defect Weights

Code Error Density(CED)

CED= \huge \frac{NCE}{KLOC}

 

NCE = Number of Code and Testing errors

KLOC = Thousand Lines of Code.

The project numbers in the provided link are. Lookup Table 1 for the number of errors detected in the Code and Testing phases.

NCE = \huge 40

KLOC= \huge 325

 

CED= \huge \frac{40}{325}  = \huge 0.12

Development Error Density (DED)

DED = \huge \frac{NDE}{KLOC}

 

NDE = Number of Development errors

NDE = \huge 15

 

DED = \huge \frac{15}{325}

= \huge 0.05       (rounded to two decimal places)

 

Weighted Code Error Density (WCED)

WCED = \huge \frac{WCE}{KLOC}

 

WCE= Weighted Code Errors

= \huge 21*(2) + 12*(5) + 7*(10) = 42 + 60 + 70

= \huge 172

 

WCED = \huge \frac{172}{325} = \huge 0.53

 

Weighted Development Error Density(WDED)

WDED = \huge \frac{WDE}{KLOC}

 

WDE= Weighted Development Errors

=\huge 6*(2) + 7(5) + 2(10) = 12 + 35 + 20

= \huge 67

 

= \huge \frac{67}{325} = \huge 0.20

Related Posts

PuTTY Tool UI

Software Testing /

Useful Tools for Software Testers

Errors Code Testing Development

Software Testing /

Error Removal Effectiveness Metrics

RACI Chart

Software Testing /

RACI Chart

Android Calculator Icon

Software Testing /

Android Calculator Test Cases

Software Testing /

Open source eCommerce Platforms

‹ Error Removal Effectiveness Metrics› Useful Tools for Software Testers

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version