Bug Report — 15 Thuật Ngữ Báo Cáo Lỗi Mà Developer Nào Cũng Phải Biết

Viết bug report rõ ràng là kỹ năng quan trọng không kém viết code. Một bug report tốt giúp developer fix nhanh hơn, QA verify dễ hơn, và cả team tiết kiệm thời gian. Nắm vững 15 thuật ngữ dưới đây để viết bug report chuẩn quốc tế nhé! 🐛 🔹 Mô tả & Tái hiện lỗi English IPA Tiếng Việt Example bug /bʌɡ/ lỗi phần mềm — hành vi không đúng mong đợi We found a critical bug in the payment module that causes double charges. reproduce /ˌriːprəˈdjuːs/ tái hiện — thực hiện lại các bước để lỗi xảy ra I can reproduce the issue by clicking Submit twice within one second. steps to reproduce /stɛps tuː ˌriːprəˈdjuːs/ các bước tái hiện lỗi Please include clear steps to reproduce so the dev team can investigate quickly. environment /ɪnˈvaɪrənmənt/ môi trường — cấu hình hệ thống nơi lỗi xảy ra The environment is Chrome 110 on Windows 11 with staging API. 🔹 Phân loại & Ưu tiên English IPA Tiếng Việt Example severity /sɪˈvɛrəti/ mức độ nghiêm trọng — impact của lỗi lên hệ thống This bug has severity Critical because it blocks all user transactions. priority /praɪˈɒrəti/ mức độ ưu tiên — thứ tự cần fix Even though the priority is Low, we should still fix it before release. regression /rɪˈɡrɛʃən/ lỗi hồi quy — tính năng cũ bị hỏng sau khi thay đổi code The latest deploy caused a regression — login was working fine yesterday. ticket /ˈtɪkɪt/ phiếu công việc — đơn vị quản lý task trên Jira, Trello… I’ve created a ticket in Jira with all the details and screenshots attached. 🔹 Phân tích & Xử lý English IPA Tiếng Việt Example root cause /ruːt kɔːz/ nguyên nhân gốc — lý do thực sự gây ra lỗi After debugging, we found the root cause was a null pointer in the user service. stack trace /stæk treɪs/ dấu vết ngăn xếp — log chi tiết các hàm gọi khi lỗi xảy ra The stack trace shows the exception was thrown at line 42 of PaymentController. workaround /ˈwɜːrkəraʊnd/ cách giải quyết tạm — giải pháp tạm thời chưa fix triệt để As a workaround, users can clear their cache and retry the operation. assign /əˈsaɪn/ giao việc — chỉ định người chịu trách nhiệm I’ll assign this bug to the backend team since it’s a server-side issue. 🔹 Giải quyết & Đóng ticket English IPA Tiếng Việt Example resolution /ˌrɛzəˈluːʃən/ cách giải quyết — kết quả cuối cùng của việc xử lý lỗi The resolution was to add input validation before saving to the database. hotfix /ˈhɒtfɪks/ bản vá khẩn cấp — fix nhanh cho lỗi nghiêm trọng trên production We deployed a hotfix at 2 AM to fix the checkout crash on production. patch /pætʃ/ bản vá — bản cập nhật nhỏ sửa lỗi cụ thể The security patch fixes the SQL injection vulnerability in the search API. 💡 Mẹo ghi nhớ Severity ≠ Priority: Severity là mức độ nghiêm trọng kỹ thuật (Critical/Major/Minor), Priority là mức độ cần fix sớm theo business. Một bug severity thấp nhưng priority cao hoàn toàn có thể xảy ra — ví dụ logo hiển thị sai trên trang chủ. 🎯 Hotfix vs Patch: Hotfix là bản vá khẩn cấp (thường deploy ngoài giờ), patch là bản vá thông thường theo lịch release. Nhớ: hot = nóng = gấp! Steps to reproduce là phần quan trọng nhất trong bug report. Không có steps → developer không thể reproduce → bug bị reject. Luôn viết rõ ràng từng bước! 📝 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

24/02/2023 · 4 phút · 800 từ · Cuong TQ

Testing & QA — 14 Thuật Ngữ Kiểm Thử Developer Phải Biết

“Code mà không test thì cũng như nấu mà không nếm” — testing là kỹ năng sống còn của mọi developer. Dù bạn viết unit test cho function nhỏ hay chạy e2e test cho cả flow, hiểu thuật ngữ testing bằng tiếng Anh giúp bạn đọc hiểu test report, viết test plan, và trao đổi với QA team dễ dàng. Let’s test your vocabulary! 🧪 🔹 Các loại Test English IPA Tiếng Việt Example unit test /ˈjuːnɪt tɛst/ kiểm thử đơn vị — test từng function riêng lẻ Write a unit test to verify that the calculateTotal function returns the correct sum. integration test /ˌɪntɪˈɡreɪʃən tɛst/ kiểm thử tích hợp — test nhiều module kết hợp The integration test checks that the API endpoint correctly saves data to the database. e2e test /ˌiː.tuː.ˈiː tɛst/ end-to-end test — kiểm thử toàn bộ flow từ UI đến DB Our e2e tests simulate a user logging in, adding items to cart, and completing checkout. smoke test /smoʊk tɛst/ kiểm thử nhanh các chức năng chính sau deploy Run a smoke test after deployment to make sure the homepage and login still work. load test /loʊd tɛst/ kiểm thử tải — đo hiệu năng dưới áp lực The load test showed the server can handle 5,000 concurrent users before slowing down. 🔹 Test Techniques English IPA Tiếng Việt Example mock /mɒk/ đối tượng giả lập để thay thế dependency thật Use a mock for the payment service so the test doesn’t charge a real credit card. stub /stʌb/ hàm giả trả về giá trị cố định Create a stub that returns a fixed list of users instead of querying the database. fixture /ˈfɪkstʃər/ dữ liệu mẫu chuẩn bị sẵn cho test Load the test fixtures to populate the database with sample products before running tests. assertion /əˈsɜːrʃən/ câu lệnh kiểm tra kết quả đúng hay sai The assertion checks that the response status code equals 200. 🔹 Metrics & Processes English IPA Tiếng Việt Example coverage /ˈkʌvərɪdʒ/ độ phủ test — phần trăm code được test We need at least 80% test coverage before merging to the main branch. regression /rɪˈɡrɛʃən/ lỗi tái phát — bug cũ xuất hiện lại sau khi thay đổi code The new feature caused a regression — the search function stopped working. test suite /tɛst swiːt/ bộ test — tập hợp các test case liên quan Run the full test suite before every release to catch any regressions. 🔹 Phương pháp phát triển English IPA Tiếng Việt Example TDD /ˌtiː.diː.ˈdiː/ Test-Driven Development — viết test trước, code sau With TDD, you write the failing test first, then write code to make it pass. BDD /ˌbiː.diː.ˈdiː/ Behavior-Driven Development — viết test theo hành vi mong muốn BDD scenarios are written in plain English: “Given a logged-in user, when they click logout…” 💡 Mẹo ghi nhớ Mock vs Stub: Mock = diễn viên đóng thế (kiểm tra có được gọi đúng không). Stub = mannequin (chỉ đứng đó trả giá trị cố định, không kiểm tra gì). Mock verify behavior, stub provide data. Unit → Integration → E2E = Kim tự tháp test: Unit test nhiều nhất (đáy), e2e test ít nhất (đỉnh). Càng lên cao càng chậm và tốn chi phí. TDD nhớ quy trình: 🔴 Red (test fail) → 🟢 Green (viết code cho pass) → 🔵 Refactor (tối ưu code). 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

11/02/2023 · 4 phút · 743 từ · Cuong TQ