尊敬的 微信汇率:1円 ≈ 0.046078 元 支付宝汇率:1円 ≈ 0.046168元 [退出登录]
SlideShare a Scribd company logo
SOFTWARE TESTING
UNIT I
By
Gnana Jeslin
AP/CSE
RMKCET
UNIT I INTRODUCTION
Testing as an Engineering Activity – Testing as a Process – Testing
Maturity Model- Testing axioms – Basic definitions – Software Testing
Principles – The Tester’s Role in a Software Development Organization –
Origins of Defects – Cost of defects – Defect Classes – The Defect
Repository and Test Design –Defect Examples- Developer/Tester upport
of Developing a Defect Repository
COURSE OUTCOME
Understand the impact of defects in software
development process
SOFTWARE TESTING
• Testing is generally described as a group of procedures carried out to
evaluate some aspect of a piece of software.
• Testing can be described as a process used for revealing defects in
software, and for establishing that the software has attained a
specified degree of quality with respect to selected attributes.
Testing as an Engineering Activity
• Software systems are becoming more challenging to build.
• New methods, techniques, and tools are becoming available to support
development and maintenance tasks.
• Poor quality software that can cause loss of life or property is no longer
acceptable to society.
• Highly qualified staff ensures that software products are built on time, within
budget, and are of the highest quality with respect to attributes such as reliability,
correctness, usability, and the ability to meet all user requirements.
Using an engineering approach to software
development implies that:
• The development process is well understood
• Projects are planned
• Life cycle models are defined
• Standards are in place for product and process
• Measurements are employed to evaluate product and process quality
• Components are reused
• Validation and verification processes play a key role in quality determination
• Engineers have proper education, training, and certification.
Testing as a Process
Testing as a Process
Process in Engineering Domain
• Process, in the software engineering domain, is the set of methods,
practices, standards, documents, activities, policies, and procedures
that software engineers use to develop and maintain a software
system and its associated artifacts, such as project and test plans,
design documents, code, and manuals.
Testing as a Process
The Role of Process in Software Quality
• The need for software products of high quality has pressured those in
the profession to identify and quantify quality factors such as
usability, testability, maintainability, and reliability, and to identify
engineering practices that support the production of quality
products having these favorable attributes.
Testing as a Process
• The software development process has been described as a series of
phases, procedures, and steps that result in the production of a
software product.
• Embedded within the software development process are several
other processes including testing.
Testing as a Process
Testing as a Process
Testing is related to two other processes.
• Validation is the process of evaluating a software system or component
during, or at the end of, the development cycle in order to determine
whether it satisfies specified requirements.
• Verification is the process of evaluating a software system or component
to determine whether the products of a given development phase satisfy
the conditions imposed at the start of that phase.
Testing Maturity Model
Testing Maturity Model is a means for developing quality software
The focus of the TMM is on testing as a process in itself that can be evaluated and
improved.
In the testing domain possible benefits of test process improvement are the
following:
• smarter testers
• higher quality software
• the ability to meet budget and scheduling goals
• improved planning
• the ability to meet quantifiable testing goals
Testing Maturity Model
• TMM follows a staged architecture for process improvement models.
• It contains stages or levels through which an organization passes as its
testing
• process evolves from one that is ad hoc and unmanaged to one that is
managed, defined, measured, and optimizable.
Testing Maturity Model
Testing Maturity Model
Testing Axioms
An axiom is a sentence or proposition that is not proved or
demonstrated and is considered as obvious or as an initial
necessary consensus for a theory building or acceptation.
Testing Axioms
1. It is impossible to test a program completely.
2. Software testing is a risk-based exercise.
3. Testing cannot show the absence of bugs.
4. The more bugs you find, the more bugs there are.
5. Not all bugs found will be fixed.
Testing Axioms
6. It is difficult to say when a bug is indeed a bug.
7. Specifications are never final.
8. Software testers are not the most popular members of a project.
9. Software testing is a disciplined and technical profession.
Basic Definitions
Error
• An error is a mistake, misconception, or misunderstanding on the part of
a software developer.
• For example, a developer may misunderstand a design notation, or a
programmer might type a variable name incorrectly.
Basic Definitions
Faults (Defects)
• A fault (defect) is introduced into the software as the result of an error.
• It is an anomaly in the software that may cause it to behave incorrectly,
and not according to its specification.
• Faults or defects are sometimes called ―bugs.
Basic Definitions
Failures
A failure is the inability of a software system or component
to perform its required functions within specified
performance requirements
Basic Definitions
Test Cases
A test case in a practical sense is a test-related item which contains the following
information:
1. A set of test inputs.
2. Execution conditions.
3. Expected outputs.
Basic Definitions
Test
A test is a group of related test cases, or a group of related test cases and test
procedures.
• A group of related tests – Test Set
• A group of related tests that are associated with a DB and are usually run
together - Test Suite
Basic Definitions
Test Oracle
A test oracle is a document, or piece of software that allows testers to
determine whether a test has been passed or failed.
Test Bed
A test bed is an environment that contains all the hardware and software
needed to test a software component or a software system.
Eg‘s Simulators, emulators, Memory Checkers, software tools.
Software Testing Principles
Principle 1
Testing is the process of exercising a software component using a selected set of test
cases, with the intent of
(i) revealing defects, and
(ii) evaluating quality.
Software Testing Principles
Principle 2
When the test objective is to detect defects, then a good test case is one that has a high
probability of revealing a yet undetected defect(s).
Principle 3
Test results should be inspected meticulously.
Software Testing Principles
Principle 4
A test case must contain the expected output or result.
Principle 5
Test cases should be developed for both valid and invalid input conditions.
Principle 6
The probability of the existence of additional defects in a software component is
proportional to the number of defects already detected in that component.
Software Testing Principles
Principle 7
Testing should be carried out by a group that is independent of the
development group.
Principle 8
Tests must be repeatable and reusable.
Principle 9
Testing should be planned.
Software Testing Principles
Principle 10
Testing activities should be integrated into the software life cycle.
Principle 11
Testing is a creative and challenging task
Difficulties And Challenges For The
Tester
• A tester needs to have comprehensive knowledge of the software
engineering discipline.
• A tester needs to have knowledge from both experience and education as
to how software is specified, designed, and developed.
• A tester needs to be able to manage many details.
Difficulties And Challenges For The
Tester
• A tester needs to have knowledge of fault types and where faults of a
certain type might occur in code constructs.
• A tester needs to reason like a scientist and propose hypotheses that
relate to presence of specific types of defects.
• A tester needs to have a good grasp of the problem domain of the
software that he/she is testing. Familiarly with a domain may come from
educational, training, and work-related experiences.
The Tester’s Role In A Software
Development Organization
•The tester’s job is to
•Reveal defects,
•Find weak points,
•Inconsistent behaviour,
The Tester’s Role In A Software
Development Organization
• The tester’s job is to identify:
• Circumstances where the software does not work as expected.
• It is difficult for developers to effectively test their own code. A tester needs very
good programming experience in order to understand how code is constructed, and
to know where and what types of, defects could occur.
• A tester should work with the developers to produce high-quality software that
meets the customers’ requirements.
ORIGINS OF DEFECTS
• Defects have detrimental affects on software users, and software engineers work very
hard to produce high-quality software with a low number of defects.
1. Education
2. Communication
3. Oversight
4. Transcription
5. Process
ORIGINS OF DEFECTS
FAULT MODEL
• A fault (defect) model can be described as a link between the error made (e.g., a
missing requirement, a misunderstood design element, a typographical error), and the
fault/defect in the software.
• In the past, fault models and fault lists have often been used by developers/ testers in
an informal manner, since many organizations did not save or catalog defect-related
information in an easily accessible form.
• To increase the effectiveness of their testing and debugging processes, software
organizations need to initiate the creation of a defect database, or defect repository.
COST OF DEFECTS
• The cost of defects can be measured by the impact of the defects and when we find
them.
• Earlier the defect is found lesser is the cost of defect.
• For example if error is found in the requirement specifications during requirements
gathering and analysis, then it is somewhat cheap to fix it.
• The correction to the requirement specification can be done and then it can be re-
issued.
DEFECT CLASSES
• Defects can be classified in many ways.
• The four classes of defects are as follows,
• Requirements and specifications defects,
• Design defects,
• Code defects,
• Testing defects
1. Requirements and Specifications Defects
• Defects injected in early phases can be very difficult to remove in
later phases.
• Since many requirements documents are written using a natural
language representation, they may become
• Ambiguous,
• Contradictory,
• Unclear,
• Redundant,
• Imprecise.
1. Requirements and Specifications Defects
• 1.1 Functional Description Defects
• 1.2 Feature Defects
• 1.3 Feature Interaction Defects
• 1.4 Interface Description Defects
2. Design Defects
•Design defects occur when the following are
incorrectly designed,
• System components,
• Interactions between system components,
• Interactions between the components and outside
software/hardware, or users
2. Design Defects
• 2.1 Algorithmic and Processing Defects
• 2.2 Control, Logic, and Sequence Defects
• 2.3 Data Defects
• 2.4 Module Interface Description Defects
• 2.5 Functional Description Defects
• 2.6 External Interface Description Defects
3. Coding Defects
• Coding defects are derived from errors in implementing the code.
• Coding defects classes are similar to design defect classes.
• Some coding defects come from a failure to understand
programming language constructs, and miscommunication with
the designers.
3. Coding Defects
• 3.1 Algorithmic and Processing Defects
• 3.2 Control, Logic and Sequence Defects
• 3.3 Typographical Defects
• 3.4 Initialization Defects
3. Coding Defects
• 3.5 Data-Flow Defects
• 3.6 Data Defects
• 3.7 Module Interface Defects
• 3.8 Code Documentation Defects
• 3.9 External Hardware, Software Interfaces Defects
4. Testing Defects
• Test plans, test cases, test harnesses, and test procedures can also
contain defects. These defects are called testing defects.
• Defects in test plans are best detected using review techniques.
• 4.1 Test Harness Defects
4.2 Test Case Design and Test Procedure Defects
DEFECT CLASSES & DEFECT REPOSITORY
DEFECT REPOSITORY
• The defect repository concept supports storage and retrieval of defect data
from all projects in a centrally accessible location.
• Defect classification scheme is a necessary first step for developing the
repository.
• Defects found both during reviews and execution-based testing should be
cataloged.
• Supplementary information can be added to the defect repository, Staff
members can use this data for test planning, test design, and fault/defect
diagnosis
Developer/Tester Support for Developing a
Defect Repository
• Software engineers and test specialists should follow the examples of
engineers in other disciplines who make use of defect data.
• A requirement for repository development should be a part of testing and/or
debugging policy statements.
• Forms and templates should be designed to collect the data. Each defect and
frequency of occurrence must be recorded after testing.
• Defect monitoring should be done for each on-going project. The distribution
of defects will change when changes are made to the process.
Developer/Tester Support for Developing a
Defect Repository
Developer/Tester Support for Developing a
Defect Repository
• The defect data is useful for test planning.
• It is a TMM level 2 maturity goal.
• It helps a tester to select applicable testing techniques, design the test cases,
and allocate the amount of resources needed to detect and remove defects.
• This allows tester to estimate testing schedules and costs.
Developer/Tester Support for Developing a
Defect Repository
• The defect data can support debugging activities also.
• A defect repository can help in implementing several TMM maturity goals
including
• Controlling and monitoring of test,
• Software quality evaluation and control,
• Test measurement,
• Test process improvement.
Defect Examples: Coin Problem
• This program calculates the total rupees value for a set of coins. The
user inputs the amount of 25p, 50p and 1rs coins. There are size
different denominations of coins. The program outputs the total
rupees and paise value of the coins to the user
• Input : number_of_coins is an integer
• Output : number_of_rupees is an integer
• number_of_paise is an integer
Thank You….

More Related Content

What's hot

Line of Code (LOC) Matric and Function Point Matric
Line of Code (LOC) Matric and Function Point MatricLine of Code (LOC) Matric and Function Point Matric
Line of Code (LOC) Matric and Function Point Matric
Ankush Singh
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
Alpana Bhaskar
 
Software Quality Metrics
Software Quality MetricsSoftware Quality Metrics
Software Quality Metrics
Mufaddal Nullwala
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
Chankey Pathak
 
Software Engineering (Software Quality Assurance)
Software Engineering (Software Quality Assurance)Software Engineering (Software Quality Assurance)
Software Engineering (Software Quality Assurance)
ShudipPal
 
Software Inspection And Defect Management
Software Inspection And Defect ManagementSoftware Inspection And Defect Management
Software Inspection And Defect Management
Ajay K
 
White box testing
White box testingWhite box testing
White box testing
Neethu Tressa
 
Validation testing
Validation testingValidation testing
Validation testing
Slideshare
 
Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notes
Siva Ayyakutti
 
Testing
TestingTesting
Software Reliability
Software ReliabilitySoftware Reliability
Software Reliability
ranapoonam1
 
Analysis modeling & scenario based modeling
Analysis modeling &  scenario based modeling Analysis modeling &  scenario based modeling
Analysis modeling & scenario based modeling
Benazir Fathima
 
Combined paging and segmentation
Combined paging and segmentationCombined paging and segmentation
Combined paging and segmentation
Tech_MX
 
Concept of Failure, error, fault and defect
Concept of Failure, error, fault and defectConcept of Failure, error, fault and defect
Concept of Failure, error, fault and defect
chaklee191
 
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
VinothkumaR Ramu
 
Static Testing
Static TestingStatic Testing
Static Testing
Dharita Chokshi
 
Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation Techniques
MohamedIbrahim1408
 
Software testing
Software testing Software testing
Software testing
Kunal Prajapati
 
Chapter 7 software reliability
Chapter 7 software reliabilityChapter 7 software reliability
Chapter 7 software reliability
despicable me
 
Advanced topics in software engineering
Advanced topics in software engineeringAdvanced topics in software engineering
Advanced topics in software engineering
Rupesh Vaishnav
 

What's hot (20)

Line of Code (LOC) Matric and Function Point Matric
Line of Code (LOC) Matric and Function Point MatricLine of Code (LOC) Matric and Function Point Matric
Line of Code (LOC) Matric and Function Point Matric
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
 
Software Quality Metrics
Software Quality MetricsSoftware Quality Metrics
Software Quality Metrics
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
 
Software Engineering (Software Quality Assurance)
Software Engineering (Software Quality Assurance)Software Engineering (Software Quality Assurance)
Software Engineering (Software Quality Assurance)
 
Software Inspection And Defect Management
Software Inspection And Defect ManagementSoftware Inspection And Defect Management
Software Inspection And Defect Management
 
White box testing
White box testingWhite box testing
White box testing
 
Validation testing
Validation testingValidation testing
Validation testing
 
Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notes
 
Testing
TestingTesting
Testing
 
Software Reliability
Software ReliabilitySoftware Reliability
Software Reliability
 
Analysis modeling & scenario based modeling
Analysis modeling &  scenario based modeling Analysis modeling &  scenario based modeling
Analysis modeling & scenario based modeling
 
Combined paging and segmentation
Combined paging and segmentationCombined paging and segmentation
Combined paging and segmentation
 
Concept of Failure, error, fault and defect
Concept of Failure, error, fault and defectConcept of Failure, error, fault and defect
Concept of Failure, error, fault and defect
 
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
 
Static Testing
Static TestingStatic Testing
Static Testing
 
Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation Techniques
 
Software testing
Software testing Software testing
Software testing
 
Chapter 7 software reliability
Chapter 7 software reliabilityChapter 7 software reliability
Chapter 7 software reliability
 
Advanced topics in software engineering
Advanced topics in software engineeringAdvanced topics in software engineering
Advanced topics in software engineering
 

Similar to UNIT 1.pptx

Software testing introduction
Software testing  introductionSoftware testing  introduction
Software testing introduction
GaneshKumarKanthiah
 
L software testing
L   software testingL   software testing
L software testing
Fáber D. Giraldo
 
unit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptxunit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptx
PriyaFulpagare1
 
Software testing-and-analysis
Software testing-and-analysisSoftware testing-and-analysis
Software testing-and-analysis
WBUTTUTORIALS
 
IT8076 – Software Testing Intro
IT8076 – Software Testing IntroIT8076 – Software Testing Intro
IT8076 – Software Testing Intro
JohnSamuel280314
 
Software Testing PPT | Software All Testing
Software Testing PPT | Software All TestingSoftware Testing PPT | Software All Testing
Software Testing PPT | Software All Testing
sankalpkumarsahoo174
 
SQA_Class
SQA_ClassSQA_Class
Software Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCESoftware Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCE
Dr Anuranjan Misra
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
Saqib Raza
 
What is software testing in software engineering?
What is software testing in software engineering?What is software testing in software engineering?
What is software testing in software engineering?
tommychauhan
 
What is Testing in Software Engineering?
What is Testing in Software Engineering?What is Testing in Software Engineering?
What is Testing in Software Engineering?
tommychauhan
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
Webtech Learning
 
QA Basics and PM Overview
QA Basics and PM OverviewQA Basics and PM Overview
QA Basics and PM Overview
Ajay Mani Paudel
 
What_is_Software_Testing.pdf
What_is_Software_Testing.pdfWhat_is_Software_Testing.pdf
What_is_Software_Testing.pdf
VuongPhm
 
Software Testing
Software TestingSoftware Testing
testing.pptx
testing.pptxtesting.pptx
testing.pptx
jagadeeppapisettipal
 
Software_Testing_ppt.pptx
Software_Testing_ppt.pptxSoftware_Testing_ppt.pptx
Software_Testing_ppt.pptx
BharathReddy615859
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
acemindia
 
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...
ShudipPal
 
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
MinsasWorld
 

Similar to UNIT 1.pptx (20)

Software testing introduction
Software testing  introductionSoftware testing  introduction
Software testing introduction
 
L software testing
L   software testingL   software testing
L software testing
 
unit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptxunit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptx
 
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
 
Software Testing PPT | Software All Testing
Software Testing PPT | Software All TestingSoftware Testing PPT | Software All Testing
Software Testing PPT | Software All Testing
 
SQA_Class
SQA_ClassSQA_Class
SQA_Class
 
Software Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCESoftware Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCE
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 
What is software testing in software engineering?
What is software testing in software engineering?What is software testing in software engineering?
What is software testing in software engineering?
 
What is Testing in Software Engineering?
What is Testing in Software Engineering?What is Testing in Software Engineering?
What is Testing in Software Engineering?
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 
QA Basics and PM Overview
QA Basics and PM OverviewQA Basics and PM Overview
QA Basics and PM Overview
 
What_is_Software_Testing.pdf
What_is_Software_Testing.pdfWhat_is_Software_Testing.pdf
What_is_Software_Testing.pdf
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
testing.pptx
testing.pptxtesting.pptx
testing.pptx
 
Software_Testing_ppt.pptx
Software_Testing_ppt.pptxSoftware_Testing_ppt.pptx
Software_Testing_ppt.pptx
 
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...
 
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
 

Recently uploaded

🔥Young College Call Girls Chandigarh 💯Call Us 🔝 7737669865 🔝💃Independent Chan...
🔥Young College Call Girls Chandigarh 💯Call Us 🔝 7737669865 🔝💃Independent Chan...🔥Young College Call Girls Chandigarh 💯Call Us 🔝 7737669865 🔝💃Independent Chan...
🔥Young College Call Girls Chandigarh 💯Call Us 🔝 7737669865 🔝💃Independent Chan...
sonamrawat5631
 
An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...
An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...
An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...
DharmaBanothu
 
Literature review for prompt engineering of ChatGPT.pptx
Literature review for prompt engineering of ChatGPT.pptxLiterature review for prompt engineering of ChatGPT.pptx
Literature review for prompt engineering of ChatGPT.pptx
LokerXu2
 
SPICE PARK JUL2024 ( 6,866 SPICE Models )
SPICE PARK JUL2024 ( 6,866 SPICE Models )SPICE PARK JUL2024 ( 6,866 SPICE Models )
SPICE PARK JUL2024 ( 6,866 SPICE Models )
Tsuyoshi Horigome
 
🔥LiploCk Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Ser...
🔥LiploCk Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Ser...🔥LiploCk Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Ser...
🔥LiploCk Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Ser...
adhaniomprakash
 
🔥 Hyderabad Call Girls  👉 9352988975 👫 High Profile Call Girls Whatsapp Numbe...
🔥 Hyderabad Call Girls  👉 9352988975 👫 High Profile Call Girls Whatsapp Numbe...🔥 Hyderabad Call Girls  👉 9352988975 👫 High Profile Call Girls Whatsapp Numbe...
🔥 Hyderabad Call Girls  👉 9352988975 👫 High Profile Call Girls Whatsapp Numbe...
aarusi sexy model
 
❣Independent Call Girls Chennai 💯Call Us 🔝 7737669865 🔝💃Independent Chennai E...
❣Independent Call Girls Chennai 💯Call Us 🔝 7737669865 🔝💃Independent Chennai E...❣Independent Call Girls Chennai 💯Call Us 🔝 7737669865 🔝💃Independent Chennai E...
❣Independent Call Girls Chennai 💯Call Us 🔝 7737669865 🔝💃Independent Chennai E...
nainakaoornoida
 
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
nonods
 
Call Girls In Tiruppur 👯‍♀️ 7339748667 🔥 Free Home Delivery Within 30 Minutes
Call Girls In Tiruppur 👯‍♀️ 7339748667 🔥 Free Home Delivery Within 30 MinutesCall Girls In Tiruppur 👯‍♀️ 7339748667 🔥 Free Home Delivery Within 30 Minutes
Call Girls In Tiruppur 👯‍♀️ 7339748667 🔥 Free Home Delivery Within 30 Minutes
kamka4105
 
Data Communication and Computer Networks Management System Project Report.pdf
Data Communication and Computer Networks Management System Project Report.pdfData Communication and Computer Networks Management System Project Report.pdf
Data Communication and Computer Networks Management System Project Report.pdf
Kamal Acharya
 
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort ServiceCuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
yakranividhrini
 
My Airframe Metallic Design Capability Studies..pdf
My Airframe Metallic Design Capability Studies..pdfMy Airframe Metallic Design Capability Studies..pdf
My Airframe Metallic Design Capability Studies..pdf
Geoffrey Wardle. MSc. MSc. Snr.MAIAA
 
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
Ak47 Ak47
 
💋Mature Women / Aunty Call Girls Gurgaon 💯Call Us 🔝 9999965857 🔝💃Independent ...
💋Mature Women / Aunty Call Girls Gurgaon 💯Call Us 🔝 9999965857 🔝💃Independent ...💋Mature Women / Aunty Call Girls Gurgaon 💯Call Us 🔝 9999965857 🔝💃Independent ...
💋Mature Women / Aunty Call Girls Gurgaon 💯Call Us 🔝 9999965857 🔝💃Independent ...
rupa singh
 
🔥Independent Call Girls In Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Esco...
🔥Independent Call Girls In Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Esco...🔥Independent Call Girls In Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Esco...
🔥Independent Call Girls In Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Esco...
AK47
 
paper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdfpaper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdf
ShurooqTaib
 
Call Girls Nagpur 8824825030 Escort In Nagpur service 24X7
Call Girls Nagpur 8824825030 Escort In Nagpur service 24X7Call Girls Nagpur 8824825030 Escort In Nagpur service 24X7
Call Girls Nagpur 8824825030 Escort In Nagpur service 24X7
sexytaniya455
 
Covid Management System Project Report.pdf
Covid Management System Project Report.pdfCovid Management System Project Report.pdf
Covid Management System Project Report.pdf
Kamal Acharya
 
ESCORT SERVICE FULL ENJOY - @9711199012, Mayur Vihar CALL GIRLS SERVICE Delhi
ESCORT SERVICE FULL ENJOY - @9711199012, Mayur Vihar CALL GIRLS SERVICE DelhiESCORT SERVICE FULL ENJOY - @9711199012, Mayur Vihar CALL GIRLS SERVICE Delhi
ESCORT SERVICE FULL ENJOY - @9711199012, Mayur Vihar CALL GIRLS SERVICE Delhi
AK47
 
Intuit CRAFT demonstration presentation for sde
Intuit CRAFT demonstration presentation for sdeIntuit CRAFT demonstration presentation for sde
Intuit CRAFT demonstration presentation for sde
ShivangMishra54
 

Recently uploaded (20)

🔥Young College Call Girls Chandigarh 💯Call Us 🔝 7737669865 🔝💃Independent Chan...
🔥Young College Call Girls Chandigarh 💯Call Us 🔝 7737669865 🔝💃Independent Chan...🔥Young College Call Girls Chandigarh 💯Call Us 🔝 7737669865 🔝💃Independent Chan...
🔥Young College Call Girls Chandigarh 💯Call Us 🔝 7737669865 🔝💃Independent Chan...
 
An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...
An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...
An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...
 
Literature review for prompt engineering of ChatGPT.pptx
Literature review for prompt engineering of ChatGPT.pptxLiterature review for prompt engineering of ChatGPT.pptx
Literature review for prompt engineering of ChatGPT.pptx
 
SPICE PARK JUL2024 ( 6,866 SPICE Models )
SPICE PARK JUL2024 ( 6,866 SPICE Models )SPICE PARK JUL2024 ( 6,866 SPICE Models )
SPICE PARK JUL2024 ( 6,866 SPICE Models )
 
🔥LiploCk Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Ser...
🔥LiploCk Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Ser...🔥LiploCk Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Ser...
🔥LiploCk Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Ser...
 
🔥 Hyderabad Call Girls  👉 9352988975 👫 High Profile Call Girls Whatsapp Numbe...
🔥 Hyderabad Call Girls  👉 9352988975 👫 High Profile Call Girls Whatsapp Numbe...🔥 Hyderabad Call Girls  👉 9352988975 👫 High Profile Call Girls Whatsapp Numbe...
🔥 Hyderabad Call Girls  👉 9352988975 👫 High Profile Call Girls Whatsapp Numbe...
 
❣Independent Call Girls Chennai 💯Call Us 🔝 7737669865 🔝💃Independent Chennai E...
❣Independent Call Girls Chennai 💯Call Us 🔝 7737669865 🔝💃Independent Chennai E...❣Independent Call Girls Chennai 💯Call Us 🔝 7737669865 🔝💃Independent Chennai E...
❣Independent Call Girls Chennai 💯Call Us 🔝 7737669865 🔝💃Independent Chennai E...
 
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
 
Call Girls In Tiruppur 👯‍♀️ 7339748667 🔥 Free Home Delivery Within 30 Minutes
Call Girls In Tiruppur 👯‍♀️ 7339748667 🔥 Free Home Delivery Within 30 MinutesCall Girls In Tiruppur 👯‍♀️ 7339748667 🔥 Free Home Delivery Within 30 Minutes
Call Girls In Tiruppur 👯‍♀️ 7339748667 🔥 Free Home Delivery Within 30 Minutes
 
Data Communication and Computer Networks Management System Project Report.pdf
Data Communication and Computer Networks Management System Project Report.pdfData Communication and Computer Networks Management System Project Report.pdf
Data Communication and Computer Networks Management System Project Report.pdf
 
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort ServiceCuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
 
My Airframe Metallic Design Capability Studies..pdf
My Airframe Metallic Design Capability Studies..pdfMy Airframe Metallic Design Capability Studies..pdf
My Airframe Metallic Design Capability Studies..pdf
 
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
 
💋Mature Women / Aunty Call Girls Gurgaon 💯Call Us 🔝 9999965857 🔝💃Independent ...
💋Mature Women / Aunty Call Girls Gurgaon 💯Call Us 🔝 9999965857 🔝💃Independent ...💋Mature Women / Aunty Call Girls Gurgaon 💯Call Us 🔝 9999965857 🔝💃Independent ...
💋Mature Women / Aunty Call Girls Gurgaon 💯Call Us 🔝 9999965857 🔝💃Independent ...
 
🔥Independent Call Girls In Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Esco...
🔥Independent Call Girls In Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Esco...🔥Independent Call Girls In Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Esco...
🔥Independent Call Girls In Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Esco...
 
paper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdfpaper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdf
 
Call Girls Nagpur 8824825030 Escort In Nagpur service 24X7
Call Girls Nagpur 8824825030 Escort In Nagpur service 24X7Call Girls Nagpur 8824825030 Escort In Nagpur service 24X7
Call Girls Nagpur 8824825030 Escort In Nagpur service 24X7
 
Covid Management System Project Report.pdf
Covid Management System Project Report.pdfCovid Management System Project Report.pdf
Covid Management System Project Report.pdf
 
ESCORT SERVICE FULL ENJOY - @9711199012, Mayur Vihar CALL GIRLS SERVICE Delhi
ESCORT SERVICE FULL ENJOY - @9711199012, Mayur Vihar CALL GIRLS SERVICE DelhiESCORT SERVICE FULL ENJOY - @9711199012, Mayur Vihar CALL GIRLS SERVICE Delhi
ESCORT SERVICE FULL ENJOY - @9711199012, Mayur Vihar CALL GIRLS SERVICE Delhi
 
Intuit CRAFT demonstration presentation for sde
Intuit CRAFT demonstration presentation for sdeIntuit CRAFT demonstration presentation for sde
Intuit CRAFT demonstration presentation for sde
 

UNIT 1.pptx

  • 1. SOFTWARE TESTING UNIT I By Gnana Jeslin AP/CSE RMKCET
  • 2. UNIT I INTRODUCTION Testing as an Engineering Activity – Testing as a Process – Testing Maturity Model- Testing axioms – Basic definitions – Software Testing Principles – The Tester’s Role in a Software Development Organization – Origins of Defects – Cost of defects – Defect Classes – The Defect Repository and Test Design –Defect Examples- Developer/Tester upport of Developing a Defect Repository
  • 3. COURSE OUTCOME Understand the impact of defects in software development process
  • 4. SOFTWARE TESTING • Testing is generally described as a group of procedures carried out to evaluate some aspect of a piece of software. • Testing can be described as a process used for revealing defects in software, and for establishing that the software has attained a specified degree of quality with respect to selected attributes.
  • 5. Testing as an Engineering Activity • Software systems are becoming more challenging to build. • New methods, techniques, and tools are becoming available to support development and maintenance tasks. • Poor quality software that can cause loss of life or property is no longer acceptable to society. • Highly qualified staff ensures that software products are built on time, within budget, and are of the highest quality with respect to attributes such as reliability, correctness, usability, and the ability to meet all user requirements.
  • 6. Using an engineering approach to software development implies that: • The development process is well understood • Projects are planned • Life cycle models are defined • Standards are in place for product and process • Measurements are employed to evaluate product and process quality • Components are reused • Validation and verification processes play a key role in quality determination • Engineers have proper education, training, and certification.
  • 7. Testing as a Process
  • 8. Testing as a Process Process in Engineering Domain • Process, in the software engineering domain, is the set of methods, practices, standards, documents, activities, policies, and procedures that software engineers use to develop and maintain a software system and its associated artifacts, such as project and test plans, design documents, code, and manuals.
  • 9. Testing as a Process The Role of Process in Software Quality • The need for software products of high quality has pressured those in the profession to identify and quantify quality factors such as usability, testability, maintainability, and reliability, and to identify engineering practices that support the production of quality products having these favorable attributes.
  • 10. Testing as a Process • The software development process has been described as a series of phases, procedures, and steps that result in the production of a software product. • Embedded within the software development process are several other processes including testing.
  • 11. Testing as a Process
  • 12. Testing as a Process Testing is related to two other processes. • Validation is the process of evaluating a software system or component during, or at the end of, the development cycle in order to determine whether it satisfies specified requirements. • Verification is the process of evaluating a software system or component to determine whether the products of a given development phase satisfy the conditions imposed at the start of that phase.
  • 13. Testing Maturity Model Testing Maturity Model is a means for developing quality software The focus of the TMM is on testing as a process in itself that can be evaluated and improved. In the testing domain possible benefits of test process improvement are the following: • smarter testers • higher quality software • the ability to meet budget and scheduling goals • improved planning • the ability to meet quantifiable testing goals
  • 14. Testing Maturity Model • TMM follows a staged architecture for process improvement models. • It contains stages or levels through which an organization passes as its testing • process evolves from one that is ad hoc and unmanaged to one that is managed, defined, measured, and optimizable.
  • 17. Testing Axioms An axiom is a sentence or proposition that is not proved or demonstrated and is considered as obvious or as an initial necessary consensus for a theory building or acceptation.
  • 18. Testing Axioms 1. It is impossible to test a program completely. 2. Software testing is a risk-based exercise. 3. Testing cannot show the absence of bugs. 4. The more bugs you find, the more bugs there are. 5. Not all bugs found will be fixed.
  • 19. Testing Axioms 6. It is difficult to say when a bug is indeed a bug. 7. Specifications are never final. 8. Software testers are not the most popular members of a project. 9. Software testing is a disciplined and technical profession.
  • 20. Basic Definitions Error • An error is a mistake, misconception, or misunderstanding on the part of a software developer. • For example, a developer may misunderstand a design notation, or a programmer might type a variable name incorrectly.
  • 21. Basic Definitions Faults (Defects) • A fault (defect) is introduced into the software as the result of an error. • It is an anomaly in the software that may cause it to behave incorrectly, and not according to its specification. • Faults or defects are sometimes called ―bugs.
  • 22. Basic Definitions Failures A failure is the inability of a software system or component to perform its required functions within specified performance requirements
  • 23. Basic Definitions Test Cases A test case in a practical sense is a test-related item which contains the following information: 1. A set of test inputs. 2. Execution conditions. 3. Expected outputs.
  • 24. Basic Definitions Test A test is a group of related test cases, or a group of related test cases and test procedures. • A group of related tests – Test Set • A group of related tests that are associated with a DB and are usually run together - Test Suite
  • 25. Basic Definitions Test Oracle A test oracle is a document, or piece of software that allows testers to determine whether a test has been passed or failed. Test Bed A test bed is an environment that contains all the hardware and software needed to test a software component or a software system. Eg‘s Simulators, emulators, Memory Checkers, software tools.
  • 26. Software Testing Principles Principle 1 Testing is the process of exercising a software component using a selected set of test cases, with the intent of (i) revealing defects, and (ii) evaluating quality.
  • 27. Software Testing Principles Principle 2 When the test objective is to detect defects, then a good test case is one that has a high probability of revealing a yet undetected defect(s). Principle 3 Test results should be inspected meticulously.
  • 28. Software Testing Principles Principle 4 A test case must contain the expected output or result. Principle 5 Test cases should be developed for both valid and invalid input conditions. Principle 6 The probability of the existence of additional defects in a software component is proportional to the number of defects already detected in that component.
  • 29. Software Testing Principles Principle 7 Testing should be carried out by a group that is independent of the development group. Principle 8 Tests must be repeatable and reusable. Principle 9 Testing should be planned.
  • 30. Software Testing Principles Principle 10 Testing activities should be integrated into the software life cycle. Principle 11 Testing is a creative and challenging task
  • 31. Difficulties And Challenges For The Tester • A tester needs to have comprehensive knowledge of the software engineering discipline. • A tester needs to have knowledge from both experience and education as to how software is specified, designed, and developed. • A tester needs to be able to manage many details.
  • 32. Difficulties And Challenges For The Tester • A tester needs to have knowledge of fault types and where faults of a certain type might occur in code constructs. • A tester needs to reason like a scientist and propose hypotheses that relate to presence of specific types of defects. • A tester needs to have a good grasp of the problem domain of the software that he/she is testing. Familiarly with a domain may come from educational, training, and work-related experiences.
  • 33. The Tester’s Role In A Software Development Organization •The tester’s job is to •Reveal defects, •Find weak points, •Inconsistent behaviour,
  • 34. The Tester’s Role In A Software Development Organization • The tester’s job is to identify: • Circumstances where the software does not work as expected. • It is difficult for developers to effectively test their own code. A tester needs very good programming experience in order to understand how code is constructed, and to know where and what types of, defects could occur. • A tester should work with the developers to produce high-quality software that meets the customers’ requirements.
  • 35. ORIGINS OF DEFECTS • Defects have detrimental affects on software users, and software engineers work very hard to produce high-quality software with a low number of defects. 1. Education 2. Communication 3. Oversight 4. Transcription 5. Process
  • 37. FAULT MODEL • A fault (defect) model can be described as a link between the error made (e.g., a missing requirement, a misunderstood design element, a typographical error), and the fault/defect in the software. • In the past, fault models and fault lists have often been used by developers/ testers in an informal manner, since many organizations did not save or catalog defect-related information in an easily accessible form. • To increase the effectiveness of their testing and debugging processes, software organizations need to initiate the creation of a defect database, or defect repository.
  • 38. COST OF DEFECTS • The cost of defects can be measured by the impact of the defects and when we find them. • Earlier the defect is found lesser is the cost of defect. • For example if error is found in the requirement specifications during requirements gathering and analysis, then it is somewhat cheap to fix it. • The correction to the requirement specification can be done and then it can be re- issued.
  • 39. DEFECT CLASSES • Defects can be classified in many ways. • The four classes of defects are as follows, • Requirements and specifications defects, • Design defects, • Code defects, • Testing defects
  • 40. 1. Requirements and Specifications Defects • Defects injected in early phases can be very difficult to remove in later phases. • Since many requirements documents are written using a natural language representation, they may become • Ambiguous, • Contradictory, • Unclear, • Redundant, • Imprecise.
  • 41. 1. Requirements and Specifications Defects • 1.1 Functional Description Defects • 1.2 Feature Defects • 1.3 Feature Interaction Defects • 1.4 Interface Description Defects
  • 42. 2. Design Defects •Design defects occur when the following are incorrectly designed, • System components, • Interactions between system components, • Interactions between the components and outside software/hardware, or users
  • 43. 2. Design Defects • 2.1 Algorithmic and Processing Defects • 2.2 Control, Logic, and Sequence Defects • 2.3 Data Defects • 2.4 Module Interface Description Defects • 2.5 Functional Description Defects • 2.6 External Interface Description Defects
  • 44. 3. Coding Defects • Coding defects are derived from errors in implementing the code. • Coding defects classes are similar to design defect classes. • Some coding defects come from a failure to understand programming language constructs, and miscommunication with the designers.
  • 45. 3. Coding Defects • 3.1 Algorithmic and Processing Defects • 3.2 Control, Logic and Sequence Defects • 3.3 Typographical Defects • 3.4 Initialization Defects
  • 46. 3. Coding Defects • 3.5 Data-Flow Defects • 3.6 Data Defects • 3.7 Module Interface Defects • 3.8 Code Documentation Defects • 3.9 External Hardware, Software Interfaces Defects
  • 47. 4. Testing Defects • Test plans, test cases, test harnesses, and test procedures can also contain defects. These defects are called testing defects. • Defects in test plans are best detected using review techniques. • 4.1 Test Harness Defects 4.2 Test Case Design and Test Procedure Defects
  • 48. DEFECT CLASSES & DEFECT REPOSITORY
  • 49. DEFECT REPOSITORY • The defect repository concept supports storage and retrieval of defect data from all projects in a centrally accessible location. • Defect classification scheme is a necessary first step for developing the repository. • Defects found both during reviews and execution-based testing should be cataloged. • Supplementary information can be added to the defect repository, Staff members can use this data for test planning, test design, and fault/defect diagnosis
  • 50. Developer/Tester Support for Developing a Defect Repository • Software engineers and test specialists should follow the examples of engineers in other disciplines who make use of defect data. • A requirement for repository development should be a part of testing and/or debugging policy statements. • Forms and templates should be designed to collect the data. Each defect and frequency of occurrence must be recorded after testing. • Defect monitoring should be done for each on-going project. The distribution of defects will change when changes are made to the process.
  • 51. Developer/Tester Support for Developing a Defect Repository
  • 52. Developer/Tester Support for Developing a Defect Repository • The defect data is useful for test planning. • It is a TMM level 2 maturity goal. • It helps a tester to select applicable testing techniques, design the test cases, and allocate the amount of resources needed to detect and remove defects. • This allows tester to estimate testing schedules and costs.
  • 53. Developer/Tester Support for Developing a Defect Repository • The defect data can support debugging activities also. • A defect repository can help in implementing several TMM maturity goals including • Controlling and monitoring of test, • Software quality evaluation and control, • Test measurement, • Test process improvement.
  • 54. Defect Examples: Coin Problem • This program calculates the total rupees value for a set of coins. The user inputs the amount of 25p, 50p and 1rs coins. There are size different denominations of coins. The program outputs the total rupees and paise value of the coins to the user • Input : number_of_coins is an integer • Output : number_of_rupees is an integer • number_of_paise is an integer
  翻译: