| Every software development company focuses | | | | Interfaces |
| on developing quality software. The only way to | | | | Functional Capabilities |
| track the software quality isevaluating it at every | | | | Performance Levels |
| stage of its development. It requires some kind | | | | Data Structures/Elements Safety |
| of metrics, which is obtained through | | | | Reliability |
| effectivetesting methods. Each stage of software | | | | Security/Privacy |
| testing is effectively monitored for the software | | | | Quality |
| QA. | | | | Constraints & limitations |
| 1. Software measurements are used for: | | | | Next comes the updating of the crucial |
| 2. Deriving basis for estimates | | | | requirement trace-ability matrix or RTM, which |
| 3. Tracking project progress | | | | determines the number and types oftests. |
| 4. Determining (relative) complexity | | | | While measuring the mapping of test cases, the |
| 5. Understanding the stage of desired quality | | | | number and priority of requirement it tests, its |
| 6. Analyzing defects | | | | execution effort andrequirement coverage must |
| 7. Validating best practices experimentally | | | | be determined. |
| Here, some software testing metrics are | | | | The Requirement compliance factor (RCF) |
| proposed for black box testing that has real world | | | | measures the coverage provided by the test |
| applications. It discusses: | | | | cases to one or set of requirement(s). |
| Importance of software testing measurement | | | | Mathematically, |
| Different techniques/processes for measuring | | | | RCFj=∑(Pi*Xi) |
| software testing | | | | (maxXi)*(∑Pi)i=1 |
| Metrics for analyzing testing | | | | Where,j is a set of requirements and (j=1-m); |
| Methods for measuring/computing the metrics | | | | Xi=2, if the test case (say Tj) tests requirements |
| Advantages of implementing these metrics | | | | Ri completely, |
| These metrics helps in understanding the | | | | =1, if it tests partially, |
| inadequacies in different software QA stages and | | | | =0, if otherwise. |
| finding better correctingpractices. | | | | Effectiveness=RCFj/Ej where Ej=Time required |
| What is measurement and why it is required? | | | | for executing a test case |
| The process of assigning numbers or symbols to | | | | 4. Evaluating estimation accuracy |
| attributes of real world entities for describing | | | | Relative error=(A-E)/A where E is estimate of a |
| them according to definedrules is called | | | | value and A is actual value. |
| measurement. | | | | For a collection of estimates, the mean RE for n |
| For developing quality software, several | | | | projects is |
| characteristics like requirements, time and effort, | | | | __ n |
| infrastructural cost,requirement testability, system | | | | RE=1/n∑REii=1 |
| faults, and improvements for more productive | | | | For a set of n projects, the mean magnitude of |
| resources should be measured. | | | | RE (MRE) is |
| Measuring software testing is required: | | | | ___ n |
| 1. If the available test cases cover all the | | | | MRE=1/n∑MREii=1 |
| system's aspects | | | | Of a set of n projects, an acceptable level for |
| 2. For tracking problems | | | | MRE is less than 0.25. |
| 3. For quantifying testing | | | | If K is the number of projects whose mean |
| Choose the suitable metrics | | | | magnitude of relative error is less than or equal to |
| Several metrics can measure software-testing | | | | q,then the prediction quality pred(q)=K/n |
| process. | | | | 5. Measurement of Efficiency in testing process |
| Here, the following types of metrics are identified: | | | | In software testing, we must keep tabs on what |
| Base metrics: | | | | we had planned and what we have actually |
| These raw data are collected in a testing effort | | | | achieved for measuring efficiency. |
| and applied in formulae used to derive Calculated | | | | Here, the following attributes play major roles: - |
| Metrics. | | | | Cost: The Cost Variance (CV) factor measures |
| The Test Metrics comprise of the Number of | | | | the risk associated with cost. |
| Test Cases Passed, Failed, Under Investigation, | | | | CV=100*(AC - PC)/PC, AC=Actual Cost, |
| Blocked, Re-executed and Test Execution Time. | | | | PC=Planned/Budgeted Cost. |
| Calculated metrics: | | | | Effort: Effort Variance (EV) measures effort. |
| They convert the Base Metrics data into useful | | | | EV=100*(AE - PE)/PE |
| information. Every test efforts must implement | | | | (AE=Actual Effort, PE=Planned Effort) |
| the following Calculated | | | | Schedule: Schedule Variance (SV) is important for |
| Metrics: | | | | project scheduling. |
| % Complete | | | | SV=100*(AD-PD)/PD where AD=Actual duration |
| % Defects Corrected | | | | and PD=Planned duration. |
| % Test Coverage | | | | Cost of quality: It indicates the total effort |
| % Rework | | | | expended on prevention, appraisal and rework |
| % Test Cases Passed & Blocked | | | | failure activities versus allproject activities. |
| % Test Effectiveness & Efficiency | | | | Prevention Effort=Effort expended on planning, |
| % 1st Run Failures | | | | training and defect prevention. |
| % Failures | | | | Appraisal Effort=Effort expended on quality |
| Defect Discovery Rate | | | | control activities. |
| Defect Removal Cost | | | | Failure effort=Effort expended on rework, idle |
| Measurements for Software Testing | | | | time etc. |
| The corresponding software testing process in | | | | COQ=100*(PE + AE + FE)/Total project effort. |
| software development measures each step for | | | | Product - |
| ensuring quality product delivery. | | | | Size variance: It is the degree of variation |
| 1. Software Size: | | | | between estimated and actual sizes. |
| The amount of functionality of an application | | | | Size Variance=100*(Actual Software Size-Initial |
| determines this and is calculated by | | | | Estimated Software Size)/Initial Estimated |
| Function Point Analysis | | | | Software Size |
| Task Complexity Estimation Methodology | | | | Defect density: It is the total number of defects |
| 2. Requirements review: | | | | in software with respect to its size. |
| Before software development, the Software | | | | Defect density=Total number of defects |
| requirement specifications (SRS) from the client | | | | detected/software size |
| are obtained. It must be: | | | | Mean Time Between Failures: MTBF is the mean |
| Complete | | | | time between two critical system failures or |
| Consistent | | | | breakdowns. |
| Correct | | | | MTBF=Total time of software system operation |
| Structured | | | | Number of critical software system failures. |
| Ranked | | | | Defects: Defects are measured through: |
| Testable | | | | Defect distribution: It indicates the distribution of |
| Traceable | | | | total project defects. |
| Unambiguous | | | | Defect Distribution=100*Total number of defects |
| Validate | | | | attributed to the specific phase/Total number of |
| Verified | | | | defects. |
| The Review Efficiency is a metric that offers | | | | Defect removal effectiveness: Adding the number |
| insight on the review quality and testing. | | | | of defects removed during the phase to the |
| Review efficiency=100*Total number of defects | | | | number of defects found laterapproximates this. |
| found by reviews/Total number of project | | | | Benefits of implementing metrics in software |
| defects | | | | testing: |
| 3. Effectiveness of testing requirements: | | | | Improves project planning. |
| It is measured by maintaining Requirement | | | | Understanding the desired quality achieved. |
| Trace-ability matrix and specification of | | | | Helps in improving the processes followed. |
| requirements, which should have: | | | | Analyzing the associated risks. |
| SRS Objective, purpose | | | | Improving defect removal efficiency. |