Your question is Automating Repetitive Test Tasks. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
As part of QA automation for an Alnylam Amvuttra workflow, a test runner records whether each expected result matches the observed result. Write a function that scans the records and returns the IDs of all failed test cases in their original execution order.
A test case passes when expected equals actual. It fails otherwise.
Implement collect_failed_tests(results).
results, a list of dictionaries. Each dictionary contains three strings: id, expected, and actual.def collect_failed_tests(results):