0
0
Testing Fundamentalstesting~10 mins

Stress testing concepts in Testing Fundamentals - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define stress testing as testing the system under {{BLANK_1}} load conditions.

Testing Fundamentals
stress_test_definition = "Stress testing is testing the system under [1] load conditions."
Drag options to blanks, or click blank then click option'
Anormal
Baverage
Cminimal
Dextreme
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'normal' or 'average' load instead of extreme.
2fill in blank
medium

Complete the code to show that stress testing helps find {{BLANK_1}} that appear under heavy load.

Testing Fundamentals
def stress_testing_goal():
    return "Find [1] that appear under heavy load"
Drag options to blanks, or click blank then click option'
Abugs
Busers
Cdesigns
Dfeatures
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'features' or 'designs' which are unrelated to errors.
3fill in blank
hard

Fix the error in the code to correctly simulate a stress test by increasing the load to {{BLANK_1}} users.

Testing Fundamentals
def simulate_stress_test(current_users):
    load = current_users * [1]
    return load
Drag options to blanks, or click blank then click option'
A0.5
B10
C1
D-5
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1 or less which does not increase load.
Using negative numbers which are invalid.
4fill in blank
hard

Fill both blanks to create a test that runs until the system {{BLANK_1}} or the time {{BLANK_2}} out.

Testing Fundamentals
def run_stress_test():
    while not system.[1]() and not timer.[2]():
        system.increase_load()
Drag options to blanks, or click blank then click option'
Afails
Bstarts
Ctimes_out
Dresets
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'starts' or 'resets' which do not indicate stopping conditions.
5fill in blank
hard

Fill all three blanks to create a report dictionary with keys for {{BLANK_1}}, {{BLANK_2}}, and {{BLANK_3}} after stress testing.

Testing Fundamentals
report = {
    '[1]': system.status(),
    '[2]': test.duration(),
    '[3]': test.errors()
}
Drag options to blanks, or click blank then click option'
Astatus
Bduration
Cerrors
Dusers
Attempts:
3 left
💡 Hint
Common Mistakes
Including 'users' which is not part of this report.