0
0
Testing Fundamentalstesting~10 mins

Load 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 the main goal of load testing.

Testing Fundamentals
def load_testing_goal():
    return "To measure system performance under [1] load"
Drag options to blanks, or click blank then click option'
Aminimal
Bno
Cnormal
Dheavy
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'normal' load instead of 'heavy' load.
2fill in blank
medium

Complete the code to specify the tool commonly used for load testing.

Testing Fundamentals
def common_load_testing_tool():
    return "[1]"
Drag options to blanks, or click blank then click option'
AJMeter
BSelenium
CPostman
DGit
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing JMeter with Selenium or Postman.
3fill in blank
hard

Fix the error in the code that sets the number of virtual users for load testing.

Testing Fundamentals
virtual_users = [1]  # Number of users to simulate
Drag options to blanks, or click blank then click option'
A"ten"
B10
Cuser_count
DNone
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string like 'ten' instead of number 10.
4fill in blank
hard

Fill both blanks to create a dictionary that stores response times for each user during load testing.

Testing Fundamentals
response_times = {user[1]: [2] for user in range(1, 6)}
Drag options to blanks, or click blank then click option'
A_id
Bget_response_time(user)
Cuser
Duser + 1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'user' as key without '_id', or using 'user' as value instead of response time.
5fill in blank
hard

Fill all three blanks to filter response times greater than 200 ms and create a summary dictionary.

Testing Fundamentals
slow_responses = {user[1]: time for user, time in response_times.items() if time [2] [3]
Drag options to blanks, or click blank then click option'
A_id
B>
C200
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>' or wrong key name.