What is the main goal of usability testing in software development?
Think about the user's experience and satisfaction.
Usability testing focuses on how easy and enjoyable the software is for real users, not on technical or security aspects.
Given this simple usability test report code snippet, what will be the printed summary?
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))
Check the conditions for errors and time_taken carefully.
With 1 error and 7 minutes, the function returns 'Good usability' because errors <= 2 and time_taken < 10.
Which assertion correctly checks that the usability test passed when the success rate is at least 90%?
success_rate = 0.92Think about including 90% as a passing rate.
The assertion must allow success_rate to be equal to or greater than 0.9 to pass the test.
In a usability test automation script, which locator will cause a failure when trying to find the 'Submit' button by its visible text?
submit_button_locators = {
'A': "//button[text()='Submit']",
'B': "//button[contains(text(), 'Submit')]",
'C': "//button[@name='submit']",
'D': "//button[text()='submit']"
}Check the case sensitivity of the text() function in XPath.
XPath text() is case sensitive, so looking for 'submit' lowercase will fail if the button text is 'Submit' with uppercase S.
Which design choice best supports maintainability and clarity in a usability test automation framework?
Think about how to keep tests easy to update when UI changes.
Page Object Model separates UI locators from test logic, making tests easier to maintain and understand.