Complete the code to define the main goal of acceptance testing.
def acceptance_testing_goal(): return "To verify the system meets the [1] requirements."
Acceptance testing checks if the system meets business requirements, ensuring it works for the user.
Complete the code to show who usually performs acceptance testing.
def acceptance_testers(): return ['[1]', 'end users', 'stakeholders']
Acceptance testing is often done by customers or end users to confirm the system meets their needs.
Fix the error in the acceptance test case description.
test_case = {
'id': 101,
'description': 'Check if login works for valid users',
'expected_result': 'User logs in [1]'
}The expected result should say the user successfully logs in, not fails or cannot.
Fill both blanks to complete the acceptance test function.
def run_acceptance_test(test_case): if test_case['actual_result'] == test_case['[1]']: return '[2]' else: return 'fail'
The function compares actual result to expected_result. If they match, it returns pass.
Fill all three blanks to create a dictionary of acceptance test results filtering passed tests.
passed_tests = {test['[1]']: test['[2]'] for test in tests if test['[3]'] == 'pass'}This dictionary comprehension collects test id and actual_result for tests whose status is 'pass'.