SlideShare a Scribd company logo
Analytical:
Risk-based and Specification-
based Testing
SPEAKER: TAM BUI
About me
• B. A in English in 1996 – University of Hue.
• B. Eng in Computer Science in 2005 – Hanoi
University of Science and Technology.
• ISTQB – Advanced Level – Test Manager in USA in
2013.
• Over 14 year experiences in software testing.
• Strong knowledge and experiences in automation
testing, performance testing and security testing.
• Great passion in software testing: learning and
sharing knowledge and experiences.
2
Objectives
• What is a Test Strategy?
• What is about Analytical Test Strategy?
• Risk-based Testing.
• Specification-based Testing.
• Benefits of Analytical Test Strategy.
3
What are Test Objectives?
• Finding Defects.
• Preventing Defects.
• Providing Quality Information.
• Gaining confidence about the level of quality.
• Satisfying the needs of stakeholders: Scope, Time, and
Budget.
• Satisfying the Business/System Requirement
Specification.
4
What is a Test Strategy?
A Test Strategy is a document to be developed to
inform project managers, testers, developers how to
achieve test objectives.
5
Types of Test Strategies
Analytical
Model-
based
Methodical
Standard-
compliant
Dynamic Consultative
Regression-
averse
6
Test objectives in real projects
Project 1
You are a Test Manager. You are
assigned to work with a new
project with some difficult
objectives: large scope with short
time and resource shortage.
Project 2
You are a Test Manager. You are
assigned to work with a new
project to develop a safety critical
system which will be used in the
surgery field.
Which Test
Strategy is
selected?
Analytical
7
What is about Analytical
Strategy?
All test planning activities are based on
data and analysis of data
Risk-based Testing
Specification-
based Testing
8
Risk-based Testing
• What is Software Risk?
• Risk Management.
9
What is Software Risk?
A risk is something that has not happened yet and it may
never happen. It is a potential problem.
Risk is the possibility of a negative or undesirable outcome.
A risk has some likelihood between 0% and 100%.
10
Software Risk Areas
Functional complexity
Performance
Safety
Data Selections
Recoverability
New Technology
Scalability and Reliability
Scope of Use
Environment
Security
Reliability
Usability
Interface Complexity Technical Complexity
11
Risk Management
Risk Identification
Risk Control,
Mitigation
Risk Analysis
12
Risk Identification
Expert interviews
Independent assessments
Use of risk templates
Lessons learned
• Metrics and data from past projects.
• Develop a risk database or repository
13
Risk Identification (Cont.)
Formal analysis methods
• Failure modes and effects analysis (FMEA)
• Hazard analysis, Cost of failure, Other
Risk workshops
Brainstorming
Checklists
Calling on past experience
14
Risk Analysis – Likelihood
(Technical Factors)
Complexity of technology
Personnel issues
Trainings
Intra-team and inter-team
issues
Supplier and Vendor
contractual problems
Geographical distribution of the
development organization
New Technologies and designs
Bad quality of tools and
technologies used
Bad management and technical
leadership
Time, resource, and
management pressure
Late testing and bad quality
assurance
Requirements, designs, code
changes
High defect rate
The frequency of use of the
affected feature
15
Risk Analysis – Impact (Business
Factors)
Potential damage to the company image
Loss of Customers and Business
Financial and social losses or liability
Civil or criminal legal sanction
Loss of licenses or permits
The lack of reasonable workarounds
The visibility of failure and the associated negative
publicity
16
Risk Analysis – Risk Priority
Number
• Apply 5-point-scale for Likelihood and Impact for
each risk:
– 1 = Very High
– 2 = High
– 3 = Medium
– 4 = Low
– 5 = Very Low
Risk Priority Number = Likelihood * Impact
17
Risk Analysis – Extent of
Testing
1-5: Extensive: run large number of tests, both broad and deep, combine and vary
interesting conditions, use all relevant techniques with strong coverage criteria.
6-10: Broad: run medium number of tests, exercise many different interesting
conditions use most relevant different interesting conditions, use most relevant
techniques with medium coverage criteria.
11-15: Cursory: run small number of tests, sample most interesting conditions, use
efficient techniques with weak interesting conditions, use efficient techniques with
weak coverage criteria
16-20: Opportunity: leverage other tests or activities to test 1-2 interesting
conditions, investing very little time and effort, using reactive techniques especially.
21-25: Report bugs only: allocate only a small amount of extra time to report and
manage these accidental bugs.
18
Example
RISK LIST WITH EXTENT OF TESTING
No Quality Risk Likehood Impact Risk Pri. # Extent of Testing Tracing
1 Functional Risks
1.1 Function 1 2 5 10 Broad 100-100-100
1.2 Function 2 1 1 1 Extensive 100-100-101
1.3 Function 3 3 5 15 Cursory 100-100-102
1.4 Function 4 4 5 20 Opportunity 100-100-103
1.5 Function 5 5 5 25 Report Bugs 100-100-104
2 Performance Risks
2.1 Function 6 1 1 1 Extensive 100-100-105
2.2 Function 7 2 4 8 Broad 100-100-106
2.3 Function 8 3 3 9 Broad 100-100-107
2.4 Function 9 2 2 4 Extensive 100-100-108
2.5 Function 10 5 5 25 Report Bugs 100-100-109
3 Usabilty Risks
3.1 Function 11 4 4 16 Opportunity 100-100-110
3.2 Function 12 2 3 6 Broad 100-100-111
3.3 Function 13 3 1 3 Extensive 100-100-112
3.4 Function 14 1 1 1 Extensive 100-100-113
3.5 Function 15 5 5 25 Report Bugs 100-100-114
19
Risk Control
Mitigate: Take steps in advance to reduce the possibility and impact of the risk.
Contingency: Have a plan in place to reduce the possibility of the risk to
become an outcome.
Transfer: Convince some other member of the team or project stakeholder to
reduce the probability or accept the impact of the risk.
Ignore: Ignore the risk, which is usually a good option only when there is little
that can be done or when the possibility and impact of that risk are low in the
project.
20
Bottom line of Risk-based
Testing
Plan Testing Activities
such as design tests,
implement tests,
execute tests, report test
results according to Risk
Priority Number
21
Specification-based Testing
• What is a Specification?
• What are implicit Specifications?
• How to learn from the Specification.
• Clarify and fix ambiguities – Review techniques.
• Prioritize Software Requirement specification.
• Bottom line of Specification-based Testing.
22
What is a Specification?
A detailed description of work to be done or
materials to be used in a project
- Marriam-Webster
A software requirements specification (SRS)
is a description of a software system to be
developed. It lays out functional and non-
functional requirements and may include a
set of use cases that describe user
interactions that the software must provide.
- Wikipedia
23
What kinds of Specification can
be tested?
Software Requirement Specification
Software Design Specification
User Interface Description
User Manual
24
What are implicit
Specifications?
Characteristics of the product are
not mentioned in the
specification.
25
What are implicit Specifications
(Cont.)
Business Culture
Technical Norms
Design/Code Standards
Guidelines
Regulations
Marketing/Sale Presentations
Memos (Software changes)
26
What are implicit Specifications
(Cont.)
Competing products
Related products
Email discussions within the project
Customer comments
Bug Reports
Test Results
Prototypes
27
How to learn from the
Specification?
SQ3R Reading Strategy
Skim Question Read
Respond Review
28
Clarify and Fix Ambiguities –
Review Techniques
Walkthrough
Technical ReviewPeer Review
Inspection
29
Prioritize Requirement
Specifications
MoSCoW
MUST
Mandatory
SHOULD
High Priority
COULD
Desired but not necessary
WOULD
Can be delayed and proposed
for future releases
30
Example
SOFTWARE REQUIREMENT LIST
Req. ID Requirement Requirement Description Priority
1 Funtionality Requirement
1.1 Requirement 1 Description of Requirement 1 Must
1.2 Requirement 2 Description of Requirement 2 Could
1.3 Requirement 3 Description of Requirement 3 Would
1.4 Requirement 4 Description of Requirement 4 Must
1.5 Requirement 5 Description of Requirement 5 Should
1.6 Requirement 6 Description of Requirement 6 Must
1.7 Requirement 7 Description of Requirement 7 Could
1.8 Requirement 8 Description of Requirement 8 Must
1.9 Requirement 9 Description of Requirement 9 Would
1.10 Requirement 10 Description of Requirement 10 Must
2 Performance Requirements
2.1 Requirement 11 Description of Requirement 11 Should
2.2 Requirement 12 Description of Requirement 12 Could
2.3 Requirement 13 Description of Requirement 13 Should
2.4 Requirement 14 Description of Requirement 14 Must
2.5 Requirement 15 Description of Requirement 15 Should
31
Bottom line of Specification-
based Testing
Study Specifications which include implicit Specifications
Review Specifications and update them if necessary
Specifications are prioritized
Plan testing activities such as design tests, implement tests, execute
tests and report test results based on prioritized Specifications
32
Benefits of Analytical Strategy
Risk-base Testing Specification-based Testing
• Exhausted testing is impossible.
Important features/functions will
be addressed early. Important
problems can be discovered early.
• Defects/bugs can be prevented by
running static testing.
• Test Managers properly distribute
test efforts, schedule time, use
budget to mitigate risks and make
contingency plan when risks
occur.
• Prioritized features/functions will
be addressed early. Quality will be
improved early.
• Defects/bugs can be prevented by
running static testing.
• Tests can be derived easily.
• Customer’s needs and
expectations can be satisfied
correctly.
• Training new team members is
easily.
33
Summary
• Understand common test strategies and select
appropriate test strategy for each project.
• Comprehend risk-based testing and how to plan
risk-based testing activities.
• Comprehend specification-based testing and
how to plan specification-based testing activities.
34
Reference
• Lessons Learned in Software Testing – Cem
Kaner, James Bach, Bret Pettichord.
• Specification-based Testing – Testing Education
and BBST – Cem Kaner.
35
36
37

More Related Content

PDF
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
PDF
Deliver Fast, Break Nothing Via Effective Building Developer and Tester Colla...
PDF
Agile Testing - Not Just Tester’s Story _ Dang Thanh Long
PDF
[HCMC STC Jan 2015] Practical Experiences In Test Automation
PDF
A Novel Approach of Automation Test for Software Monitoring Solution - Tran S...
PDF
Introduction to Software Test Automation
PDF
Mobile Video Games Testing Principles - Benjamin Poirrier
PDF
[HCMC STC Jan 2015] How To Work Effectively As a Tester in Agile Teams
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
Deliver Fast, Break Nothing Via Effective Building Developer and Tester Colla...
Agile Testing - Not Just Tester’s Story _ Dang Thanh Long
[HCMC STC Jan 2015] Practical Experiences In Test Automation
A Novel Approach of Automation Test for Software Monitoring Solution - Tran S...
Introduction to Software Test Automation
Mobile Video Games Testing Principles - Benjamin Poirrier
[HCMC STC Jan 2015] How To Work Effectively As a Tester in Agile Teams

What's hot (20)

PPT
Gitte Ottosen - Agility and Process Maturity, Of Course They Mix!
PDF
Christian Bk Hansen - Agile on Huge Banking Mainframe Legacy Systems - EuroST...
PPT
'Customer Testing & Quality In Outsourced Development - A Story From An Insur...
PPT
Rob Baarda - Are Real Test Metrics Predictive for the Future?
PPT
Darius Silingas - From Model Driven Testing to Test Driven Modelling
PDF
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
PPT
Kasper Hanselman - Imagination is More Important Than Knowledge
PPTX
risk based testing and regression testing
PPT
Better Software Classic Testing Mistakes
PDF
PPTX
'Growing to a Next Level Test Organisation' by Tim Koomen
PPTX
Software test automation
PPT
Software Testing Process
PDF
Free-ebook-rex-black advanced-software-testing
PPT
Vipul Kocher - Software Testing, A Framework Based Approach
PPT
Testing Framework
PPT
Otto Vinter - Analysing Your Defect Data for Improvement Potential
PPTX
ISTQB foundation level - day 2
PPT
Michael Snyman - Software Test Automation Success
Gitte Ottosen - Agility and Process Maturity, Of Course They Mix!
Christian Bk Hansen - Agile on Huge Banking Mainframe Legacy Systems - EuroST...
'Customer Testing & Quality In Outsourced Development - A Story From An Insur...
Rob Baarda - Are Real Test Metrics Predictive for the Future?
Darius Silingas - From Model Driven Testing to Test Driven Modelling
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
Kasper Hanselman - Imagination is More Important Than Knowledge
risk based testing and regression testing
Better Software Classic Testing Mistakes
'Growing to a Next Level Test Organisation' by Tim Koomen
Software test automation
Software Testing Process
Free-ebook-rex-black advanced-software-testing
Vipul Kocher - Software Testing, A Framework Based Approach
Testing Framework
Otto Vinter - Analysing Your Defect Data for Improvement Potential
ISTQB foundation level - day 2
Michael Snyman - Software Test Automation Success
Ad

Viewers also liked (16)

PDF
Security testing-What can we do - Trinh Minh Hien
PDF
A Universal Automation Framework based on BDD Cucumber and Ruby on Rails - Ph...
PDF
The New Agile Testing Quadrants: Bringing Skilled Testers and Developers Toge...
PDF
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
PDF
Web API Test Automation Using Frisby & Node.js
PDF
Common Web UI Problems Transforming Manual to Automation
PDF
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
PDF
Building an effective mobile testing strategy
PDF
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
PDF
Why a Mobile Test Strategy is just Test Strategy
PDF
Key Factors To Ensure Test Automation Framework Success
PPTX
Test management
PPT
Testing Fundamentals
PPTX
Fundamentals of testing
PDF
Model-based Testing Principles
ODP
Pyunit
Security testing-What can we do - Trinh Minh Hien
A Universal Automation Framework based on BDD Cucumber and Ruby on Rails - Ph...
The New Agile Testing Quadrants: Bringing Skilled Testers and Developers Toge...
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
Web API Test Automation Using Frisby & Node.js
Common Web UI Problems Transforming Manual to Automation
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
Building an effective mobile testing strategy
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
Why a Mobile Test Strategy is just Test Strategy
Key Factors To Ensure Test Automation Framework Success
Test management
Testing Fundamentals
Fundamentals of testing
Model-based Testing Principles
Pyunit
Ad

Similar to Analytical Risk-based and Specification-based Testing - Bui Duy Tam (20)

PPTX
CTFL chapter 05
PPT
chapter 7.ppt
PPT
t map brief
PDF
Risk based testing a new case study
PPTX
Software Testing Basics
PDF
Risk Based Testing: Deferring the Right Bugs
PPTX
Introduction to Software Testing Part 2
PDF
Fundamentals of Software Testing
PPTX
ISTQB Eğitim Sunumu
PPTX
Introduction to Software Testing - Part 2
PPTX
Introduction to Software Testing Part 2
PPTX
Introduction to Quality Assurance Part 2
PPSX
Test Team Responsibilities
PPTX
IT8076 - SOFTWARE TESTING
PDF
Software Testing Process & Trend
PPTX
Value of software testing
PPT
Lecture08
PPTX
Session 02 - Introduction to Quality Assurance / Software Testing
PPTX
A Research Study on importance of Testing and Quality Assurance in Software D...
PPTX
Types of Testing
CTFL chapter 05
chapter 7.ppt
t map brief
Risk based testing a new case study
Software Testing Basics
Risk Based Testing: Deferring the Right Bugs
Introduction to Software Testing Part 2
Fundamentals of Software Testing
ISTQB Eğitim Sunumu
Introduction to Software Testing - Part 2
Introduction to Software Testing Part 2
Introduction to Quality Assurance Part 2
Test Team Responsibilities
IT8076 - SOFTWARE TESTING
Software Testing Process & Trend
Value of software testing
Lecture08
Session 02 - Introduction to Quality Assurance / Software Testing
A Research Study on importance of Testing and Quality Assurance in Software D...
Types of Testing

More from Ho Chi Minh City Software Testing Club (11)

PDF
[HCMC STC Jan 2015] Workshop Of Context-Driven Testing In Agile
PDF
[HCMC STC Jan 2015] Developing an Offshore Context-Driven Testing Team
PDF
[HCMC STC Jan 2015] Proving Our Worth Quantifying The Value Of Testing
PDF
[HCMC STC Jan 2015] Choosing The Best Of The Plan-Driven And Agile Developmen...
PDF
[HCMC STC Jan 2015] Creating a Better Testing Future
PDF
[HCMC STC Jan 2015] Performing Target Test in UMTS Network
PDF
Selecting the Right Automated Testing tool
PDF
Ho Chi Minh City Software Testing Conference 2014 "Stay on the cutting-edge" ...
PDF
[Vu Van Nguyen] Value-based Software Testing an Approach to Prioritizing Tests
PDF
[Vu Van Nguyen] Test Estimation in Practice
PDF
[Thong Nguyen & Trong Bui] Behavior Driven Development (BDD) and Automation T...
[HCMC STC Jan 2015] Workshop Of Context-Driven Testing In Agile
[HCMC STC Jan 2015] Developing an Offshore Context-Driven Testing Team
[HCMC STC Jan 2015] Proving Our Worth Quantifying The Value Of Testing
[HCMC STC Jan 2015] Choosing The Best Of The Plan-Driven And Agile Developmen...
[HCMC STC Jan 2015] Creating a Better Testing Future
[HCMC STC Jan 2015] Performing Target Test in UMTS Network
Selecting the Right Automated Testing tool
Ho Chi Minh City Software Testing Conference 2014 "Stay on the cutting-edge" ...
[Vu Van Nguyen] Value-based Software Testing an Approach to Prioritizing Tests
[Vu Van Nguyen] Test Estimation in Practice
[Thong Nguyen & Trong Bui] Behavior Driven Development (BDD) and Automation T...

Recently uploaded (20)

PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
assetexplorer- product-overview - presentation
PPTX
Computer Software and OS of computer science of grade 11.pptx
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
Nekopoi APK 2025 free lastest update
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PDF
Download FL Studio Crack Latest version 2025 ?
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PDF
Autodesk AutoCAD Crack Free Download 2025
PPTX
L1 - Introduction to python Backend.pptx
PDF
AutoCAD Professional Crack 2025 With License Key
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
medical staffing services at VALiNTRY
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
assetexplorer- product-overview - presentation
Computer Software and OS of computer science of grade 11.pptx
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Nekopoi APK 2025 free lastest update
Advanced SystemCare Ultimate Crack + Portable (2025)
Download FL Studio Crack Latest version 2025 ?
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Autodesk AutoCAD Crack Free Download 2025
L1 - Introduction to python Backend.pptx
AutoCAD Professional Crack 2025 With License Key
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
Why Generative AI is the Future of Content, Code & Creativity?
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Odoo Companies in India – Driving Business Transformation.pdf
medical staffing services at VALiNTRY
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency

Analytical Risk-based and Specification-based Testing - Bui Duy Tam

  • 2. About me • B. A in English in 1996 – University of Hue. • B. Eng in Computer Science in 2005 – Hanoi University of Science and Technology. • ISTQB – Advanced Level – Test Manager in USA in 2013. • Over 14 year experiences in software testing. • Strong knowledge and experiences in automation testing, performance testing and security testing. • Great passion in software testing: learning and sharing knowledge and experiences. 2
  • 3. Objectives • What is a Test Strategy? • What is about Analytical Test Strategy? • Risk-based Testing. • Specification-based Testing. • Benefits of Analytical Test Strategy. 3
  • 4. What are Test Objectives? • Finding Defects. • Preventing Defects. • Providing Quality Information. • Gaining confidence about the level of quality. • Satisfying the needs of stakeholders: Scope, Time, and Budget. • Satisfying the Business/System Requirement Specification. 4
  • 5. What is a Test Strategy? A Test Strategy is a document to be developed to inform project managers, testers, developers how to achieve test objectives. 5
  • 6. Types of Test Strategies Analytical Model- based Methodical Standard- compliant Dynamic Consultative Regression- averse 6
  • 7. Test objectives in real projects Project 1 You are a Test Manager. You are assigned to work with a new project with some difficult objectives: large scope with short time and resource shortage. Project 2 You are a Test Manager. You are assigned to work with a new project to develop a safety critical system which will be used in the surgery field. Which Test Strategy is selected? Analytical 7
  • 8. What is about Analytical Strategy? All test planning activities are based on data and analysis of data Risk-based Testing Specification- based Testing 8
  • 9. Risk-based Testing • What is Software Risk? • Risk Management. 9
  • 10. What is Software Risk? A risk is something that has not happened yet and it may never happen. It is a potential problem. Risk is the possibility of a negative or undesirable outcome. A risk has some likelihood between 0% and 100%. 10
  • 11. Software Risk Areas Functional complexity Performance Safety Data Selections Recoverability New Technology Scalability and Reliability Scope of Use Environment Security Reliability Usability Interface Complexity Technical Complexity 11
  • 12. Risk Management Risk Identification Risk Control, Mitigation Risk Analysis 12
  • 13. Risk Identification Expert interviews Independent assessments Use of risk templates Lessons learned • Metrics and data from past projects. • Develop a risk database or repository 13
  • 14. Risk Identification (Cont.) Formal analysis methods • Failure modes and effects analysis (FMEA) • Hazard analysis, Cost of failure, Other Risk workshops Brainstorming Checklists Calling on past experience 14
  • 15. Risk Analysis – Likelihood (Technical Factors) Complexity of technology Personnel issues Trainings Intra-team and inter-team issues Supplier and Vendor contractual problems Geographical distribution of the development organization New Technologies and designs Bad quality of tools and technologies used Bad management and technical leadership Time, resource, and management pressure Late testing and bad quality assurance Requirements, designs, code changes High defect rate The frequency of use of the affected feature 15
  • 16. Risk Analysis – Impact (Business Factors) Potential damage to the company image Loss of Customers and Business Financial and social losses or liability Civil or criminal legal sanction Loss of licenses or permits The lack of reasonable workarounds The visibility of failure and the associated negative publicity 16
  • 17. Risk Analysis – Risk Priority Number • Apply 5-point-scale for Likelihood and Impact for each risk: – 1 = Very High – 2 = High – 3 = Medium – 4 = Low – 5 = Very Low Risk Priority Number = Likelihood * Impact 17
  • 18. Risk Analysis – Extent of Testing 1-5: Extensive: run large number of tests, both broad and deep, combine and vary interesting conditions, use all relevant techniques with strong coverage criteria. 6-10: Broad: run medium number of tests, exercise many different interesting conditions use most relevant different interesting conditions, use most relevant techniques with medium coverage criteria. 11-15: Cursory: run small number of tests, sample most interesting conditions, use efficient techniques with weak interesting conditions, use efficient techniques with weak coverage criteria 16-20: Opportunity: leverage other tests or activities to test 1-2 interesting conditions, investing very little time and effort, using reactive techniques especially. 21-25: Report bugs only: allocate only a small amount of extra time to report and manage these accidental bugs. 18
  • 19. Example RISK LIST WITH EXTENT OF TESTING No Quality Risk Likehood Impact Risk Pri. # Extent of Testing Tracing 1 Functional Risks 1.1 Function 1 2 5 10 Broad 100-100-100 1.2 Function 2 1 1 1 Extensive 100-100-101 1.3 Function 3 3 5 15 Cursory 100-100-102 1.4 Function 4 4 5 20 Opportunity 100-100-103 1.5 Function 5 5 5 25 Report Bugs 100-100-104 2 Performance Risks 2.1 Function 6 1 1 1 Extensive 100-100-105 2.2 Function 7 2 4 8 Broad 100-100-106 2.3 Function 8 3 3 9 Broad 100-100-107 2.4 Function 9 2 2 4 Extensive 100-100-108 2.5 Function 10 5 5 25 Report Bugs 100-100-109 3 Usabilty Risks 3.1 Function 11 4 4 16 Opportunity 100-100-110 3.2 Function 12 2 3 6 Broad 100-100-111 3.3 Function 13 3 1 3 Extensive 100-100-112 3.4 Function 14 1 1 1 Extensive 100-100-113 3.5 Function 15 5 5 25 Report Bugs 100-100-114 19
  • 20. Risk Control Mitigate: Take steps in advance to reduce the possibility and impact of the risk. Contingency: Have a plan in place to reduce the possibility of the risk to become an outcome. Transfer: Convince some other member of the team or project stakeholder to reduce the probability or accept the impact of the risk. Ignore: Ignore the risk, which is usually a good option only when there is little that can be done or when the possibility and impact of that risk are low in the project. 20
  • 21. Bottom line of Risk-based Testing Plan Testing Activities such as design tests, implement tests, execute tests, report test results according to Risk Priority Number 21
  • 22. Specification-based Testing • What is a Specification? • What are implicit Specifications? • How to learn from the Specification. • Clarify and fix ambiguities – Review techniques. • Prioritize Software Requirement specification. • Bottom line of Specification-based Testing. 22
  • 23. What is a Specification? A detailed description of work to be done or materials to be used in a project - Marriam-Webster A software requirements specification (SRS) is a description of a software system to be developed. It lays out functional and non- functional requirements and may include a set of use cases that describe user interactions that the software must provide. - Wikipedia 23
  • 24. What kinds of Specification can be tested? Software Requirement Specification Software Design Specification User Interface Description User Manual 24
  • 25. What are implicit Specifications? Characteristics of the product are not mentioned in the specification. 25
  • 26. What are implicit Specifications (Cont.) Business Culture Technical Norms Design/Code Standards Guidelines Regulations Marketing/Sale Presentations Memos (Software changes) 26
  • 27. What are implicit Specifications (Cont.) Competing products Related products Email discussions within the project Customer comments Bug Reports Test Results Prototypes 27
  • 28. How to learn from the Specification? SQ3R Reading Strategy Skim Question Read Respond Review 28
  • 29. Clarify and Fix Ambiguities – Review Techniques Walkthrough Technical ReviewPeer Review Inspection 29
  • 30. Prioritize Requirement Specifications MoSCoW MUST Mandatory SHOULD High Priority COULD Desired but not necessary WOULD Can be delayed and proposed for future releases 30
  • 31. Example SOFTWARE REQUIREMENT LIST Req. ID Requirement Requirement Description Priority 1 Funtionality Requirement 1.1 Requirement 1 Description of Requirement 1 Must 1.2 Requirement 2 Description of Requirement 2 Could 1.3 Requirement 3 Description of Requirement 3 Would 1.4 Requirement 4 Description of Requirement 4 Must 1.5 Requirement 5 Description of Requirement 5 Should 1.6 Requirement 6 Description of Requirement 6 Must 1.7 Requirement 7 Description of Requirement 7 Could 1.8 Requirement 8 Description of Requirement 8 Must 1.9 Requirement 9 Description of Requirement 9 Would 1.10 Requirement 10 Description of Requirement 10 Must 2 Performance Requirements 2.1 Requirement 11 Description of Requirement 11 Should 2.2 Requirement 12 Description of Requirement 12 Could 2.3 Requirement 13 Description of Requirement 13 Should 2.4 Requirement 14 Description of Requirement 14 Must 2.5 Requirement 15 Description of Requirement 15 Should 31
  • 32. Bottom line of Specification- based Testing Study Specifications which include implicit Specifications Review Specifications and update them if necessary Specifications are prioritized Plan testing activities such as design tests, implement tests, execute tests and report test results based on prioritized Specifications 32
  • 33. Benefits of Analytical Strategy Risk-base Testing Specification-based Testing • Exhausted testing is impossible. Important features/functions will be addressed early. Important problems can be discovered early. • Defects/bugs can be prevented by running static testing. • Test Managers properly distribute test efforts, schedule time, use budget to mitigate risks and make contingency plan when risks occur. • Prioritized features/functions will be addressed early. Quality will be improved early. • Defects/bugs can be prevented by running static testing. • Tests can be derived easily. • Customer’s needs and expectations can be satisfied correctly. • Training new team members is easily. 33
  • 34. Summary • Understand common test strategies and select appropriate test strategy for each project. • Comprehend risk-based testing and how to plan risk-based testing activities. • Comprehend specification-based testing and how to plan specification-based testing activities. 34
  • 35. Reference • Lessons Learned in Software Testing – Cem Kaner, James Bach, Bret Pettichord. • Specification-based Testing – Testing Education and BBST – Cem Kaner. 35
  • 36. 36
  • 37. 37