0
0
Testing Fundamentalstesting~10 mins

Acceptance testing 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 acceptance testing.

Testing Fundamentals
def acceptance_testing_goal():
    return "To verify the system meets the [1] requirements."
Drag options to blanks, or click blank then click option'
Abusiness
Btechnical
Cperformance
Dsecurity
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing acceptance testing with performance or security testing.
2fill in blank
medium

Complete the code to show who usually performs acceptance testing.

Testing Fundamentals
def acceptance_testers():
    return ['[1]', 'end users', 'stakeholders']
Drag options to blanks, or click blank then click option'
Atest managers
Bcustomers
Cdevelopers
Dsystem admins
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking developers or admins perform acceptance testing.
3fill in blank
hard

Fix the error in the acceptance test case description.

Testing Fundamentals
test_case = {
    'id': 101,
    'description': 'Check if login works for valid users',
    'expected_result': 'User logs in [1]'
}
Drag options to blanks, or click blank then click option'
Afails
Bcannot
Csometimes
Dsuccessfully
Attempts:
3 left
💡 Hint
Common Mistakes
Writing negative or unclear expected results.
4fill in blank
hard

Fill both blanks to complete the acceptance test function.

Testing Fundamentals
def run_acceptance_test(test_case):
    if test_case['actual_result'] == test_case['[1]']:
        return '[2]'
    else:
        return 'fail'
Drag options to blanks, or click blank then click option'
Aexpected_result
Bpass
Cerror
Dactual_result
Attempts:
3 left
💡 Hint
Common Mistakes
Comparing wrong keys or returning incorrect status.
5fill in blank
hard

Fill all three blanks to create a dictionary of acceptance test results filtering passed tests.

Testing Fundamentals
passed_tests = {test['[1]']: test['[2]'] for test in tests if test['[3]'] == 'pass'}
Drag options to blanks, or click blank then click option'
Aid
Bactual_result
Cstatus
Ddescription
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong keys or filtering incorrectly.