Complete the code to define stress testing as testing the system under {{BLANK_1}} load conditions.
stress_test_definition = "Stress testing is testing the system under [1] load conditions."
Stress testing checks how the system behaves under extreme load, beyond normal usage.
Complete the code to show that stress testing helps find {{BLANK_1}} that appear under heavy load.
def stress_testing_goal(): return "Find [1] that appear under heavy load"
Stress testing aims to find bugs or errors that occur when the system is overloaded.
Fix the error in the code to correctly simulate a stress test by increasing the load to {{BLANK_1}} users.
def simulate_stress_test(current_users): load = current_users * [1] return load
Stress testing increases load significantly, so multiplying by 10 simulates heavy load.
Fill both blanks to create a test that runs until the system {{BLANK_1}} or the time {{BLANK_2}} out.
def run_stress_test(): while not system.[1]() and not timer.[2](): system.increase_load()
The test runs until the system fails or the timer times_out.
Fill all three blanks to create a report dictionary with keys for {{BLANK_1}}, {{BLANK_2}}, and {{BLANK_3}} after stress testing.
report = {
'[1]': system.status(),
'[2]': test.duration(),
'[3]': test.errors()
}The report includes status, duration, and errors keys to summarize the stress test.