smqa unit i

24
Software Metrics and Quality Assurance

Upload: manoj-patil

Post on 07-May-2015

582 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Smqa unit i

Software Metrics and Quality Assurance

Page 2: Smqa unit i

Reference Books• 1) Software Metrics – A Rigorous & Practical Approach, 2E

– By:- Norman E Fenton & Shari Lawrence Pfleeger– Publication :- Thomson Learning.– (Chapter 1,2,3,7,8,9,10,12 ) – Syllabus covered I,II,III Units

2) Software QualityBy :- Garry Marliss and Ben-Menachem

– Publication :- Thomson Learning.– (Chapter,7,8,9,19 ) – Syllabus covered IV Unit

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 3: Smqa unit i

• Software Engineering –A Practitioners approach, fifth edition.

By :- Roger S Pressman.Chapters 27 28,29(Syllabus Covered:- V unit)

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 4: Smqa unit i

Software Metric and Quality Assurance

• Software Metric:– It is the combination of the various attributes of

the software.– Attributes of the software are

• Length • Functionality• Reuse• Number of faults

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 5: Smqa unit i

• Quality Assurance:-– Fitness of purpose– Conformance to the given specifications– Degree of excellence– Timeliness

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 6: Smqa unit i

Measurement in everyday life

• Without measurement technology cant function

• Examples of Measurement – Radar System– Medical System– Whether forecasting system – Price act as value of an item– Journey from jalgaon to Mumbai

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 7: Smqa unit i

Measurement helps to

• Understand our world• Interact with the surroundings• Improve our lives.

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 8: Smqa unit i

•What is Measurement ?

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 9: Smqa unit i

• Measurement is the process by which numbers or symbols are assigned to attributes of entities in the real world, so as to describe them according to the clearly defined rules.

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 10: Smqa unit i

• An Entity :- an object (person or object)an event (Journey or the testing process)

Attribute:- It is the feature or property of an entity.

e.g. area or color of the room, cost of the journey,

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 11: Smqa unit i

• Measurement can be called as quantification• There are two types of quantification

– Direct and Indirect quantification– Measurement is direct quantification

• E. g. Height of a tree , length of software

– Calculations are indirect quantification• E.g. Area of room = Length * Breadth

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 12: Smqa unit i

Measurement in software Engineering

• Software engineering Activity includes – Managing– Costing– Planning– Designing– Modeling– Analyzing– Implementing– Testing and maintaining

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 13: Smqa unit i

• As software engineering focuses on implementing the software in controlled and scientific way.

• To do this, all the above activities must be understood then we can control them and further we can improve.

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 14: Smqa unit i

Neglecting measurement in software engineering

• We fail to set measurable targets for our software products.

• We fail to understand and quantify the cost of software products.

• We can’t quantify the quality of the product we produce

• We can’t find out the improvements in out product development

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 15: Smqa unit i

Objectives of software measurement

• Measurement is needed for assessing the status of our – Projects– Products– Processes– Resources

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 16: Smqa unit i

Information required to understand and control software development

• Form Managers Perspective– What does each process cost ?– How productive is the staff ?– How good is the code being developed ?– Will the user be satisfied with the product ?– How we can improve ?

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 17: Smqa unit i

• From Engineers Perspective:-– Are the requirements testable ?– Have we found all the faults ?– Have we meet our product or process goals ?– What will happen in future ?

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 18: Smqa unit i

Representational theory of Measurement

• The data we obtain as measure should represent the attribute of the entities we observe and manipulation of data should preserve relationship that we observe among the entities

• It consists of – Empirical Relation– Rules of Mapping– Representation condition

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 19: Smqa unit i

Empirical relation

• We normally understand things by comparing them instead of assinging them numbers.

• Avinash is tall - ‘is tall’ is the unary relation• Avinash is taller than Sushant.

– Taller than is the binary relation

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 20: Smqa unit i

Rules of Mapping

• The real world is the domain of mapping and mathematical world is the range.

• When we map the attributes to a mathematical system, we have many choices for the mapping and the range.– E.g. To measure person height.

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 21: Smqa unit i

The representation condition

• The representation condition states that a measurement mapping M must map the entities in to numbers ans empirical relations into the numerical relations in such a way that the empirical relations preserve and are preserved by the numerical relations.

• For taller than in empirical relation is mapped to symbol > in numerical relation.

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 22: Smqa unit i

• A is taller than B iff M(A) > M(B).• This statement implies that

– When ever A is taller than B then M(A) must be bigger number that M(B)

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 23: Smqa unit i

• A is tall• When M(A) > 5.5’ i.e. average height of

common man

Mr. M. E. Patil S.S.B.T COET, Bambhori

Page 24: Smqa unit i

Mr. M. E. Patil S.S.B.T COET, Bambhori