# เกณฑ์การให้คะแนนโครงงาน (30%)

โครงการนี้นับ 30% ของคะแนนทั้งหมด
- Midterm: 30%
- Final Exam: 30%
- Project: 30% (ตอนนี้)
- Class Participation: 10%

---

## การแบ่งคะแนน

### 1. Test Planning and Documentation (15 points)

#### ยอดเยี่ยม (13-15 points)
- Test Plan ครบถ้วน (Scope, Strategy, Risk Assessment, Schedule)
- Risk Assessment มีข้อมูล concrete (5+ risks, mitigation plan)
- Entry/Exit Criteria ชัดเจน
- Test Case Format ถูกต้องและสม่ำเสมอ
- Traceability Matrix มีความสัมพันธ์ Req to Test Cases

#### ดี (10-12 points)
- Test Plan ครบ แต่บางส่วนขาดรายละเอียด
- Risk Assessment มีแต่ไม่ลึก
- Test Cases อย่างน้อย 50 cases

#### ปานกลาง (7-9 points)
- Test Plan มีหลัก แต่ขาดรายละเอียด
- Test Cases 30+ แต่ไม่ครบถ้วน

#### ต่ำกว่าปานกลาง (4-6 points)
- Test Plan ไม่ชัดเจน
- Test Cases น้อยกว่า 30

#### ไม่ผ่าน (0-3 points)
- ไม่มี Test Plan หรือ Test Cases

---

### 2. Test Execution and Bug Reporting (15 points)

#### ยอดเยี่ยม (13-15 points)
- ปฏิบัติการ ทุกหรือเกือบทุก test cases (>90%)
- Bug Reports อย่างน้อย 15 bugs
- Bug Reports ครบครัน:
  - ชื่อชัดเจน
  - ขั้นตอนการทำซ้ำโดยละเอียด
  - Screenshots/Attachments
  - Severity/Priority ถูกต้อง
  - ระบุสาเหตุรากฐาน
- Bugs จำแนกตามประเภท (UI, Logic, Security, etc.)

#### ดี (10-12 points)
- ปฏิบัติการ 70-90% test cases
- 10-15 bug reports
- Bug reports ครบส่วนใหญ่

#### ปานกลาง (7-9 points)
- ปฏิบัติการ 50-70% test cases
- 7-10 bug reports
- Bug reports บางส่วนขาดรายละเอียด

#### ต่ำกว่าปานกลาง (4-6 points)
- ปฏิบัติการ 30-50% test cases
- น้อยกว่า 7 bug reports
- Bug reports ไม่ละเอียด

#### ไม่ผ่าน (0-3 points)
- ไม่มี bug reports หรือน้อยมาก

---

### 3. Testing Technique Application (15 points)

#### ยอดเยี่ยม (13-15 points)
ใช้ได้ตามตัวเลือกโครงงาน:

ตัวเลือกที่ 1 (Complete):
- Black Box (EP, BVA, DT, ST) - ใช้ได้ถูกต้อง
- White Box (Unit Tests) - 70%+ coverage
- Security Testing - ครบ SQL Injection, XSS, Auth
- Code Review - ESLint and Manual

ตัวเลือกที่ 2 (API):
- Integration Tests - 20+ tests
- Contract Testing - JSON Schema
- Security API Testing - ครบถ้วน
- Unit Tests - 15+ tests

ตัวเลือกที่ 3 (End-to-End):
- Playwright Tests - 30+ tests
- Cross-browser Testing - 3+ browsers
- Visual Regression - Screenshots
- User Journey Tests - 10+ scenarios

ตัวเลือกที่ 4 (Security):
- Static Analysis - ESLint and Manual
- Code Coverage - 70%+ with unit tests
- Security Tests - All OWASP Top 10
- Vulnerability Assessment - Risk scoring

#### ดี (10-12 points)
- ใช้เทคนิก 3 ใน 4 ได้ถูกต้อง
- ยังขาดรายละเอียดบางส่วน

#### ปานกลาง (7-9 points)
- ใช้เทคนิก 2 ใน 4
- ยังไม่ลึกพอ

#### ต่ำกว่าปานกลาง (4-6 points)
- ใช้เทคนิก 1 ใน 4
- ไม่ถูกต้อง

#### ไม่ผ่าน (0-3 points)
- ไม่มีการใช้เทคนิก

---

### 4. Code Quality and Automation (15 points)
(ถ้าโครงงาน include Code Review/Automation)

#### ยอดเยี่ยม (13-15 points)
- Automated Tests (Jest/Playwright/supertest):
  - 20+ unit tests / 30+ End-to-End tests / 20+ integration tests
  - Code clean, follows best practices
  - Good naming conventions
- Code Coverage: 70%+
- ESLint: 0 errors, minimal warnings
- Documentation: Code comments, README
- CI/CD: GitHub Actions setup (optional but +2 pts)

#### ดี (10-12 points)
- Automated Tests: 15+ tests
- Code Coverage: 60-70%
- ESLint: น้อยกว่า 5 errors
- Documentation: บางส่วน

#### ปานกลาง (7-9 points)
- Automated Tests: 10-15 tests
- Code Coverage: 50-60%
- ESLint: น้อยกว่า 10 errors

#### ต่ำกว่าปานกลาง (4-6 points)
- Automated Tests: น้อยกว่า 10 tests
- Code Coverage: น้อยกว่า 50%
- ESLint: มากกว่า 10 errors

#### ไม่ผ่าน (0-3 points)
- ไม่มี tests หรือ coverage

---

### 5. Metrics and Analysis (10 points)

#### ยอดเยี่ยม (9-10 points)
- ครบ 5+ metrics:
  - Defect Density
  - Test Coverage
  - DRE (Defect Removal Efficiency)
  - Bug Distribution
  - Pass/Fail Rate
- Metrics มีกราฟและการวิเคราะห์
- Compare กับ Standards (ISO 25010)
- Actionable Insights

#### ดี (7-8 points)
- 3-4 metrics
- มีกราฟ แต่วิเคราะห์ไม่ลึก

#### ปานกลาง (5-6 points)
- 2-3 metrics
- ไม่มีกราฟ

#### ต่ำกว่าปานกลาง (3-4 points)
- 1-2 metrics ไม่ชัดเจน

#### ไม่ผ่าน (0-2 points)
- ไม่มี metrics หรือไม่ถูกต้อง

---

### 6. Report and Presentation (15 points)

#### ยอดเยี่ยม (13-15 points)

Report (10 points):
- 15-20 pages, well-structured
- รวม: Executive Summary, Plan, Results, Findings, Metrics, Recommendations
- Professional format (Headers, tables, figures)
- Clear writing, proper Thai/English
- ทั้งหมด appendices (screenshots, logs, data)

Presentation (5 points):
- 10 นาทีพอดี
- โครงสร้างชัดเจน
- Visual aids (slides, live demo)
- Audience engagement
- Q and A answered well

#### ดี (10-12 points)
- 12-15 pages
- Missing some sections but overall good
- Presentation 9-11 minutes, mostly clear

#### ปานกลาง (7-9 points)
- 10-12 pages
- Missing 2-3 sections
- Presentation 8-12 minutes, somewhat unclear

#### ต่ำกว่าปานกลาง (4-6 points)
- น้อยกว่า 10 pages หรือ disorganized
- Missing major sections
- Presentation poor clarity

#### ไม่ผ่าน (0-3 points)
- ไม่มี report หรือ presentation

---

### 7. Teamwork and Version Control (10 points)

#### ยอดเยี่ยม (9-10 points)
- GitHub Repository organized
- Commits: 20+ with meaningful messages
- ทุกสมาชิกกลุ่มมีส่วนร่วม (verified by commits)
- Issues/Labels used properly
- README.md complete with instructions

#### ดี (7-8 points)
- GitHub Repository organized
- Commits: 15-20 messages
- Most team members contributed

#### ปานกลาง (5-6 points)
- GitHub Repository exists
- Commits: น้อยกว่า 15
- Uneven contribution

#### ต่ำกว่าปานกลาง (3-4 points)
- GitHub Repository messy
- Few commits
- One person did most work

#### ไม่ผ่าน (0-2 points)
- ไม่มี GitHub หรือ ไม่มี commits

---

## การรวมคะแนนทั้งหมด

| หมวดหมู่ | คะแนน | คะแนนของคุณ |
|---------|--------|----------|
| Test Planning and Docs | 15 | ___ |
| Test Execution and Bugs | 15 | ___ |
| Testing Techniques | 15 | ___ |
| Code Quality and Automation | 15 | ___ |
| Metrics and Analysis | 10 | ___ |
| Report and Presentation | 15 | ___ |
| Teamwork and Git | 10 | ___ |
| รวม | 95 | ___ |

โบนัส (Max +5):
- Exceptional insights: +2
- CI/CD setup: +1
- Security findings: +1
- Creative solution: +1

---

## การแปลงเกรด

| คะแนน | เกรด | คำอธิบาย |
|------|------|---------|
| 80-100 | A | ยอดเยี่ยม |
| 75-79 | B+ | ดีมาก |
| 70-74 | B | ดี |
| 65-69 | C+ | น่าพอใจ |
| 60-64 | C | พอสมควร |
| 55-59 | D+ | ผ่าน (ขั้นต่ำที่ยอมรับได้) |
| 50-54 | D | ผ่าน (ขั้นต่ำ) |
| น้อยกว่า 50 | F | ไม่ผ่าน |

---

## Checklist ก่อนส่งงาน

- Test Plan document (PDF)
- Test Cases (Excel/PDF)
- Bug Reports (15+ bugs with details)
- Test Results (Pass/Fail log)
- Automated Tests (Code and Results)
- Code Coverage Report
- Quality Metrics (with graphs)
- Final Report (15-20 pages)
- Presentation Slides (10 slides)
- GitHub Repository (organized, commits)
- README.md (How to run tests)
- Presentation (10 minutes)

---

## ข้อผิดพลาดทั่วไปที่ต้องหลีกเลี่ยง

- Test Cases ไม่ละเอียด - ต้องมี Precondition, Steps, Expected
- Bug Reports ไม่ครบ - ต้องมี Reproduce Steps, Screenshots
- ไม่ใช้เทคนิก - ต้องระบุ EP, BVA, DT, Security Testing, etc.
- Commit เดียว - Git history สำคัญ (10+ commits ขึ้นไป)
- Presentation มากกว่า 10 นาที - ต้องแม่นยำ 10 นาทีพอดี
- ไม่มี Metrics - ต้องมี Data-driven insights

---

สร้างเมื่อ: 16 มีนาคม 2026
สำหรับ: Software Testing and Evaluation Course
