# πŸ“š ONE MD PACKET V8 - TESTING DOCUMENTATION ## πŸ“– Overview Selamat datang di dokumentasi testing untuk modul **One MD Packet V8**. Modul ini adalah sistem manajemen paket pemeriksaan medis (Medical Check-up) yang terintegrasi dengan Agreement/MOU perusahaan. --- ## πŸ“‚ Struktur Dokumentasi ### 1. πŸ“˜ [TESTING_GUIDE.md](./TESTING_GUIDE.md) - **PANDUAN UTAMA** **Untuk:** Tester, QA Engineer, Developer **Ukuran:** ~5000 baris **Waktu Baca:** 30-45 menit **Isi:** - βœ… Deskripsi lengkap modul - βœ… Fitur-fitur utama - βœ… **33 skenario testing** detail (A1-H2) - βœ… Step-by-step instructions - βœ… Expected results - βœ… Test data examples - βœ… Bug reporting template - βœ… Tips & tricks **Kapan Digunakan:** - Saat mulai testing pertama kali - Sebagai referensi lengkap untuk setiap test case - Untuk memahami detail requirement --- ### 2. πŸ“‹ [TEST_CASE_MATRIX.md](./TEST_CASE_MATRIX.md) - **QUICK REFERENCE** **Untuk:** Tester, Test Lead **Ukuran:** ~500 baris **Waktu Baca:** 10-15 menit **Isi:** - βœ… Checklist 33 test cases - βœ… Priority levels (P0-P3) - βœ… Test phases (1-3) - βœ… Calculation verification tests - βœ… Testing log template - βœ… Quick start guide **Kapan Digunakan:** - Daily testing activities - Tracking test progress - Quick lookup saat lupa test case - Reporting test summary --- ### 3. 🎯 [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) - **KONSEP KUNCI** **Untuk:** Semua (Tester, Developer, BA) **Ukuran:** ~1000 baris **Waktu Baca:** 15-20 menit **Isi:** - βœ… Perbedaan Profile vs Panel - βœ… State diagrams & flows - βœ… UI/UX differences - βœ… Calculation formulas - βœ… Debugging tips - βœ… Decision tree **Kapan Digunakan:** - Saat bingung perbedaan Profile dan Panel - Untuk memahami business logic - Debugging issues terkait price calculation - Training new team members --- ### 4. πŸ“„ [README_TESTING.md](./README_TESTING.md) - **FILE INI** **Untuk:** Overview & Navigation **Ukuran:** Short **Waktu Baca:** 5 menit **Isi:** - βœ… Overview dokumentasi - βœ… Navigation guide - βœ… Quick links - βœ… Getting started --- ## πŸš€ GETTING STARTED ### Untuk Tester Baru **Step 1: Baca Konsep Dasar (15 menit)** 1. Baca [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) bagian "Konsep Dasar" 2. Pahami perbedaan Profile dan Panel 3. Lihat contoh-contoh yang diberikan **Step 2: Setup Testing Environment (15 menit)** 1. Login ke aplikasi 2. Pastikan ada data test: - Minimal 2 perusahaan - Minimal 2 MOU (1 active, 1 released) - Data test/pemeriksaan tersedia 3. Buka Browser Console (F12) **Step 3: Mulai Testing (Follow Phase 1)** 1. Buka [TEST_CASE_MATRIX.md](./TEST_CASE_MATRIX.md) 2. Mulai dari Phase 1: Basic Functionality 3. Untuk detail setiap test case, lihat [TESTING_GUIDE.md](./TESTING_GUIDE.md) 4. Check off setiap test yang sudah dilakukan **Step 4: Report Issues** 1. Gunakan bug template di [TESTING_GUIDE.md](./TESTING_GUIDE.md) section "Bug Reporting" 2. Include screenshot/video 3. Attach console error logs **Total Time:** - Persiapan: 30 menit - Phase 1 Testing: 2-3 jam - Phase 2 Testing: 2-3 jam - Phase 3 Testing: 2-3 jam - **Total: 7-9 jam (1-2 hari kerja)** --- ### Untuk Developer **Untuk Fix Bug:** 1. Baca bug report dari tester 2. Lihat test case detail di [TESTING_GUIDE.md](./TESTING_GUIDE.md) 3. Cek [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) untuk business logic 4. Use debugging tips di PROFILE_VS_PANEL_GUIDE.md 5. Fix dan test locally 6. Return to tester untuk retest **Untuk Add Feature:** 1. Understand current behavior via testing guides 2. Write test cases untuk feature baru 3. Update testing documentation 4. Implement feature 5. Self-test dengan test cases 6. Hand over to QA --- ### Untuk Product Owner / BA **Review Requirements:** 1. Baca [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) untuk understand business logic 2. Verify test scenarios di [TESTING_GUIDE.md](./TESTING_GUIDE.md) sesuai requirement 3. Confirm calculation formulas benar 4. Review test data examples --- ## πŸ—ΊοΈ NAVIGATION MAP ### Saya ingin... **"Memahami apa itu Profile dan Panel"** β†’ [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) - Section "Konsep Dasar" **"Melihat daftar semua test cases"** β†’ [TEST_CASE_MATRIX.md](./TEST_CASE_MATRIX.md) - Section "Quick Reference" **"Detail step-by-step test case tertentu"** β†’ [TESTING_GUIDE.md](./TESTING_GUIDE.md) - Find by ID (e.g., C5) **"Cara menghitung pro-rata distribution"** β†’ [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) - Section "Key Formulas" **"Contoh lengkap test scenario"** β†’ [TESTING_GUIDE.md](./TESTING_GUIDE.md) - Section F (Integration Testing) **"Quick checklist untuk hari ini"** β†’ [TEST_CASE_MATRIX.md](./TEST_CASE_MATRIX.md) - Mark checkboxes **"Report bug yang saya temukan"** β†’ [TESTING_GUIDE.md](./TESTING_GUIDE.md) - Section "Bug Reporting Template" **"Understand kenapa harga tidak update"** β†’ [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) - Section "Debugging Tips" **"Lihat UI screenshot/diagram"** β†’ [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) - Section "UI/UX Differences" --- ## πŸ“Š TEST COVERAGE ### Functional Areas | Area | Test Cases | Priority | Estimated Time | |------|-----------|----------|----------------| | Search & Filter | A1-A3 | P1 | 30 min | | CRUD Packet | B1-B5 | P0 | 1 hour | | Packet Details | C1-C11 | P0 | 3 hours | | Import/Copy | D1-D2 | P2 | 30 min | | Edge Cases | E1-E5 | P1-P2 | 1 hour | | Workflows | F1-F3 | P0 | 2 hours | | Compatibility | G1-G2 | P1-P2 | 1 hour | | Performance | H1-H2 | P2 | 30 min | | **TOTAL** | **33 cases** | | **~9 hours** | --- ## 🎯 KEY CONCEPTS ### Packet Types - **Profile (PR):** Harga = Sum of items (read-only) - **Panel (PN):** Harga = Customizable (with lock mechanism) ### Panel States - **Unlocked:** Harga auto-updates on add/remove items - **Locked:** Harga fixed (doesn't change) ### Key Workflows 1. Create β†’ Add Items β†’ Save 2. Edit β†’ Modify Items β†’ Save 3. Edit β†’ Custom Price β†’ Lock β†’ Save ### Critical Logic - Pro-rata distribution when editing packet price - Discount calculation: `Price = Bruto - (Bruto Γ— Disc%) - DiscRp` - Lock mechanism after save to database --- ## πŸ“ QUICK CHECKLIST ### Before Starting Testing - [ ] Documentation dibaca (minimal overview) - [ ] Environment ready (login, data test) - [ ] Browser console open (F12) - [ ] Understanding Profile vs Panel ### During Testing - [ ] Follow test cases systematically - [ ] Mark checkboxes in TEST_CASE_MATRIX.md - [ ] Take screenshots for issues - [ ] Note console errors - [ ] Test on multiple browsers (if applicable) ### After Testing - [ ] All test cases checked - [ ] Bugs reported with template - [ ] Test summary filled - [ ] Pass rate calculated - [ ] Sign-off completed --- ## πŸ› COMMON ISSUES & SOLUTIONS ### Issue 1: "Harga Paket tidak update setelah add item" **Possible Causes:** - Panel type dalam mode LOCKED - Check chip "Dikunci" visible? - Check console log: "Panel LOCKED - NOT updating" **Solution:** - Ini expected behavior untuk locked panel - Untuk unlock: klik Edit Harga β†’ ubah β†’ Save **Reference:** [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) - "Panel Locked Flow" --- ### Issue 2: "Pro-rata distribution tidak sesuai" **Check:** - Apakah sum of item prices = packet price? - Apakah semua Disc % = 0? - Apakah last item dapat rounding difference? **Reference:** [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) - "Key Formulas" #2 --- ### Issue 3: "Tidak bisa edit Harga Paket" **Possible Causes:** 1. Packet type = Profile (cannot edit) 2. Panel not in edit mode 3. Field tidak dalam edit state (perlu klik icon Edit dulu) **Reference:** [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) - "Comparison Table" --- ## πŸ“ž SUPPORT & CONTACT ### Questions About Testing? - Check documentation first (most answers are here) - Still stuck? Contact QA Lead - Bug found? Use bug template ### Documentation Issues? - Typo or unclear instruction? - Missing information? - Outdated content? β†’ Report to documentation maintainer --- ## πŸ”„ VERSION HISTORY | Version | Date | Changes | Author | |---------|------|---------|--------| | 1.0 | 2026-01-22 | Initial documentation created | AI Assistant | | | | - TESTING_GUIDE.md | | | | | - TEST_CASE_MATRIX.md | | | | | - PROFILE_VS_PANEL_GUIDE.md | | | | | - README_TESTING.md | | --- ## πŸ“š DOCUMENT STRUCTURE ``` one-md-packet-v8/ β”‚ β”œβ”€β”€ README_TESTING.md (THIS FILE) β”‚ └── Overview & Navigation β”‚ β”œβ”€β”€ TESTING_GUIDE.md (MAIN GUIDE) β”‚ β”œβ”€β”€ Description β”‚ β”œβ”€β”€ Features β”‚ β”œβ”€β”€ 33 Test Scenarios (A1-H2) β”‚ β”œβ”€β”€ Bug Template β”‚ └── Tips & Test Data β”‚ β”œβ”€β”€ TEST_CASE_MATRIX.md (CHECKLIST) β”‚ β”œβ”€β”€ Test Case Table β”‚ β”œβ”€β”€ Test Phases β”‚ β”œβ”€β”€ Calculation Tests β”‚ └── Testing Log β”‚ └── PROFILE_VS_PANEL_GUIDE.md (CONCEPT) β”œβ”€β”€ Concept Explanation β”œβ”€β”€ Comparison Table β”œβ”€β”€ State Diagrams β”œβ”€β”€ Examples β”œβ”€β”€ Formulas └── Debugging Tips ``` --- ## πŸŽ“ RECOMMENDED READING ORDER ### First Time Testing 1. **Start:** README_TESTING.md (this file) - 5 min 2. **Concept:** PROFILE_VS_PANEL_GUIDE.md sections "Konsep Dasar" & "Comparison Table" - 10 min 3. **Practice:** TEST_CASE_MATRIX.md section "Quick Start Guide" - 5 min 4. **Detail:** TESTING_GUIDE.md sections A, B, C for detailed steps - 30 min 5. **Do:** Start testing with TEST_CASE_MATRIX.md checklist - 2-3 hours ### Quick Reference (Daily Use) 1. Open TEST_CASE_MATRIX.md for today's checklist 2. Use TESTING_GUIDE.md as detailed reference 3. Use PROFILE_VS_PANEL_GUIDE.md when confused about behavior ### Debugging Issues 1. PROFILE_VS_PANEL_GUIDE.md - "Debugging Tips" 2. TESTING_GUIDE.md - Find related test case 3. Console logs - Compare with expected logs 4. Formulas - Verify calculations --- ## βœ… SUCCESS CRITERIA Testing dianggap **COMPLETE** jika: - βœ… All P0 test cases: **100% pass** - βœ… All P1 test cases: **β‰₯ 95% pass** - βœ… All P2 test cases: **β‰₯ 90% pass** - βœ… No critical/high bugs open - βœ… All workflows tested end-to-end - βœ… Cross-browser compatibility verified - βœ… Test summary documented - βœ… Sign-off obtained --- ## πŸš€ LET'S START! ### New Tester? **Start Here:** [PROFILE_VS_PANEL_GUIDE.md](./PROFILE_VS_PANEL_GUIDE.md) (15 min read) ### Ready to Test? **Go To:** [TEST_CASE_MATRIX.md](./TEST_CASE_MATRIX.md) (Phase 1) ### Need Details? **Reference:** [TESTING_GUIDE.md](./TESTING_GUIDE.md) (Full guide) --- **Happy Testing! πŸŽ‰** --- **Module:** One MD Packet V8 **Documentation Version:** 1.0 **Last Updated:** 2026-01-22 **Maintained By:** Development Team **Status:** βœ… Ready for Use --- ## πŸ“– APPENDIX: QUICK LINKS ### Internal Documentation - [Main Testing Guide](./TESTING_GUIDE.md) - [Test Case Matrix](./TEST_CASE_MATRIX.md) - [Profile vs Panel Guide](./PROFILE_VS_PANEL_GUIDE.md) ### Code Files - `components/oneMdPacketList.vue` - Packet list - `components/oneMdPacketPxList.vue` - Packet details - `components/oneMdPacketTestList.vue` - Test selection - `components/oneMdPacketNew.vue` - Create/edit dialog - `modules/packet.js` - Packet state management - `modules/px.js` - Detail state management - `store.js` - Main store ### Related Modules - `one-api/application/controllers/v1/masterdata/Packet_v8.php` - Backend API --- **END OF README**