Enterprise-grade multi-cloud, model-agnostic architecture design
AiScripto is a layered microservices architecture that supports multiple AI model vendors, multiple cloud platform deployments, and flexible scalability.
AiScripto provides three user interface options to suit different team preferences.
Intuitive web interface for project management, test monitoring, and report analysis. Support real-time collaboration and historical tracking.
Powerful command-line interface integrated into CI/CD pipelines. Support local development, batch operations, and script automation.
Interactive terminal user interface suitable for local development and real-time feedback. Support keyboard navigation and real-time log streaming.
RESTful API provides programmatic access to all AiScripto functionality, supporting complete CRUD operations and complex queries.
GraphQL API provides more flexible data queries with WebSocket real-time subscriptions, suitable for real-time monitoring and dashboard applications.
Support multiple authentication methods: JWT Token, OAuth 2.0, API Keys. All API calls are encrypted via TLS, support RBAC and fine-grained permission control.
The application layer contains all core business logic and AI integration.
The multi-agent orchestration engine is the core of AiScripto, responsible for coordinating various AI agents to complete complex tasks.
| 代理 | 職責 | 使用的AI模型 | 輸入 | 輸出 |
|---|---|---|---|---|
| Parser | 解析和驗證測試用例 | Claude、GPT-4 | 原始文本 | 結構化測試JSON |
| Explorer | 啟動瀏覽器並探索UI | Playwright + Vision API | 應用URL、測試步驟 | 元素定位器、截圖 |
| Generator | 生成Playwright測試代碼 | Claude、GPT-4 | 測試結構、定位器 | TypeScript測試文件 |
| Executor | 執行Playwright測試 | Playwright框架 | 測試文件、環境配置 | 執行日誌、trace文件 |
| Healer | 分析失敗並自動修復 | Claude、Vision API | 失敗日誌、截圖 | 修復的代碼、報告 |
| Analyzer | 生成洞察和報告 | 數據分析、Claude | 執行結果、歷史數據 | 報告、建議 |
AiScripto支持多個AI模型供應商,允許企業選擇最適合的配置。 所有供應商通過統一的Model Context Protocol (MCP)接口訪問。
所有AI模型通過統一的MCP接口訪問,提供一致的API。 這允許你輕鬆在不同的模型和供應商之間切換,而無需修改應用代碼。
存儲層支持多種雲存儲後端和數據庫選項。
AWS S3 - 對象存儲
Google Cloud Storage - 高可用存儲
Azure Blob Storage - 企業存儲
本地文件系統 - 開發環境
PostgreSQL - 開源選項
AWS RDS - 託管PostgreSQL
Azure SQL - 企業SQL
Google Cloud SQL - GCP選項
AWS DynamoDB - 高性能
MongoDB Atlas - 文檔數據庫
Azure Cosmos DB - 全球分佈
Firebase - 實時數據庫
Redis - 記憶體快取
ElastiCache - AWS託管
Memcached - 分佈式快取
定位器快取 - 本地優化
執行層負責實際的測試運行、瀏覽器控制和結果記錄。
| 日誌類型 | 存儲位置 | 用途 | 保留期 |
|---|---|---|---|
| 執行日誌 | CloudWatch / Stackdriver | 測試步驟和結果追蹤 | 30天 |
| Trace文件 | S3 / GCS / Blob Storage | 詳細的瀏覽器互動記錄 | 60天 |
| 螢幕截圖 | 對象存儲 | 視覺驗證和調試 | 90天 |
| 性能指標 | 時間序列數據庫 | 性能監控和趨勢分析 | 1年 |
AiScripto支持多種部署方式,從開發環境到企業級生產部署。
在本地機器上運行,適合開發和測試。 無需雲資源。
Lambda無服務器、EC2實例或ECS容器部署。 與Bedrock和其他AWS服務集成。
App Service、Container Instances或Kubernetes。 與Azure DevOps集成。
Cloud Run無服務器或GKE容器編排。 與Vertex AI集成。
在你自己的Kubernetes集群上運行。 完全控制和自定義。
在多個雲平台間分佈應用。 符合多區域合規性要求。
企業級安全是AiScripto的核心設計原則。
傳輸層(TLS 1.3)和存儲層加密(AES-256)
支持SSO、OAuth 2.0、SAML和MFA
AWS KMS、Azure Key Vault、Google Secret Manager
所有操作記錄,支持長期存檔
| 指標 | 性能 | 說明 |
|---|---|---|
| API響應時間 | < 200ms (p95) | 大多數API調用在200毫秒內完成 |
| 生成測試時間 | 1-3 分鐘 | 從測試用例到可執行代碼 |
| 測試執行速度 | 與Playwright相同 | 無額外的性能開銷 |
| 自動修復時間 | < 2 分鐘 | 重新測試和驗證修復 |
| 併發測試數 | 可配置 | 支持100+並行執行 |
根據負載自動添加更多執行器實例
支持高內存配置用於複雜測試
應用層無狀態,便於快速擴展
多層快取減少數據庫負載