3231 Software Engineering By Germaine Cheung Hong Kong Computer Institute Lecture 9.

Slides:



Advertisements
Similar presentations
These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S.
Advertisements

Unit Testing in the OO Context(Chapter 19-Roger P)
Ch:8 Design Concepts S.W Design should have following quality attribute: Functionality Usability Reliability Performance Supportability (extensibility,
FPA – IFPUG CPM 4.1 Rules.
Demonstrators: Mudasir Nazir(08-CS-41).  I am highly addicted to this field.  Working with W3C in research program(building CSS for creating web site.
Slide Set to accompany Web Engineering: A Practitioner’s Approach
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
Metrics for Process and Projects
These slides are designed to accompany Web Engineering: A Practitioner’s Approach (The McGraw-Hill Companies, Inc.) by Roger Pressman and David Lowe, copyright.
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.1.
Software Engineering II - Topic: Software Process Metrics and Project Metrics Instructor: Dr. Jerry Gao San Jose State University
Software Metrics II Speaker: Jerry Gao Ph.D. San Jose State University URL: Sept., 2001.
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
1 Chapter 16 Web Engineering Software Engineering: A Practitioner’s Approach, 6th edition by Roger S. Pressman.
Credits: Adopted from Web Engineering: A Practitioner’s Approach (The McGraw-Hill Companies, Inc.) by Roger Pressman and David Lowe, copyright Agile.
Chapter 7 Requirement Modeling : Flow, Behaviour, Patterns And WebApps.
Metrics.
Chapter 2 The process Process, Methods, and Tools
Chapter 15 Software Product Metrics
These slides are designed to accompany Web Engineering: A Practitioner’s Approach (The McGraw-Hill Companies, Inc.) by Roger Pressman and David Lowe, copyright.
1 These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.
1 Software Quality CIS 375 Bruce R. Maxim UM-Dearborn.
Chapter 6 : Software Metrics
1 These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.
Chapter 1 소프트웨어의 본질 The Nature of Software 임현승 강원대학교
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
3231 Software Engineering By Germaine Cheung Hong Kong Computer Institute Lecture 12.
Web Engineering Web engineering is the process used to create high quality WebApps. Web engineering is not a perfect clone of software engineering. But.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
Software Measurement & Metrics
1 Software Engineering: A Practitioner’s Approach, 6/e Chapter 15b: Product Metrics for Software Software Engineering: A Practitioner’s Approach, 6/e Chapter.
Product Metrics An overview. What are metrics? “ A quantitative measure of the degree to which a system, component, or process possesses a given attribute.”
Version control – Project repository, version management capability, make facility, issue/bug tracking Change control Configuration audit – compliments.
1 Chapter 15 Product Metrics for Software Software Engineering: A Practitioner’s Approach, 6th edition by Roger S. Pressman.
Software Project Management Lecture # 3. Outline Chapter 22- “Metrics for Process & Projects”  Measurement  Measures  Metrics  Software Metrics Process.
Software Quality Metrics
Concepts of Software Quality Yonglei Tao 1. Software Quality Attributes  Reliability  correctness, completeness, consistency, robustness  Testability.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
Web Engineering and Technology Unit I. Categories/Types of Web-Based Systems CategoryExamples Document centricOnline newspapers, manuals InteractiveRegistration.
9 Systems Analysis and Design in a Changing World, Fourth Edition.
1 COSC 4406 Software Engineering COSC 4406 Software Engineering Haibin Zhu, Ph.D. Dept. of Computer Science and mathematics, Nipissing University, 100.
Introduction to Software Project Estimation I (Condensed) Barry Schrag Software Engineering Consultant MCSD, MCAD, MCDBA Bellevue.
1 Chapter 18 Analysis Modeling for WebApps Software Engineering: A Practitioner’s Approach, 6th edition by Roger S. Pressman.
CSc 461/561 Information Systems Engineering Lecture 5 – Software Metrics.
Software Architecture Evaluation Methodologies Presented By: Anthony Register.
Measurement and quality assessment Framework for product metrics – Measure, measurement, and metrics – Formulation, collection, analysis, interpretation,
MODEL-BASED SOFTWARE ARCHITECTURES.  Models of software are used in an increasing number of projects to handle the complexity of application domains.
1 Software Engineering: A Practitioner’s Approach, 6/e Chapter 15a: Product Metrics for Software Software Engineering: A Practitioner’s Approach, 6/e Chapter.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
1 Web Engineering “Web development is an adolescent … Like most adolescents, it wants to be accepted as an adult as it tries to pull away from its parents.
CHAPTER 3 MODELING COMPONENT-LEVEL DESIGN.
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
1 OO Technical Metrics CIS 375 Bruce R. Maxim UM-Dearborn.
Software Engineering Object Oriented Metrics. Objectives 1.To describe the distinguishing characteristics of Object-Oriented Metrics. 2.To introduce metrics.
1 What is Software? Software is: (1) instructions (computer programs) that when executed provide desired features, function, and performance; (2) data.
Slide Set to accompany Web Engineering: A Practitioner’s Approach
Lecture 15: Technical Metrics
For University Use Only
Software Quality Engineering
Chapter 1 The Nature of Software
Chapter 1 The Nature of Software
Chapter 30 Product Metrics
Chapter 19 Technical Metrics for Software
Lecture 1 & 2 Software Engineering Tutor: Dr. Nadeem Ahmad Ch.
Software Engineering: A Practitioner’s Approach, 6/e Chapter 15 Product Metrics for Software copyright © 1996, 2001, 2005 R.S. Pressman & Associates,
Chapter 26 Estimation for Software Projects.
Presentation transcript:

3231 Software Engineering By Germaine Cheung Hong Kong Computer Institute Lecture 9

Chapter 15 Product Metrics for Software

McCall ’ s Triangle of Quality Maintainability Maintainability Flexibility Flexibility Testability Testability Portability Portability Reusability Reusability Interoperability Interoperability Correctness Correctness Reliability Reliability Efficiency Efficiency Integrity Integrity Usability Usability PRODUCT TRANSITION PRODUCT TRANSITION PRODUCT REVISION PRODUCT REVISION PRODUCT OPERATION PRODUCT OPERATION

Measures, Metrics and Indicators A measure provides a quantitative indication of the extent, amount, dimension, capacity, or size of some attribute of a product or process The IEEE glossary defines a metric as “ a quantitative measure of the degree to which a system, component, or process possesses a given attribute. ” An indicator is a metric or combination of metrics that provide insight into the software process, a software project, or the product itself

Measurement Principles The objectives of measurement should be established before data collection begins; Each technical metric should be defined in an unambiguous manner; Metrics should be derived based on a theory that is valid for the domain of application (e.g., metrics for design should draw upon basic design concepts and principles and attempt to provide an indication of the presence of an attribute that is deemed desirable); Metrics should be tailored to best accommodate specific products and processes [BAS84]

Measurement Process Formulation. The derivation of software measures and metrics appropriate for the representation of the software that is being considered. Collection. The mechanism used to accumulate data required to derive the formulated metrics. Analysis. The computation of metrics and the application of mathematical tools. Interpretation. The evaluation of metrics results in an effort to gain insight into the quality of the representation. Feedback. Recommendations derived from the interpretation of product metrics transmitted to the software team.

Goal-Oriented Software Measurement The Goal/Question/Metric Paradigm –(1) establish an explicit measurement goal that is specific to the process activity or product characteristic that is to be assessed –(2) define a set of questions that must be answered in order to achieve the goal, and –(3) identify well-formulated metrics that help to answer these questions. Goal definition template –Analyze {the name of activity or attribute to be measured} –for the purpose of {the overall objective of the analysis} –with respect to {the aspect of the activity or attribute that is considered} –from the viewpoint of {the people who have an interest in the measurement} –in the context of {the environment in which the measurement takes place}.

Metrics Attributes simple and computable. It should be relatively easy to learn how to derive the metric, and its computation should not demand inordinate effort or time empirically and intuitively persuasive. The metric should satisfy the engineer ’ s intuitive notions about the product attribute under consideration consistent and objective. The metric should always yield results that are unambiguous. consistent in its use of units and dimensions. The mathematical computation of the metric should use measures that do not lead to bizarre combinations of unit. programming language independent. Metrics should be based on the analysis model, the design model, or the structure of the program itself. an effective mechanism for quality feedback. That is, the metric should provide a software engineer with information that can lead to a higher quality end product

Collection and Analysis Principles Whenever possible, data collection and analysis should be automated; Valid statistical techniques should be applied to establish relationship between internal product attributes and external quality characteristics Interpretative guidelines and recommendations should be established for each metric

Analysis Metrics Function-based metrics: use the function point as a normalizing factor or as a measure of the “ size ” of the specification.

Function-Based Metrics The function point metric (FP), first proposed by Albrecht [ALB79], can be used effectively as a means for measuring the functionality delivered by a system. Function points are derived using an empirical relationship based on countable (direct) measures of software's information domain and assessments of software complexity Information domain values are defined in the following manner: –number of external inputs (EIs) –number of external outputs (EOs) –number of external inquiries (EQs) –number of internal logical files (ILFs) –Number of external interface files (EIFs)

Function Points Information Domain ValueCountsimple average complex Weighting factor External Inputs (EIs) External Outputs (EOs) External Inquiries (EQs) Internal Logical Files (ILFs) External Interface Files (EIFs) = = = = = Count total x x x x x

Architectural Design Metrics Architectural design metrics –Structural complexity = g(fan-out) –Data complexity = f(input & output variables, fan-out) –System complexity = h(structural & data complexity) Morphology metrics: a function of the number of modules and the number of interfaces between modules

Metrics for OO Design-I Whitmire [WHI97] describes nine distinct and measurable characteristics of an OO design: –Size Size is defined in terms of four views: population, volume, length, and functionality –Complexity How classes of an OO design are interrelated to one another –Coupling The physical connections between elements of the OO design –Sufficiency “ the degree to which an abstraction possesses the features required of it, or the degree to which a design component possesses features in its abstraction, from the point of view of the current application. ” –Completeness An indirect implication about the degree to which the abstraction or design component can be reused

Metrics for OO Design-II –Cohesion The degree to which all operations working together to achieve a single, well-defined purpose –Primitiveness Applied to both operations and classes, the degree to which an operation is atomic –Similarity The degree to which two or more classes are similar in terms of their structure, function, behavior, or purpose –Volatility Measures the likelihood that a change will occur

Class-Oriented Metrics class size –number of operations overridden by a subclass –number of operations added by a subclass Proposed by Lorenz and Kidd [LOR94]:

Component-Level Design Metrics Cohesion metrics: a function of data objects and the locus of their definition Coupling metrics: a function of input and output parameters, global variables, and modules called Complexity metrics: hundreds have been proposed (e.g., cyclomatic complexity)

Operation-Oriented Metrics average operation size operation complexity average number of parameters per operation Proposed by Lorenz and Kidd [LOR94]:

Interface Design Metrics Layout appropriateness: a function of layout entities, the geographic position and the “ cost ” of making transitions among entities

Code Metrics Halstead ’ s Software Science: a comprehensive collection of metrics all predicated on the number (count and occurrence) of operators and operands within a component or program –It should be noted that Halstead ’ s “ laws ” have generated substantial controversy, and many believe that the underlying theory has flaws. However, experimental verification for selected programming languages has been performed (e.g. [FEL89]).

Metrics for Testing Testing effort can also be estimated using metrics derived from Halstead measures Binder [BIN94] suggests a broad array of design metrics that have a direct influence on the “ testability ” of an OO system. –Lack of cohesion in methods (LCOM). –Percent public and protected (PAP). –Public access to data members (PAD). –Number of root classes (NOR). –Fan-in (FIN). –Number of children (NOC) and depth of the inheritance tree (DIT).

Chapter 16 Web Engineering

Web Applications WebApps encompass: –complete Web sites Simple information Web sites Complex e-Commerce of other sites with embedded functionality and data retrieval Complex Web sites that are interoperable with other legacy software and systems – specialized functionality within Web sites – information processing applications that reside on the Internet or on an intranet or ExtraNet.

WebApp Attributes — I Network intensiveness. A WebApp resides on a network and must serve the needs of a diverse community of clients. Concurrency. A large number of users may access the WebApp at one time; patterns of usage among end-users will vary greatly. Unpredictable load. The number of users of the WebApp may vary by orders of magnitude from day to day. Performance. If a WebApp user must wait too long (for access, for server-side processing, for client-side formatting and display), he or she may decide to go elsewhere.

WebApp Attributes — II Availability. Although expectation of 100 percent availability is unreasonable, users of popular WebApps often demand access on a “ 24/7/365 ” basis. Data driven. The primary function of many WebApps is to use hypermedia to present text, graphics, audio, and video content to the end-user. Content sensitive. The quality and aesthetic nature of content remains an important determinant of the quality of a WebApp. Continuous evolution. Unlike conventional application software that evolves over a series of planned, chronologically-spaced releases, Web applications evolve continuously.

WebApp Attributes — III Immediacy. WebApps often exhibit a time to market that can be a matter of a few days or weeks. –With modern tools, sophisticated Web pages can be produced in only a few hours. Security. In order to protect sensitive content and provide secure modes of data transmission, strong security measures must be implemented throughout the infrastructure that supports a WebApp and within the application itself. Aesthetics. When an application has been designed to market or sell products or ideas, aesthetics may have as much to do with success as technical design.

WebApp Categories informational — read-only content is provided with simple navigation and links download — a user downloads information from the appropriate server customizable — the user customizes content to specific needs interaction — communication among a community of users occurs via chatroom, bulletin boards, or instant messaging user input- forms-based input is the primary mechanism for communicating need transaction-oriented — the user makes a request (e.g., places an order) that is fulfilled by the WebApp service-oriented — the application provides a service to the user, e.g., assists the user in determining a mortgage payment Portal — the application channels the user to other Web content or services outside the domain of the portal application database access -the user queries a large database and extracts information data warehousing - the user queries a collection of large databases and extracts information

The WebE Process Must accommodate: –Incremental delivery –Frequent changes –Short timeline Therefore, –An incremental process model (Chapters 3 and 4) should be used in virtually all situations –An agile process model is appropriate in many situations

The WebE Process

The WebE Process Framework — I Customer communication – Business analysis defines the business/organizational context for the WebApp. – Formulation is a requirements gathering activity involving all stakeholders. The intent is to describe the problem that the WebApp is to solve Planning –The “ plan ” consists of a task definition and a timeline schedule for the time period (usually measured in weeks) projected for the development of the WebApp increment.

The WebE Process Framework — II Modeling –Analysis model —establishes a basis for design Content Analysis. Interaction Analysis. Functional Analysis. Configuration Analysis. –Design model —represents key WebApp elements Content design Aesthetic design Architectural design Interface design Navigation design Component design

The WebE Process Framework — III Construction –WebE tools and technology are applied to construct the WebApp that has been modeled –Testing of all design elements Delivery and Evaluation (Deployment) –configure for its operational environment –deliver to end-users, and –Evaluation feedback is presented to the WebE team –the increment is modified as required (the beginning of the next incremental cycle)

WebE — Basic Questions How important is a Web site home page? What is the most effective page layout (e.g., menu on top, on the right or left?) and does it vary depending upon the type of WebApp being developed? Which media options have the most impact? How much work can we expect a user to do when he or she is looking for information? How important are navigational aids when WebApps are complex? How complex can forms input be before it becomes irritating for the user? How can forms input be expedited? How important are search capabilities? Will the WebApp be designed in a manner that makes it accessible to those who have physical or other disabilities? Susan Weinshenk

WebE — Best Practices Take the time to understand the business needs and product objectives, even if the details of the WebApp are vague. Describe how users will interact with the WebApp using a scenario-based approach Develop a project plan, even it its very brief. Spend some time modeling what it is that you ’ re going to build. Review the models for consistency and quality. Use tools and technology that enable you to construct the system with as many reusable components as possible. Don ’ t rely on early users to debug the WebApp — design comprehensive tests and execute them before releasing the system.

The End