Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Software Engineering Tutorial
  • Software Development Life Cycle
  • Waterfall Model
  • Software Requirements
  • Software Measurement and Metrics
  • Software Design Process
  • System configuration management
  • Software Maintenance
  • Software Development Tutorial
  • Software Testing Tutorial
  • Product Management Tutorial
  • Project Management Tutorial
  • Agile Methodology
  • Selenium Basics
Open In App
Next Article:
Risk Based Testing and Failure Mode and Effects Analysis
Next article icon

Risk Based Testing and Failure Mode and Effects Analysis

Last Updated : 24 May, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

Risk is the probability of a negative or undesirable outcome or event. Risk is any problem that might occur that would decrease customer, user, stakeholder perception of quality and/or project success. 


Types of risks:
There are 2 types of risks- Product Risk and Quality Risk.

  1. Product risk-
    When the Primary effect of a potential problem is on product quality, then the potential problem is called Product risk. It can also be called a quality risk. Example- A defect that can cause a system crash or monetary loss. 
  2. Project Risk-
    When the Primary effect of a potential problem is on the overall success of the project, those potential problems are called Project risk. They can also be called Planning risks.  Example- Staffing issues that can delay project completion.

Not all risks are equally important. There is a number of ways we can classify the level of risk. The easiest way is to look at two factors-

  1. Likelihood of occurrence of the problem. Likelihood arises from technical considerations.
  2. Impact of the problem, if it occurs. Impact arises from business considerations.


What Is Risk-Based Testing? 
In risk-based testing, we use the risk items identified during risk analysis, along with the level of risk associated with each risk item to guide the testing. It is a type of software testing technique that is primarily based on the probability of the risk. Risk-based testing involves the following steps:

  1. Accessing the risk based on software quality.
  2. Frequency of use.
  3. Criticality of Business.
  4. Possible areas with defects, etc.


Characteristics Of Risk-Based Testing (RBT): 
Below are some characteristics of Risk-based testing (RBT)-

  1. RBT strategy matches the level of test effort to the level of risk. The higher the risk, the more is the test effort. This applies to test execution as well as other test activities like test designing and implementation. 
  2. It matches the order of testing with the level of risk. Higher risk tests tend to find more defects or are related to more important areas in the application or maybe both. So higher the risk, we plan the tests earlier in the cycle- both in design and execution. This helps in building the confidence of business stakeholders as well. 
  3. By effort allocation and maintaining the order of testing, the quality risk gets systematically and predictably reduced. By maintaining a traceability matrix of tests vs risks and defects identified to risks, reporting the risk as residual risks make sense. This allows the concerned stakeholders to decide when to stop testing i.e whenever the risk of continuing testing exceeds the risk of testing completion. 
  4. If schedule reduction requires scope reduction, it is easier to decide what needs to go out. It will always be acceptable and explainable to business stakeholders as risk levels are agreed upon.
  5. To identify risks, we need to take inputs from various sources like - Requirements specifications, design specifications, existing application data, previous incident records, etc. However, if this information is not readily available, we can still use this approach by getting inputs from stakeholders for the risk identification and assessment process. 

Here, Please note that the ability to sustain on little or no documentation makes this strategy of testing more robust (if not fail-proof) as dependency on upstream processes like requirement gathering is reduced to an extent. 


When To Implement Risk-Based Testing?
Risk-based testing approach is implemented in scenarios where- 

  1. There is time/resource or budget constraints. For example- A hotfix to be deployed in production.
  2. When a proof of concept is being implemented.
  3. When the team is new to the technology platform or to the application under test.
  4. When testing in Incremental models or Iterative models.
  5. Security testing is done in Cloud computing environments.
     

How Risk-Based Testing Is Implemented?
Risk can guide testing in multiple ways but below are the major ones -

  1. The effort is allocated by test managers proportional to the risk associated with the test item.
  2. Test techniques are selected in a way that matches the rigor and extensiveness required based on the level of risk of the test item.
  3. Test activities should be carried out in reverse order of risk i.e The Highest risk item should be tested first.
  4. Prioritization and resolution of defects should be done as appropriate with the level of risk associated. 
  5. During test planning and control, test managers should carry out risk control for all significant risk items. The higher the level of risk associated, the more thoroughly it should be controlled.
  6. Reporting should be done in terms of residual risks. Example- Which tests have not run yet? Which defects have not fixed yet?

It is important to note that risk management is not something that happens at the project start. It should be an ongoing activity throughout the project lifecycle. However, the nature of risks keeps changing depending on which test phase we are in.
Risks should be periodically evaluated along with risk levels based on new developments in the project. It may result in some risks getting undervalued or even closed. Based on the outcomes, test efforts allocation and other test control activities will also change. 
Also, Effort should be to try to reduce quality risks by running the tests, finding defects, and reduce project risks by mitigating and contingency actions. 


Benefits of Risk-Based Testing (RBT):
By identifying and analyzing the risks related to the system, it is possible to make testing efficient and effective-

  1. Efficient-
    RBT is efficient because you test the most critical areas of the system early in the cycle (the earlier the defect is detected the lower is the cost of solving those issues)
  2. Effective-
    RBT is effective because your time is spent according to the risk rating and mitigation plans. You do not spend time on items and activities which might not be very important in the overall scheme of things.
  3. Reduced Test cases-
    Test case count gets reduced as test cases become more focused.
  4. Cost reduction-
    A reduction in cost per quality as critical issues get fixed early in the cycle and hence lowering the cost of change.
  5. Faster time to market-
    Faster time to market is more easily achievable with RBT approach as the most important features are available in a shippable position early in the cycle.


Failure Mode And Effects Analysis (FMEA):
FMEA is a systematic technique used to identify quality risk items known as failure modes i.e.it identifies where and how the system under test might fail and then assess the relative impact of different failures.
The steps involved in the process are:

  1. Failure modes- 
    What could fail?
  2. Failure causes-
    Why would the failure happen?
  3. Failure effects-
    What would be the outcome of each failure?

The FMEA approach is iterative i.e re-evaluation of residual risk needs to be done repeatedly. This technique was originally designed to help prevent defects during the design and implementation phase and hence is expected to be used early in the cycle.
There is a need to be fine-grained when it comes to failure mode analysis as effects on users, customers need to be identified as well. Since this level of depth of analysis is required, FMEA documentation can be intricate.
It is mostly used in safety-critical, high-risk, and conservative projects. For example- Industrial control software, nuclear control software etc. 
FMEA is very useful in evaluating a new process prior to implementation and in assessing the impact of a proposed change on an existing process.


FMEA Process:
This section details the FMEA process. Below are the steps-

1. Review the Process- Use a process flowchart to identify each process component and list each process component in the   FMEA table.
2. Identify potential failure modes and map their potential impact-

  1. Review existing documentation, design, and data to identify the ways each component can fail to come up with an exhaustive list.
  2. Map each failure to the impact each failure has on the end product or on subsequent steps in the process.
  3. Assign severity to each failure.
Severity RankDescription
10Hazardous, without warning
9Hazardous, with warning
8Very High
7High
6Moderate
5Low
4Very Low
3Minor
2Very Minor
1None

3. Once impact and severity are identified, also assign the occurrence ranking.

  1. An occurrence is a ranking number associated with the likelihood that the failure mode and its associated cause will be present in the item being analyzed. The occurrence ranking has a relative meaning rather than an absolute value and is determined without regard to the severity or likelihood of detection.
  2. For System and Design FMEAs, the occurrence ranking considers the likelihood of occurrence during the design life of the product.
Occurrence RankDescription
10>100 Per 1,000
950 Per 1,000
820 Per 1,000
710 Per 1,000
65 Per 1,000
52 Per 1,000
41 Per 1,000
30.5 Per 1,000
20.1 Per 1,000
1<0.01 Per 1,000

4. Assign Detection Ranking

  1. The detection ranking considers the likelihood of detection of the failure mode/cause, according to defined criteria.
  2. Detection is a relative ranking within the scope of the specific FMEA and is determined without regard to the severity or likelihood of occurrence.
Detection RankDescription
10Absolutely Impossible
9Very Remote
8Remote
7Very Low
6Low
5Moderate
4Moderately High
3High
2Almost Certain
1Certain

5. Calculate the Risk Priority Number.

  1. The RPN is calculated by multiplying the three scoring columns-
    1. Severity(Point2).
    2. Occurrence (Point 3).
    3. Detection (Point 4).

6. Develop an action plan according to RPN.

  1. Decide which failures should be prioritized to work on based on the Risk Priority Numbers. Highest RPNs get the most priority.
  2. Define action plan, Responsible person, and Expected date of completion.

7. Implement the action plan.

8. Re-evaluate and repeat.

  1. Re-evaluate each of the potential failures once improvements have been made and determine the impact of the improvements.
  2. Repeat the process to identify the next actions.
FMEA Template


Benefits Of FMEA:
Below are the benefits of FMEA-

  1. It is precise and thorough and hence less likely to omit risks.
  2. It gives a holistic view of potential problems since we need to do a detailed analysis of expected system failures
  3. It provides justification for not doing certain tests i.e where the probability of failure is least.


Challenges Of FMEA:
Below are the challenges of FMEA-

  1. It is documentation-heavy and hence time-consuming. 
  2. When trying to determine the causes of failures, it might be challenging to determine the true cause from intermediate effects.
  3. Many organizations fail to recognize that the FMEA is not a static model. For successful risk management, the FMEA should be regularly updated as new potential failure modes are identified and corresponding control plans are developed.

Next Article
Risk Based Testing and Failure Mode and Effects Analysis

N

neeru360
Improve
Article Tags :
  • Software Engineering
  • Software Testing
  • Manual Testing

Similar Reads

    Software Testing - Test Analysis
    Software testing is a process, of testing software performance to determine whether an improved software meets the stated requirements or not and to identify errors to ensure that a product is flawless to produce a high-quality product. Test Analysis In software testing, test analysis is the process
    8 min read
    Introduction to Value-based and Risk-based types of Testing
    Value-based Testing and Risk-based Testing are two fundamental methods for software testing that set priorities for testing according to various standards. While the latter recognizes and reduces potential risks, the former concentrates on providing stakeholders with the greatest possible value. Tab
    13 min read
    Advantages and Disadvantages of Manual Testing
    Manual Testing plays an important role in providing high-quality bug-free applications to users. It is also an essential part of the development cycle. Now, in the dynamic landscape with the rise of technology, automated testing has been used. Manual testing is an important aspect of the quality ass
    6 min read
    Random Testing in Software Testing
    Random testing is software testing in which the system is tested with the help of generating random and independent inputs and test cases. Random testing is also named monkey testing. It is a black box assessment outline technique in which the tests are being chosen randomly and the results are bein
    4 min read
    Model Based Testing in Software Testing
    Prerequisites: software-testing Model-based testing is nothing but a simple testing technique in which we get different test cases that are described by the model. In this type, the test cases are generated via both online and offline test case models. Table of Content Significance of Model-Based Te
    5 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences