0
0
Testing Fundamentalstesting~20 mins

Acceptance criteria verification in Testing Fundamentals - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Acceptance Criteria Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Acceptance Criteria Purpose

What is the main purpose of acceptance criteria in software testing?

ATo list all the bugs found during testing
BTo define the conditions that a software product must satisfy to be accepted by the user or customer
CTo describe the internal code structure of the software
DTo specify the hardware requirements for running the software
Attempts:
2 left
💡 Hint

Think about what helps decide if the software is ready for the user.

Predict Output
intermediate
2:00remaining
Acceptance Criteria Test Result Interpretation

Given the acceptance criteria: "The login button must be visible and clickable." A test script checks the button visibility and click action. What is the expected test result if the button is visible but not clickable?

Testing Fundamentals
def test_login_button():
    visible = True
    clickable = False
    assert visible, "Login button should be visible"
    assert clickable, "Login button should be clickable"
ATest passes because at least one condition is met
BTest passes because the button is visible
CTest fails because the button is not clickable
DTest fails because the button is not visible
Attempts:
2 left
💡 Hint

Both visibility and clickability must be true to pass.

assertion
advanced
2:00remaining
Correct Assertion for Acceptance Criteria

Which assertion correctly verifies the acceptance criteria: "The user profile page loads within 2 seconds"?

Testing Fundamentals
load_time = 1.8  # seconds
Aassert load_time < 2, "Page load time exceeds 2 seconds"
Bassert load_time == 2, "Page load time is not exactly 2 seconds"
Cassert load_time > 2, "Page load time is less than 2 seconds"
Dassert load_time != 2, "Page load time equals 2 seconds"
Attempts:
2 left
💡 Hint

The page must load faster than 2 seconds.

🔧 Debug
advanced
2:00remaining
Debugging Acceptance Criteria Test Failure

Test code below is meant to verify acceptance criteria: "Search results display at least 5 items." The test fails unexpectedly. What is the cause?

Testing Fundamentals
results = ['item1', 'item2', 'item3', 'item4', 'item5']
assert len(results) > 5, "Less than 5 search results displayed"
AThe assertion should use >= 5 instead of > 5
BThe results list is empty, causing failure
CThe assertion message is incorrect
DThe results list has more than 5 items, so test should pass
Attempts:
2 left
💡 Hint

Check the comparison operator in the assertion.

framework
expert
3:00remaining
Designing Acceptance Criteria Tests in Automation Framework

In an automated test framework, which approach best ensures acceptance criteria are clearly verified and reported?

ACombine all acceptance criteria checks into one large test case to reduce test count
BUse random inputs without mapping to acceptance criteria to increase test coverage
CSkip assertions and rely on manual review of logs to verify acceptance criteria
DWrite separate test cases for each acceptance criterion with clear assertions and descriptive messages
Attempts:
2 left
💡 Hint

Think about clarity and traceability in automated tests.