diff --git a/README.md b/README.md
index 8a30ecc..c364047 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# ๐งช iOS-Automation-Framework
-> **ๅบไบไบ้นฟๅๅ็็งปๅจ็ซฏ่ชๅจๅๆต่ฏๆกๆถ** | Appium + pytest + Allure + Jenkins CI/CD
+> **ๅบไบไบ้นฟๅๅ็็งปๅจ็ซฏ่ชๅจๅๆต่ฏๆกๆถ** | Appium + pytest + Allure + GitHub Actions


@@ -20,7 +20,7 @@
| ๐ **ๆฐๆฎ้ฉฑๅจๆต่ฏ** | YAML ็ฎก็ๆต่ฏๆฐๆฎ๏ผๆฏๆๅค็ฏๅขๅๆข |
| ๐ **ๆฅๅฃ/UI ่ๅจ** | ็ปไธๆกๆถๅๆถๆฏๆ API ๅ UI ๆต่ฏ |
| ๐ **Allure ๆฅๅ** | ๅฏ่งๅๆต่ฏๆฅๅ๏ผๆฏๆๅๅฒ่ถๅฟ |
-| ๐ **Jenkins CI/CD** | ่ชๅจๅๆตๆฐด็บฟ๏ผๆฏๆฅๆๅปบๆง่ก |
+| ๐ **GitHub Actions CI** | ่ชๅจๅๆตๆฐด็บฟ๏ผPR ่งฆๅๆง่ก |
| โก **ๆง่ฝๆต่ฏ** | ๅบไบ Locust ็ๅๅๆต่ฏ่ๆฌ |
---
@@ -34,8 +34,8 @@ graph TD
A --> C[๐ API_Automation
Requests + pytest]
A --> D[โก Performance
Locust]
- B & C & D --> E[๐ ๏ธ ๅบ็ก่ฎพๆฝๅฑ
Config / Logger / DB / Utils]
- E --> F[๐ CI/CD ๅฑ
Jenkins / Fastlane / GitHub Actions]
+ B & C & D --> E[๐ ๏ธ ๅบ็ก่ฎพๆฝๅฑ
Config / Logger / Utils]
+ E --> F[๐ CI/CD ๅฑ
GitHub Actions / Fastlane]
```
---
@@ -52,23 +52,24 @@ iOS-Automation-Framework/
โโโ config/ # Configuration layer
โ โโโ __init__.py
โ โโโ settings.py # Global settings
-โ โโโ environments.yaml # Multi-env config
+โ โโโ environments.yaml # Multi-env config
+โ โโโ local.yml.example # Local config template
โ
โโโ utils/ # Utility layer
โ โโโ __init__.py
-โ โโโ log_util.py # Logger
+โ โโโ log_util.py # Logger (loguru)
โ โโโ request_util.py # HTTP client
โ โโโ assertion_util.py # Assertions
-โ โโโ db_util.py # Database helper
โ โโโ screenshot_util.py # Screenshot helper
โ
-โโโ UI_Automation/ # UI tests (Appium)
+โโโ UI_Automation/ # UI tests (Appium + XCUITest)
โ โโโ Pages/ # Page Object Model
โ โ โโโ __init__.py
โ โ โโโ base_page.py # Base page class
โ โ โโโ login_page.py # Login page
โ โ โโโ home_page.py # Home page
โ โ โโโ category_page.py # Category page
+โ โ โโโ search_page.py # Search page
โ โ โโโ product_detail_page.py # Product detail
โ โ โโโ cart_page.py # Cart page
โ โ โโโ order_page.py # Order page
@@ -79,7 +80,7 @@ iOS-Automation-Framework/
โ โ โโโ test_search.py # Search tests
โ โ โโโ test_cart.py # Cart tests
โ โ โโโ test_order.py # Order flow tests
-โ โโโ screenshots/ # Failure screenshots
+โ โโโ __init__.py
โ โโโ conftest.py # UI fixtures
โ
โโโ API_Automation/ # API tests
@@ -96,18 +97,14 @@ iOS-Automation-Framework/
โ โ โโโ test_product.py # Product tests
โ โ โโโ test_cart.py # Cart tests
โ โ โโโ test_order.py # Order tests
-โ โโโ data/ # Test data
-โ โ โโโ user_data.yaml # User data
-โ โ โโโ product_data.yaml # Product data
-โ โ โโโ order_data.yaml # Order data
-โ โโโ utils/
-โ โโโ data_loader.py # YAML data loader
+โ โโโ data/ # Test data (YAML)
+โ โโโ user_data.yaml
+โ โโโ product_data.yaml
+โ โโโ order_data.yaml
โ
โโโ Performance/ # Performance tests
โ โโโ locust_scripts/
-โ โโโ __init__.py
-โ โโโ locustfile.py # Locust entry point
-โ โโโ api_scenarios.py # Load scenarios
+โ โโโ locustfile.py # Locust entry point
โ
โโโ CI/ # CI/CD config
โ โโโ jenkins/
@@ -115,12 +112,10 @@ iOS-Automation-Framework/
โ โโโ fastlane/
โ โโโ Fastfile # Fastlane config
โ
-โโโ Reports/ # Test report output
-โ โโโ .gitkeep
+โโโ Reports/ # Test report output (git-ignored)
โ
โโโ docs/ # Documentation
- โโโ design.md # Design notes
- โโโ api_interface.md # API reference
+ โโโ design.md # Design notes
```
| ็ฎๅฝ | ่ฏดๆ |
@@ -171,28 +166,26 @@ cp config/local.yml.example config/local.yml
### ่ฟ่กๆต่ฏ
```bash
-# ====== ่ฟ่กๆฅๅฃ่ชๅจๅๆต่ฏ ======
-# ่ฟ่กๆๆๆฅๅฃๆต่ฏ
+# ====== ๆฅๅฃ่ชๅจๅๆต่ฏ๏ผๅนถๅๆง่ก๏ผ======
pytest API_Automation/cases -v --alluredir=./Reports/api-results
# ่ฟ่กๆๅฎๆจกๅ
pytest API_Automation/cases/test_user.py -v
-# ่ฟ่กๅนถ็ๆ Allure ๆฅๅ
-pytest API_Automation/cases -v --alluredir=./Reports/api-results
+# ็ๆ Allure ๆฅๅ
allure generate ./Reports/api-results -o ./Reports/api-report --clean
+allure open ./Reports/api-report
-# ====== ่ฟ่ก UI ่ชๅจๅๆต่ฏ ======
-# ๅฏๅจ Appium Server๏ผๆฐ็ป็ซฏ๏ผ
+# ====== UI ่ชๅจๅๆต่ฏ๏ผไธฒ่ก๏ผ้่ฆ็ๆบ/ๆจกๆๅจ๏ผ======
+# 1. ๅฏๅจ Appium Server๏ผๆฐ็ป็ซฏ๏ผ
appium
-# ่ฟ่ก UI ๆต่ฏ
-pytest UI_Automation/Tests -v --alluredir=./Reports/ui-results \
- --driver-remote-url=http://127.0.0.1:4723
+# 2. ่ฟ่ก UI ๆต่ฏ๏ผ-n 0 ่ฆ็ pytest.ini ็ๅนถๅ่ฎพ็ฝฎ๏ผ
+pytest UI_Automation/Tests -v -n 0 --alluredir=./Reports/ui-results
-# ====== ่ฟ่กๆง่ฝๆต่ฏ ======
+# ====== ๆง่ฝๆต่ฏ ======
cd Performance/locust_scripts
-locust -f locustfile.py --host=https://api.yunlu.com
+locust -f locustfile.py --host=https://api-dev.yunlu.com
```
---
@@ -318,20 +311,6 @@ login_cases:
---
-## ๐ Jenkins CI/CD ้ๆ
-
-้กน็ฎๅ
็ฝฎไบๅฎๆด็ Jenkins Pipeline ้
็ฝฎ๏ผ
-
-1. **Checkout** โ ไป Git ๆๅๆๆฐไปฃ็
-2. **Install Dependencies** โ pip install -r requirements.txt
-3. **Run API Tests** โ ๆง่กๆฅๅฃ่ชๅจๅ
-4. **Run UI Tests** โ ๆง่ก UI ่ชๅจๅ
-5. **Generate Report** โ ็ๆ Allure ๆฅๅ
-6. **Notify** โ ้้/ไผไธๅพฎไฟก้็ฅ็ปๆ
-
-่ฏฆ็ป้
็ฝฎ่ฏทๅ่ `CI/jenkins/Jenkinsfile`ใ
-
----
## ๐ค ่ดก็ฎๆๅ