# 35596035/autotest_python architecture

> Architecture diagram of the GitHub repository 35596035/autotest_python, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/35596035/autotest_python
- Repository: https://github.com/35596035/autotest_python

## Overview

DAM+ 網頁功能點擊測試工具：使用者啟動測試、在 Chrome 手動輸入驗證碼並登入，程式依分類操作網站，最後保存截圖與 JSON 摘要。主要分類能力依 README 描述整理；多數實作都在 main.py，未將它們拆成不存在的檔案。未展示的程式碼細節不作推斷。

Main entry points: [`main.py`](https://github.com/35596035/autotest_python/blob/main/main.py) (命令列測試執行器), [`load_env.py`](https://github.com/35596035/autotest_python/blob/main/load_env.py) (環境設定)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["執行與登入"]
  node_config["環境設定<br/>[load_env.py]"]
  node_runner["命令列測試執行器<br/>[main.py]"]
  node_login["登入與驗證碼等待<br/>[main.py]"]
end

subgraph group_content["內容功能測試"]
  node_home["首頁與側邊選單<br/>[main.py]"]
  node_dashboards["儀表板<br/>[main.py]"]
  node_reports["報表查詢與 CRUD<br/>[main.py]"]
  node_charts["統計圖表與 CRUD<br/>[main.py]"]
  node_classification["資料集與條件集<br/>[main.py]"]
end

subgraph group_operations["營運功能測試"]
  node_regulations["法規與 CRUD<br/>[main.py]"]
  node_alerts["排程與告警<br/>[main.py]"]
  node_events["事件管理<br/>[main.py]"]
  node_approval["簽核流程<br/>[main.py]"]
  node_system["系統稽核日誌<br/>[main.py]"]
end

subgraph group_results["測試結果"]
  node_capture["截圖與案例結果<br/>[main.py]"]
  node_summary["摘要輸出<br/>[main.py]"]
end

node_user(("測試操作者"))
node_chrome["Chrome 瀏覽器"]
node_dam["DAM+ 網站"]

node_user -->|"啟動測試"| node_runner
node_runner -->|"載入設定"| node_config
node_runner -->|"開始登入流程"| node_login
node_login -->|"開啟並操作"| node_chrome
node_user -->|"輸入驗證碼並登入"| node_chrome
node_login -->|"登入網站"| node_dam
node_runner -->|"執行分類案例"| node_home
node_runner -->|"執行分類案例"| node_dashboards
node_runner -->|"執行分類案例"| node_reports
node_runner -->|"執行分類案例"| node_charts
node_runner -->|"執行分類案例"| node_classification
node_runner -->|"執行分類案例"| node_regulations
node_runner -->|"執行分類案例"| node_alerts
node_runner -->|"執行分類案例"| node_events
node_runner -->|"執行分類案例"| node_approval
node_runner -->|"執行分類案例"| node_system
node_home -->|"操作網站"| node_dam
node_dashboards -->|"操作網站"| node_dam
node_reports -->|"操作網站"| node_dam
node_charts -->|"操作網站"| node_dam
node_classification -->|"操作網站"| node_dam
node_regulations -->|"操作網站"| node_dam
node_alerts -->|"操作網站"| node_dam
node_events -->|"操作網站"| node_dam
node_approval -->|"操作網站"| node_dam
node_system -->|"操作網站"| node_dam
node_runner -->|"記錄執行畫面"| node_capture
node_runner -->|"寫入測試摘要"| node_summary
node_capture -->|"記錄截圖路徑"| node_summary

click node_config "https://github.com/35596035/autotest_python/blob/main/load_env.py"
click node_runner "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_login "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_home "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_dashboards "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_reports "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_charts "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_classification "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_regulations "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_alerts "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_events "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_approval "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_system "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_capture "https://github.com/35596035/autotest_python/blob/main/main.py"
click node_summary "https://github.com/35596035/autotest_python/blob/main/main.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_config,node_runner,node_login toneBlue
class node_home,node_dashboards,node_reports,node_charts,node_classification toneAmber
class node_regulations,node_alerts,node_events,node_approval,node_system toneMint
class node_capture,node_summary toneRose
class node_user,node_chrome,node_dam toneIndigo
```

## Components

### 執行與登入

- [環境設定](https://github.com/35596035/autotest_python/blob/main/load_env.py): `load_env.py`
- [命令列測試執行器](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [登入與驗證碼等待](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`

### 內容功能測試

- [首頁與側邊選單](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [儀表板](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [報表查詢與 CRUD](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [統計圖表與 CRUD](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [資料集與條件集](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`

### 營運功能測試

- [法規與 CRUD](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [排程與告警](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [事件管理](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [簽核流程](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [系統稽核日誌](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`

### 測試結果

- [截圖與案例結果](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`
- [摘要輸出](https://github.com/35596035/autotest_python/blob/main/main.py): `main.py`

### Other components

- **測試操作者**
- **Chrome 瀏覽器**
- **DAM+ 網站**

## Connections

- 測試操作者 → 命令列測試執行器: 啟動測試 (evidence: `Readme.md`)
- 命令列測試執行器 → 環境設定: 載入設定 (evidence: `main.py`)
- 命令列測試執行器 → 登入與驗證碼等待: 開始登入流程 (evidence: `Readme.md`)
- 登入與驗證碼等待 → Chrome 瀏覽器: 開啟並操作 (evidence: `Readme.md`)
- 測試操作者 → Chrome 瀏覽器: 輸入驗證碼並登入 (evidence: `Readme.md`)
- 登入與驗證碼等待 → DAM+ 網站: 登入網站 (evidence: `Readme.md`)
- 命令列測試執行器 → 首頁與側邊選單: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 儀表板: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 報表查詢與 CRUD: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 統計圖表與 CRUD: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 資料集與條件集: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 法規與 CRUD: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 排程與告警: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 事件管理: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 簽核流程: 執行分類案例 (evidence: `Readme.md`)
- 命令列測試執行器 → 系統稽核日誌: 執行分類案例 (evidence: `Readme.md`)
- 首頁與側邊選單 → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 儀表板 → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 報表查詢與 CRUD → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 統計圖表與 CRUD → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 資料集與條件集 → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 法規與 CRUD → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 排程與告警 → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 事件管理 → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 簽核流程 → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 系統稽核日誌 → DAM+ 網站: 操作網站 (evidence: `Readme.md`)
- 命令列測試執行器 → 截圖與案例結果: 記錄執行畫面 (evidence: `Readme.md`)
- 命令列測試執行器 → 摘要輸出: 寫入測試摘要 (evidence: `main.py`)
- 截圖與案例結果 → 摘要輸出: 記錄截圖路徑 (evidence: `Readme.md`)
