SlideShare a Scribd company logo
1 of 31
Download to read offline
UNIT V
SOFTWARE QUALITY
Introduction
• To develop and deliver robust system, we need a 
high level of confidence that
– Each component will behave correctly
– Collective behavior is correct
– No incorrect collective behavior will be produced
• Debugging and testing
• Quality assurance test, testing strategies, OO on 
Software quality, test plan and test cases.
Quality Assurance Tests
• Reason why quality assurance is needed,
– Computers are infamous for doing what we tell 
them to do, not necessarily what we want them to 
do.
– To close this gap, code must be free of errors or 
bugs that cause unexpected results
Debugging
• Software debugging system can provide tools 
for finding errors in programs and correcting 
them
• Different kinds of errors are
– Syntax errors
– Run‐Time errors
– Logic errors
Quality Assurance Tests
• Quality assurance testing can be divided into two 
major categories
– Error based testing (testing the boundary condition)
– Scenario based testing (Usage‐based testing)
• Error based Testing
Search a given class’s method for particular clues 
of interests, then describe how these clues should be 
tested
• Scenario based Testing
Concentrates on what the user does, not what 
the product does
Testing Strategies 
• Extend of testing a system is controlled by 
many factors, such as the risks involved, 
limitations on resources and deadlines
• There are many test strategies, but most 
testing uses a combination of them
– Black box testing
– White box testing
– Top‐Down testing
– Bottom‐Up testing 
Testing Strategies
• Black Box Testing
– Used to represent a system whose inside 
workings are not available for inspection. 
– Test items are tested as “Black”, since its logic is 
unknown, all that is known is what goes in and 
what comes out, i.e. input and output
– Works nicely in testing objects in OO 
environment 
Testing Strategies
• Black Box Testing
Input Output
Testing Strategies
• White Box Testing
– Assumes that the specific logic is important and must be 
tested to guarantee the system’s proper functioning.
– Main use is in error‐based testing, when we already have 
tested all objects of an application and all external or 
public methods of an object that are of greater importance
– One form of white box testing, called path testing, makes 
certain that each path in a object’s method is executed at 
least once during testing.
Testing Strategies
• Two types of path testing are
– Statement based testing
– Branch based testing
Testing Strategies
• Top‐Down Testing
– It assumes that the main logic or object 
interactions and systems message of the 
application need more testing than an individual 
object’s method or supporting logic
– It can detect the design flows early in the 
implementation
– It supports testing the user interface and event‐
driven systems
Testing Strategies
• Top‐Down Testing
– It can test the navigation through screens and 
verify that it matches the requirement, users can 
see, at an early stage, how the final application 
will look and feel.
– Useful for Scenario‐based testing.
– Useful to test subsystem and system integration.
Testing Strategies
• Bottom‐Up testing
– Starts with the details of the system and proceeds to 
higher levels by a progressive aggregation of details until 
they collectively for the requirements for the system.
– This approach is more appropriate for testing the 
individual object in a system.
– Test each object, combine them and test their interaction 
and the message passed among object by utilizing the top‐
down approach.
Testing Strategies
• Bottom‐Up testing
– In bottom‐up, start with methods and classes 
that call or rely on no others, then progress to 
next level up. Those methods and classes that use 
only the bottom level ones already tested
– It leads to integration testing which leads to 
system testing
Test Cases
• To have a comprehensive testing scheme, the 
test must cover all methods or a good 
majority of them.
• All services of the system should be checked 
atleast once.
• To test a system, given input and received 
output checked with expected output
Test Cases
• The main objectives of testing are:
– Testing is the process of executing a program 
with the intent of finding errors.
– A good test case is the one that has a high 
probability of detecting an as‐yet undiscovered 
error.
Guidelines for Developing 
Quality Assurance Test 
Cases 
• A test case is a set of what‐if questions
• Thomas has developed guidelines that have been 
adapted for the UA 
– Describe which feature or service your test attempts to 
cover 
– If the test case is based on a use‐case, it is good idea to 
refer to the use‐case name. Use‐cases are the source of 
test cases.
– Specify what you are testing and which particular feature
– Test the normal use of the object’s methods.
Guidelines for Developing 
Quality Assurance Test 
Cases 
– Test the abnormal but reasonable use of object’s 
method.
– Test the boundary condition
– Test object’s interactions and message sent among 
them
– The internal quality of the software, such as 
reusability and extendibility should be assessed as 
well.
Test Plan
• Test plan is developed to detect and identify 
potential problems before delivering the 
software to its users
• It provides the roadmap for testing activities, 
whether usability, user satisfaction or quality 
assurance tests.
Test Plan
• Steps needed to create a test plan:
– Objectives of the test
– Development of a test case
– Test analysis
• All passed tests should be reported with the 
revised program called regression testing, 
which can discover errors introduced during 
the debugging process
Who should do testing?
• For a small application, the designer or the design team 
usually will develop the test plan and test cases and in some 
situations, actually will perform the tests.
• Many organizations have a separate team, such as a quality 
assurance group, that works closely with the design team and 
is responsible for these activities
Who should do testing?
• Most software companies also use beta testing a 
popular inexpensive and effective way to test 
software on a select group of the actual users of the 
system
• In contrast, alpha testing is done by in‐house testers, 
such as programmers, software engineering and 
internal users.
Guidelines for 
Developing Test Plans
• You may have requirements that dictate a 
specific appearance or format for your test 
plan.
• Test plan should contain a schedule and a list 
of required resources
• After you have determined what types of 
testing are necessary, you need to document 
specifically what you are going to do
Guidelines for 
Developing Test Plans
• A configuration control system provides a way 
of tracking the changes to the code.
• A well thought out design tends to produce 
better code and result in more complete 
testing, so it is a good idea to buy to keep the 
plan up to date.
• At the end of each month, take time to 
complete routine updates.
Continuous Testing
• Software is tested to determine whether it conforms 
to the specifications of requirements.
• Software is maintained when errors are found and 
corrected and software is extended when new 
functionality is added to an already existing program.
• There are different reasons for testing such as to test 
for potential problems in a proposed design or to 
compare two or more designs to determine which is 
better, given a specific task or set of tasks
Continuous Testing
• Testing the whole system and detecting bugs 
is more difficult than testing smaller pieces of 
the application as it is being developed.
• Testing must take place on a continuous basis 
and this refining cycle must continue through 
out the development process until we are 
satisfied with the results.
Continuous Testing
• The steps to successful testing:
– Understand and communicate the business case for 
improved testing
– Develop an internal infrastructure to support continuous 
testing.
– Look for leaders who will commit to and own the process
– Measures and document your findings in a defect 
recording system
– Publicize improvements as they are made and let people 
know what they are doing better 
Debugging Principles 
• Bug Locating Principle:
– Think
– If you reach an impasse, sleep on it.
– If the impasse remains, describe the problem to 
someone else
– Use debugging tools
– Experimentation should be done as a last 
Debugging Principles
• Debugging Principle:
– Where there is a one bug, there is likely to be 
another
– Fix the error, not just the symptom of it
– The probability of the solution being correct 
drops as the size of the program increases
– Because of the possibility that an error 
correction will create a new error 
Review Questions
• What is testing ? List out the different testing  strategies.
• What is black box testing?
• When would you use white box testing?
• If you don’t know what is inside the box, how would you test it?
• What is the importance of developing a test case?
• What is white box testing?
• What is path testing?
• What is statement testing coverage?
• What is branch testing coverage?
• What is regression testing?
• What is a test plan? What steps are followed in developing a test plan?
• What is top‐down testing?
• What is bottom ‐up testing?
• What are guidelines for developing test plans?
• What do you mean by continuous testing?
• What are the Myer’s debugging principles?
• What is debugging?
• What is error based testing? Give an example.
• What is scenario ‐based testing?
• What are two types of path testing?
• Differentiate beta testing and alpha testing?
• What are the steps involved in successful testing?
• Define Unit Testing?
Bibiliography
• Object oriented system development by Ali 
Brahami
• Object oriented methodology by Booch
• A text book on UML by Srimathi

More Related Content

What's hot

softwaretestingppt-FINAL-PPT-1
softwaretestingppt-FINAL-PPT-1softwaretestingppt-FINAL-PPT-1
softwaretestingppt-FINAL-PPT-1
FAIZALSAIYED
 
Unit 5 usability and satisfaction test
Unit 5 usability and satisfaction testUnit 5 usability and satisfaction test
Unit 5 usability and satisfaction test
gopal10scs185
 

What's hot (19)

softwaretestingppt-FINAL-PPT-1
softwaretestingppt-FINAL-PPT-1softwaretestingppt-FINAL-PPT-1
softwaretestingppt-FINAL-PPT-1
 
Fundamentals of Software Testing
Fundamentals of Software TestingFundamentals of Software Testing
Fundamentals of Software Testing
 
Software Testing and Quality Assurance unit1
Software Testing and Quality Assurance  unit1Software Testing and Quality Assurance  unit1
Software Testing and Quality Assurance unit1
 
Testing Technique
Testing TechniqueTesting Technique
Testing Technique
 
Quality Control
Quality ControlQuality Control
Quality Control
 
Softwaretesting
SoftwaretestingSoftwaretesting
Softwaretesting
 
Test cases planning
Test cases planningTest cases planning
Test cases planning
 
Software testing and analysis
Software testing and analysisSoftware testing and analysis
Software testing and analysis
 
Unit I Software Testing and Quality Assurance
Unit I Software Testing and Quality AssuranceUnit I Software Testing and Quality Assurance
Unit I Software Testing and Quality Assurance
 
Unit 5 st ppt
Unit 5 st pptUnit 5 st ppt
Unit 5 st ppt
 
SECh1920
SECh1920SECh1920
SECh1920
 
Software Testing - SDLC Model
Software Testing - SDLC ModelSoftware Testing - SDLC Model
Software Testing - SDLC Model
 
Unit 5 usability and satisfaction test
Unit 5 usability and satisfaction testUnit 5 usability and satisfaction test
Unit 5 usability and satisfaction test
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)
 
Unit 2 hci in software process
Unit 2   hci in software processUnit 2   hci in software process
Unit 2 hci in software process
 
Software testing
Software testingSoftware testing
Software testing
 
Testing Object-Oriented Systems: Lessons Learned
Testing Object-Oriented Systems: Lessons LearnedTesting Object-Oriented Systems: Lessons Learned
Testing Object-Oriented Systems: Lessons Learned
 
ISTQB Foundation Level Basic
ISTQB Foundation Level BasicISTQB Foundation Level Basic
ISTQB Foundation Level Basic
 

Similar to Unit v

Objectorientedtesting 160320132146
Objectorientedtesting 160320132146Objectorientedtesting 160320132146
Objectorientedtesting 160320132146
vidhyyav
 

Similar to Unit v (20)

Effective Software Testing
Effective Software TestingEffective Software Testing
Effective Software Testing
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing-and-analysis
Software testing-and-analysisSoftware testing-and-analysis
Software testing-and-analysis
 
IT8076 – Software Testing Intro
IT8076 – Software Testing IntroIT8076 – Software Testing Intro
IT8076 – Software Testing Intro
 
SENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptxSENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptx
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testing
 
Objectorientedtesting 160320132146
Objectorientedtesting 160320132146Objectorientedtesting 160320132146
Objectorientedtesting 160320132146
 
Object Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesObject Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slides
 
Softwarequalityassurance with Abu ul hassan Sahadvi
Softwarequalityassurance with Abu ul hassan SahadviSoftwarequalityassurance with Abu ul hassan Sahadvi
Softwarequalityassurance with Abu ul hassan Sahadvi
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
6. oose testing
6. oose testing6. oose testing
6. oose testing
 
testing strategies and tactics
 testing strategies and tactics testing strategies and tactics
testing strategies and tactics
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
 
Solution Evaluation (BA Role)
Solution Evaluation (BA Role)   Solution Evaluation (BA Role)
Solution Evaluation (BA Role)
 
Role of BA in Testing
Role of BA in TestingRole of BA in Testing
Role of BA in Testing
 
Role of BA in Testing
Role of BA in TestingRole of BA in Testing
Role of BA in Testing
 
Role of BA in Testing
Role of BA in TestingRole of BA in Testing
Role of BA in Testing
 
Role of BA in Testing
Role of BA in TestingRole of BA in Testing
Role of BA in Testing
 

Recently uploaded

Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 

Unit v