B20:33
I wrote a test case for the login feature this morning.
Sáng nay tôi viết một ca kiểm thử cho tính năng đăng nhập.
A precondition was that the user must have a valid account.
Một điều kiện tiên quyết là người dùng phải có tài khoản hợp lệ.
I defined the expected result: a redirect to the dashboard.
Tôi xác định kết quả mong đợi: chuyển hướng đến bảng điều khiển.
After running the test, I compared it with the actual result.
Sau khi chạy kiểm thử, tôi so sánh nó với kết quả thực tế.
The actual result matched — so the test passed.
Kết quả thực tế khớp — vậy kiểm thử đạt.
I marked it as pass in the report.
Tôi đánh dấu là đạt trong báo cáo.
But one test case failed because the button was missing.
Nhưng một ca kiểm thử thất bại vì thiếu nút bấm.
I logged the fail and updated the bug tracker.
Tôi ghi nhận lỗi và cập nhật hệ thống theo dõi lỗi.
Next time, I will double-check the expected result before testing.
Lần sau, tôi sẽ kiểm tra kỹ kết quả mong đợi trước khi kiểm thử.
Writing clear preconditions helped avoid confusion.
Viết điều kiện tiên quyết rõ ràng giúp tránh nhầm lẫn.
LI
Reflecting on My Test Case Writing
by @linhdaily