0% found this document useful (0 votes)
34 views3 pages

Software Testing Metrics Analysis

This document contains a software testing lab baseline diagram analysis. It identifies that the baseline diagram has 20 nodes, 28 edges, 11 predicate nodes, and 10 regions. It then calculates the cyclomatic complexity of the baseline diagram to be 10, equal to the number of regions and predicate nodes minus one.

Uploaded by

Thanh Nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views3 pages

Software Testing Metrics Analysis

This document contains a software testing lab baseline diagram analysis. It identifies that the baseline diagram has 20 nodes, 28 edges, 11 predicate nodes, and 10 regions. It then calculates the cyclomatic complexity of the baseline diagram to be 10, equal to the number of regions and predicate nodes minus one.

Uploaded by

Thanh Nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Name: Nguyen Duy Thanh

Student ID: CE130015


SOFTWARE TESTING LAB

BaseLine
Diagram
1. Determine the number of nodes, number of edges, number of regions and number of
predicate nodes
E (number of edges) = 28
N (number of nodes) = 20
P (number of predicate nodes) = 11
R (regions) = 10
 R1: 19,20,21,
 R2: 19,20,23,
 R3: 19,25,26,27,
 R4: 19,25,26,28,29,
 R5: 19,25,26,28,30,31,
 R6: 19,25,26,28,30,33,
 R7: 19,25,35,36,37,
 R8: 19,25,35,36,38,39,
 R9: 19,25,35,36,38,40,41,
 R10: 19,25,35,36,38,40,43,
2. Calculate the Cyclomatic complexity
 V(G) = E – N + 2 = 28 – 20 + 2 = 10
 V(G) = R = 10
 V(G) = P – 1 = 11 – 1 = 10

You might also like