Bài giảng Phát triển, vận hành, bảo trì phần mềm - Chương 7: Software measurement cung cấp cho người học các kiến thức về models, basic concepts, core metrics, metrics characteristics, frequently used metrics, measurement plan,... Mời các bạn cùng tham khảo.
Trang 1Software Measurement
Measuring software indicators:
metrics and methods
Jalote-2002,
Trang 2Models
Empirical
Model
Numerical Model
Results (Numerical)
Results
(Empirical)
Measurement
Interpretation
Statistical/Math Analysis
Understanding/
Refinement
Trang 3Basic Concepts
• e.g size in LOC
• e.g using GQM method
• e.g defect tracking
Trang 4Core Metrics
• Work and progress
• Budget and cost
• Staffing and team dynamics
• Change and stability
• Modularity
• Rework
• MTBF
Trang 5Metrics Characteristics
business
Trang 6Frequently-Used Metrics
• SLOC, FP, …
• Consider re-use and modification
• Separate definitions for different languages/system
• Compared to estimation (trend)
• Number of staff
• Specify experienced, support, …
• Lower in “total” estimates results in increase in “experienced”
Trang 7Frequently-Used Metrics
• Number of changes in requirements and defects
• Includes developers’ understanding of requirements
• Change in requirements has to decrease and eventually freeze
• CPU, memory, IO, …
• Months/weeks of work
• Usual to fall behind initially
• Relate to actual cost
Trang 8GQM Method
• Business model provides the goals
• Process model provides the details and sub-goals
Q1, Q2 Q3, Q4
Trang 9GQM Steps
• High quality product
• Customer satisfaction
• Service improvement
• Inputs (resources, policies, …)
• Outputs (software, documents, …)
• Activities (analysis, design, …)
• Artefacts (knowledge, experience, meeting notes, …)
Trang 10GQM Steps
each high-level goal)
• People: Trained? (related to “quality” goal)
• Reports: Signed off?
• Code: Size?
(based on entity) and then “sub-goals” (based on objective)
• Group: Documents
• Sub-goal: Improved requirement analysis
Trang 11GQM Steps
related attributes
• Entity: review meetings
• Attributes: # defects found
• Metrics
Trang 12Measurement Plan
Metrics
Procedures
Media
Report
Collect Goal
Data
Trang 13Measurement Plan
identifies when and how data is to be collected;
validation;
Trang 14Analysis Plan
presentation formats like charts
fault density for the reuse categories
bars are faults/KSLOC