คลังรวมสคริปต์ฝึกหัด Automated Testing ที่เน้นโครงสร้างโปรเจกต์เป็นระเบียบ
และใช้มาตรฐานการจัดการ Version Control (Git) เพื่อเตรียมความพร้อมสู่สายงาน
QA Engineer / Automation Engineer
- Framework: Robot Framework 🤖
- Libraries:
SeleniumLibrary— Web UI TestingRequestsLibrary— API Testing
- Language: Python 🐍
- Editor: VS Code
จัดเก็บไฟล์แยกตามประเภทของการทดสอบ เพื่อให้ง่ายต่อการอ่านและบำรุงรักษา
AUTOMATED-TESTING/
├── API/
│ └── api.robot # สคริปต์สำหรับทดสอบ API Endpoints
├── Login/
│ └── login.robot # สคริปต์สำหรับทดสอบ UI Login Flow
└── README.md # เอกสารประกอบโปรเจกต์
เพื่อให้ประวัติการพัฒนา (Git History) อ่านง่ายและสื่อสารได้ชัดเจน โปรเจคนี้จะใช้มาตรฐาน Conventional Commits ดังนี้:
type: description
| Type | Description (ไทย) | Example |
|---|---|---|
| feat | เพิ่ม Test Case หรือ Feature ใหม่ | feat: add login success test case |
| fix | แก้ไข Script ที่ Fail หรือแก้ไข Bug | fix: update locator for login button |
| docs | แก้ไขหรืออัปเดตเอกสาร (README) | docs: update commit guideline |
| refactor | ปรับปรุงโค้ดให้ดีขึ้น (เช่น ยุบ Keyword) | refactor: optimize api test structure |
| style | แก้ไข Format โค้ด (Space, Indent) | style: fix indentation in login.robot |
| chore | งานจิปาถะ เช่น อัปเดต Library | chore: update seleniumlibrary version |
- Use Imperative Mood: ใช้ประโยคคำสั่งในส่วน description เช่น
addไม่ใช่added,fixไม่ใช่fixed - Be Concise: เขียนให้กระชับแต่ได้ใจความว่าทำอะไรลงไป
- No Full Stops: ไม่ต้องใส่จุด (.) ท้ายประโยค description