0
0
Testing Fundamentalstesting~20 mins

Usability testing in Testing Fundamentals - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Usability Testing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Key Goal of Usability Testing

What is the main goal of usability testing in software development?

ATo evaluate how easy and pleasant the software is for users
BTo find security vulnerabilities in the software
CTo check if the software meets all technical requirements
DTo test the software's performance under heavy load
Attempts:
2 left
💡 Hint

Think about the user's experience and satisfaction.

Predict Output
intermediate
2:00remaining
Usability Test Report Summary Output

Given this simple usability test report code snippet, what will be the printed summary?

Testing Fundamentals
def usability_report(errors, time_taken):
    if errors == 0 and time_taken < 5:
        return 'Excellent usability'
    elif errors <= 2 and time_taken < 10:
        return 'Good usability'
    else:
        return 'Needs improvement'

print(usability_report(1, 7))
AGood usability
BSyntaxError
CNeeds improvement
DExcellent usability
Attempts:
2 left
💡 Hint

Check the conditions for errors and time_taken carefully.

assertion
advanced
1:30remaining
Valid Assertion for Usability Test Success

Which assertion correctly checks that the usability test passed when the success rate is at least 90%?

Testing Fundamentals
success_rate = 0.92
Aassert success_rate > 0.9, 'Usability test failed'
Bassert success_rate >= 0.9, 'Usability test failed'
Cassert success_rate == 0.9, 'Usability test failed'
Dassert success_rate < 0.9, 'Usability test failed'
Attempts:
2 left
💡 Hint

Think about including 90% as a passing rate.

🔧 Debug
advanced
2:00remaining
Identify the Usability Test Locator Bug

In a usability test automation script, which locator will cause a failure when trying to find the 'Submit' button by its visible text?

Testing Fundamentals
submit_button_locators = {
    'A': "//button[text()='Submit']",
    'B': "//button[contains(text(), 'Submit')]",
    'C': "//button[@name='submit']",
    'D': "//button[text()='submit']"
}
ALocator A will fail because it is case sensitive and matches exactly 'Submit'
BLocator B will fail because contains() does not work with text()
CLocator C will fail because @name='submit' is not the visible text
DLocator D will fail because it looks for 'submit' in lowercase which may not match
Attempts:
2 left
💡 Hint

Check the case sensitivity of the text() function in XPath.

framework
expert
2:30remaining
Best Practice for Usability Test Automation Framework

Which design choice best supports maintainability and clarity in a usability test automation framework?

AHardcode all test data inside test functions for quick access
BMix test logic and UI locators directly in test scripts for simplicity
CUse a Page Object Model to separate UI locators from test logic
DAvoid using any abstraction layers to reduce code size
Attempts:
2 left
💡 Hint

Think about how to keep tests easy to update when UI changes.