Performance testing checks how fast and stable a software works under certain conditions, like many users or heavy data.
Click to reveal answer
beginner
Name three common types of performance testing.
Load testing, stress testing, and endurance testing are common types to check speed, limits, and stability over time.
Click to reveal answer
beginner
Why is load testing important?
Load testing shows if the software can handle expected user numbers without slowing down or crashing.
Click to reveal answer
intermediate
What does stress testing help find?
Stress testing finds the breaking point of software by pushing it beyond normal limits to see how it fails.
Click to reveal answer
beginner
What is a key metric measured in performance testing?
Response time is a key metric; it measures how long the software takes to answer a request.
Click to reveal answer
Which type of performance testing checks software behavior under normal user load?
ASpike testing
BStress testing
CLoad testing
DSecurity testing
✗ Incorrect
Load testing simulates normal user load to check software performance.
What does stress testing primarily focus on?
AFinding software limits by pushing beyond normal load
BChecking software under expected load
CTesting software security
DMeasuring user satisfaction
✗ Incorrect
Stress testing pushes software beyond normal limits to find breaking points.
Which metric measures how fast software responds to a request?
AThroughput
BMemory leak
CCPU usage
DResponse time
✗ Incorrect
Response time measures how quickly software answers a request.
Endurance testing is used to check:
ASoftware stability over a long time
BSoftware security vulnerabilities
CSoftware speed under short bursts
DUser interface design
✗ Incorrect
Endurance testing checks if software stays stable during long use.
Which of these is NOT a goal of performance testing?
AIdentify bottlenecks
BCheck software security
CMeasure scalability
DEnsure reliability
✗ Incorrect
Performance testing focuses on speed and stability, not security.
Explain the difference between load testing and stress testing.
Think about normal use versus extreme use.
You got /4 concepts.
List key metrics used in performance testing and why they matter.
Consider what shows how well software performs.
You got /4 concepts.
Practice
(1/5)
1. What is the main goal of performance testing in software development?
easy
A. To find spelling mistakes in the user interface
B. To check how fast and stable the software works under heavy use
C. To test if the software installs correctly
D. To check if the software looks good on different screens
Solution
Step 1: Understand the purpose of performance testing
Performance testing measures speed and stability when many users use the software at once.
Step 2: Compare options with this purpose
Only To check how fast and stable the software works under heavy use talks about speed and stability under heavy use, matching the goal.
Final Answer:
To check how fast and stable the software works under heavy use -> Option B
Quick Check:
Performance testing = speed and stability check [OK]
Hint: Performance testing checks speed and stability under load [OK]
Common Mistakes:
Confusing performance testing with UI or installation testing
Thinking performance testing checks visual design
Mixing performance testing with functional testing
2. Which of the following is a common tool used for performance testing?
easy
A. Photoshop
B. WordPress
C. Excel
D. JMeter
Solution
Step 1: Identify tools related to performance testing
JMeter is a popular open-source tool designed for performance testing.
Step 2: Eliminate unrelated tools
Photoshop is for images, Excel for spreadsheets, WordPress for websites, none for performance testing.
Final Answer:
JMeter -> Option D
Quick Check:
Performance tool = JMeter [OK]
Hint: Pick tools known for load testing like JMeter [OK]
Common Mistakes:
Choosing unrelated software like Photoshop or Excel
Confusing content management systems with testing tools
Not knowing popular performance testing tools
3. Consider this scenario: A performance test runs 100 users simultaneously on a website. The average response time is 2 seconds, but 10 users experience 10 seconds delay. What does this indicate?
medium
A. The test is invalid because average time is low
B. The website handles load well with no issues
C. There is a performance bottleneck affecting some users
D. All users have the same experience
Solution
Step 1: Analyze the response times
Most users get 2 seconds, but some have 10 seconds delay, showing inconsistency.
Step 2: Understand what inconsistent delays mean
Long delays for some users suggest a bottleneck or problem under load.
Final Answer:
There is a performance bottleneck affecting some users -> Option C
Quick Check:
High delay for some = bottleneck [OK]
Hint: Look for slow responses in some users to spot bottlenecks [OK]
Common Mistakes:
Ignoring slow user delays and trusting only average
Assuming test is invalid without checking details
Thinking all users have same experience
4. You wrote a performance test script but it always stops with an error after 5 users start. What is the most likely cause?
medium
A. The test script has a limit on concurrent users set too low
B. The website is too fast and closes the test
C. The test tool does not support more than 5 users ever
D. The internet connection is too slow
Solution
Step 1: Understand the error context
The test stops after 5 users start, suggesting a limit reached in the script or tool settings.
Step 2: Evaluate options for cause
The test script has a limit on concurrent users set too low explains a low user limit in the script, which matches the problem. Other options are unlikely causes.
Final Answer:
The test script has a limit on concurrent users set too low -> Option A
Quick Check:
Test stops early = user limit too low [OK]
Hint: Check user limits in script when tests stop early [OK]
Common Mistakes:
Blaming website speed or internet without evidence
Assuming tool cannot handle users without checking settings
Ignoring script configuration for concurrency
5. You want to test a web app's performance under increasing load. Which approach best simulates real user behavior during the test?
hard
A. Gradually increase the number of virtual users over time while running typical user actions
B. Run 1000 users all clicking the same button at the exact same time once
C. Run a single user repeatedly refreshing the homepage for hours
D. Test only the database without simulating user actions
Solution
Step 1: Understand realistic load testing
Real users increase gradually and perform varied actions, not all at once.
Step 2: Compare options to realistic behavior
Gradually increase the number of virtual users over time while running typical user actions simulates gradual load increase with typical actions, matching real use best.
Final Answer:
Gradually increase the number of virtual users over time while running typical user actions -> Option A