Risk-based testing is a testing approach where tests are prioritized based on the risk of failure and its impact. It focuses on testing the most important and risky parts of the software first.
Click to reveal answer
beginner
Why do we use risk-based testing?
We use risk-based testing to make the best use of limited testing time and resources by focusing on areas that could cause the most harm if they fail.
Click to reveal answer
beginner
Name two key factors considered in risk-based testing.
The two key factors are:
Likelihood of failure (how likely a problem is)
Impact of failure (how bad the problem would be)
Click to reveal answer
beginner
How does risk-based testing help in real-life projects?
It helps teams focus on testing the most critical features first, reducing the chance of serious bugs reaching users and saving time by not testing low-risk areas extensively.
Click to reveal answer
beginner
What is a simple example of risk-based testing?
Imagine testing a banking app: testing money transfer features is high risk because errors can cause big losses, so these get tested first. Features like changing the app theme are low risk and tested later.
Click to reveal answer
What does risk-based testing prioritize?
ATesting features with the highest risk first
BTesting features in alphabetical order
CTesting only the new features
DTesting features randomly
✗ Incorrect
Risk-based testing focuses on testing the parts of the software that have the highest risk of failure and impact.
Which two factors are used to assess risk in risk-based testing?
ANumber of users and code size
BCost and time
CLikelihood of failure and impact of failure
DTest coverage and test speed
✗ Incorrect
Risk is assessed by how likely a failure is and how bad the failure would be.
Why is risk-based testing useful when time is limited?
AIt tests everything equally
BIt focuses on the most important risks first
CIt skips testing completely
DIt tests only the easiest features
✗ Incorrect
Risk-based testing helps use limited time wisely by focusing on the most risky parts first.
In risk-based testing, what happens to low-risk features?
AThey are tested more than high-risk features
BThey are tested first
CThey are ignored completely
DThey are tested last or less thoroughly
✗ Incorrect
Low-risk features are tested later or with less effort to save resources.
Which of these is an example of a high-risk feature in a shopping app?
AAdding items to the shopping cart
BReading the terms and conditions
CViewing the help page
DChanging the app background color
✗ Incorrect
Adding items to the cart is high risk because errors here affect purchases and revenue.
Explain what risk-based testing is and why it is important.
Think about how you decide what to test first when you have limited time.
You got /3 concepts.
Describe how you would decide which features to test first using risk-based testing.
Consider what could go wrong and how bad it would be.
You got /3 concepts.
Practice
(1/5)
1. What is the main goal of risk-based testing in software testing?
easy
A. To avoid testing parts that are easy to test
B. To test all parts of the software equally
C. To focus testing on the most important and risky parts first
D. To test only the user interface
Solution
Step 1: Understand the purpose of risk-based testing
Risk-based testing aims to prioritize testing efforts on areas with the highest risk to save time and improve effectiveness.
Step 2: Compare options with this purpose
To focus testing on the most important and risky parts first matches this goal by focusing on important and risky parts first, while others do not.
Final Answer:
To focus testing on the most important and risky parts first -> Option C
Quick Check:
Risk-based testing = Focus on risky parts first [OK]
Hint: Risk-based testing targets risky parts first [OK]
Common Mistakes:
Thinking all parts are tested equally
Believing risk-based testing ignores important parts
Confusing risk-based testing with UI-only testing
2. Which of the following is the correct way to prioritize tests in risk-based testing?
easy
A. By combining the impact and likelihood of potential problems
B. By testing the easiest features first
C. By testing features in alphabetical order
D. By testing only the newest features
Solution
Step 1: Recall how risk is calculated in testing
Risk is usually calculated by combining the impact of a problem and how likely it is to happen.
Step 2: Match this with the options
By combining the impact and likelihood of potential problems correctly states this combination, while others focus on unrelated criteria.
Final Answer:
By combining the impact and likelihood of potential problems -> Option A
Quick Check:
Risk = Impact x Likelihood [OK]
Hint: Prioritize tests by impact and likelihood [OK]
Common Mistakes:
Prioritizing by ease or alphabetical order
Ignoring likelihood of problems
Testing only new features without risk analysis
3. Consider this simplified risk table for features: