Logo di Generate Automation Framework

Generate Automation Framework

Community
anhtester
generate-automation-framework

Thiết kế và scaffold automation framework hoàn chỉnh. Hỗ trợ Playwright, Selenium, Appium — Web, Mobile, API.

Panoramica

Autoreanhtester
Repositorycodex-testing-kit
Nome della skillgenerate-automation-framework
Stelle
34
Fork
14
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 1 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da anhtester su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Generate Automation Framework in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-automation-framework
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/anhtester/codex-testing-kit.git /tmp/codex-testing-kit
mkdir -p .claude/skills
cp -r /tmp/codex-testing-kit/.agents/skills/generate-automation-framework .claude/skills/generate-automation-framework
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Generate Automation Framework in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Generate Automation Framework non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Generate Automation Framework non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Workflow: Thiết Kế Automation Framework

BẮT BUỘC (MANDATORY SKILL): Bạn PHẢI nạp và đọc kỹ nội dung của skill $framework-architect (tại .agents/skills/framework-architect/SKILL.md) trước khi bắt đầu. Ngoài ra, tham khảo thêm skill $qa-automation-engineer để nắm các quy tắc automation chung.

Workflow này giúp agent thiết kế, scaffold và triển khai một automation framework hoàn chỉnh từ đầu, phù hợp với nhu cầu cụ thể của project.

⚠️ Nguyên tắc thực thi

  • Tất cả output bằng Tiếng Việt
  • KHÔNG đoán tech stack — phải hỏi user xác nhận trước khi scaffold
  • PHẢI tạo artifact task.md để theo dõi tiến độ
  • Mỗi file sinh ra phải biên dịch/chạy được ngay — không để placeholder // TODO
  • Framework phải tuân thủ design principles trong skill $framework-architect

Stacks hỗ trợ

PlatformStackNgôn ngữRunnerReport
🌐 WebPlaywrightTypeScriptPlaywright TestHTML Report, Allure
🌐 WebPlaywrightJavaTestNG / JUnit5Allure
🌐 WebPlaywrightPythonPytestpytest-html, Allure
🌐 WebSeleniumJavaTestNGAllure, ExtentReports
🌐 WebSeleniumPythonPytestpytest-html, Allure
📱 MobileAppiumJavaTestNGAllure, ExtentReports
📱 MobileAppiumPythonPytestAllure
🔌 APIREST AssuredJavaTestNGAllure
🔌 APIPlaywright APITypeScriptPlaywright TestHTML Report

Các bước thực hiện

Bước 1: Thu thập yêu cầu (Requirements Gathering — ⏸️ CHECKPOINT)

  1. Hỏi user các thông tin cần thiết:

    Câu hỏiMục đíchMặc định nếu không trả lời
    Ứng dụng cần test là gì? (Web / Mobile / API / Hybrid)Chọn platformWeb
    Framework nào? (Playwright / Selenium / Appium)Chọn toolPlaywright
    Ngôn ngữ? (TypeScript / Java / Python)Chọn languageTypeScript (Playwright), Java (Selenium/Appium)
    Project name?Đặt tên thư mụcautomation-framework
    Có cần CI/CD pipeline không?Sinh pipeline configCó (GitHub Actions)
    Reporting tool?Tích hợp reportMặc định theo stack
    Có test API song song không?Thêm API testing layerKhông
    Parallel execution?Config parallelKhông
  2. Xác nhận lại với user trước khi scaffold:

    📋 Tóm tắt framework sẽ tạo:
    - Platform: Web
    - Framework: Playwright
    - Language: TypeScript
    - Runner: Playwright Test
    - Report: HTML Report + Allure
    - CI/CD: GitHub Actions
    - Project name: my-automation
    
    Bạn xác nhận để tôi bắt đầu scaffold không?
  3. Chờ user xác nhận trước khi sang Bước 2

Bước 2: Scaffold Project Structure (Foundation)

  1. Tạo artifact task.md để theo dõi checklist:

    markdown
    # Framework Setup Progress
    - [x] Bước 1: Thu thập yêu cầu
    - [ ] Bước 2: Scaffold project structure
    - [ ] Bước 3: Sinh base classes
    - [ ] Bước 4: Sinh example tests
    - [ ] Bước 5: Cấu hình reporting & CI/CD
    - [ ] Bước 6: Verify & Deliver
  2. Tạo thư mục project theo template trong skill $framework-architect:

    • Tham khảo mục Project Structure Templates trong SKILL.md
    • Tạo toàn bộ thư mục + file cấu hình gốc
  3. Sinh file cấu hình build (tuỳ stack):

    Playwright + TypeScript:

    • package.json — dependencies: @playwright/test, devDependencies phù hợp
    • playwright.config.ts — baseURL, viewport (1920x1080), timeout, retries, reporter
    • tsconfig.json — paths, strict mode
    • .env.example — template environment variables

    Selenium + Java:

    • pom.xml — dependencies: selenium-java, testng, webdrivermanager, allure-testng, log4j
    • testng.xml — suite configuration, listeners
    • log4j2.xml — logging configuration

    Appium + Java:

    • pom.xml — dependencies: appium-java-client, selenium-java, testng, allure
    • testng.xml — suite configuration
    • Capabilities config file (JSON/YAML) cho Android + iOS

    Playwright + Python:

    • requirements.txt — playwright, pytest, pytest-playwright, allure-pytest
    • pyproject.toml — pytest config, tool settings
    • conftest.py — root fixtures, browser setup
  4. Tạo file .gitignore phù hợp (node_modules, target, pycache, .env, reports...)

  5. Tạo README.md với hướng dẫn:

    • Prerequisites (Node.js, Java, Python version)
    • Installation steps
    • Cách chạy test
    • Project structure overview
    • Conventions (naming, coding standards)

Bước 3: Sinh Core Classes (Base Layer)

  1. Configuration Management:

    StackFileNội dung
    Playwright TSsrc/utils/env.config.tsĐọc .env, export typed config object
    Selenium Javasrc/main/.../config/ConfigReader.javaĐọc properties file, singleton pattern
    Appium Javasrc/main/.../config/AppConfig.javaĐọc capabilities JSON, env variables
    Playwright Pythonsrc/utils/config.pyĐọc .env bằng python-dotenv
  2. Browser / Driver Management:

    StackFileNội dung
    Playwright TSplaywright.config.ts + fixturesBrowser config trong config, auth trong fixtures
    Selenium JavaDriverFactory.javaFactory pattern, WebDriverManager, thread-safe
    Appium JavaAppiumDriverFactory.java + CapabilitiesManager.javaAppium server URL, desired capabilities per device
    Playwright Pythonconftest.pyFixtures cho browser, context, page
  3. Base Page / Screen class:

    • Common methods: navigate(), click(), type(), getText(), isVisible()
    • Built-in smart waits (KHÔNG có hard sleep)
    • Screenshot on failure
    • Logging mỗi action
  4. Base Test class:

    • Setup: khởi tạo browser/driver, navigate to baseURL
    • Teardown: đóng browser/driver, capture screenshot nếu fail
    • Test lifecycle hooks (beforeAll, afterAll, beforeEach, afterEach)
  5. Utilities:

    • TestDataGenerator — sinh email, username, phone unique + traceable
    • WaitHelper — custom wait conditions (nếu cần ngoài built-in)
    • ScreenshotUtil — capture + attach to report
    • Logger — structured logging (Log4j / winston / Python logging)

Bước 4: Sinh Example Tests (Validation Layer)

  1. Tạo ít nhất 1 example Page Object:

    • LoginPage (hoặc LoginScreen cho mobile) với locators + methods thực tế
    • Locator dùng placeholder mô tả rõ cần thay thế:
      typescript
      // REPLACE: Update locator after inspecting actual DOM
      readonly usernameInput = this.page.getByLabel('Username');
      readonly passwordInput = this.page.getByLabel('Password');
      readonly loginButton = this.page.getByRole('button', { name: 'Login' });
  2. Tạo ít nhất 1 example Test:

    • LoginTest — demo happy path (login thành công)
    • Có đầy đủ: Arrange → Act → Assert
    • Assertion có message rõ ràng
    • Test data dùng TestDataGenerator (nếu applicable)
  3. Tạo 1 example data-driven test (nếu phù hợp):

    • Đọc data từ file JSON/YAML/CSV
    • Parameterized test với nhiều bộ data

Bước 5: Cấu hình Reporting & CI/CD (Integration Layer)

  1. Reporting setup:

    StackReportCấu hình
    Playwright TSHTML + Allurereporter trong playwright.config.ts
    Selenium JavaAllureallure-testng dependency + @Step, @Attachment annotations
    Appium JavaAllure + ExtentReportsallure-testng + ExtentManager singleton
    Playwright Pythonpytest-html + Allureconftest.py hooks + pytest addopts
    • Screenshot auto-attach on failure
    • Test step logging trong report
  2. CI/CD Pipeline (nếu user yêu cầu):

    GitHub Actions template:

    yaml
    # Sinh file .github/workflows/<framework>.yml
    # Nội dung tùy stack: install deps → run tests → upload report
    • Install dependencies
    • Run tests (headless mode cho CI)
    • Upload test report as artifact
    • Parallel execution (nếu được yêu cầu)
    • Environment variables từ GitHub Secrets
  3. Docker support (optional — chỉ nếu user yêu cầu):

    • Dockerfile cho test execution environment
    • docker-compose.yml nếu cần Selenium Grid / Appium server

Bước 6: Verify & Deliver (Quality Gate)

  1. Kiểm tra framework build được:

    bash
    # Playwright TS
    npm install && npx playwright install && npx playwright test --list
    
    # Selenium Java
    mvn clean compile
    
    # Appium Java
    mvn clean compile
    
    # Playwright Python
    pip install -r requirements.txt && playwright install
  2. Chạy example test để verify framework hoạt động:

    • Nếu PASS → framework sẵn sàng
    • Nếu FAIL do thiếu app/URL → acceptable (ghi note trong README)
    • Nếu FAIL do lỗi code framework → sửa ngay
  3. Review checklist trước khi bàn giao:

    • Project structure đúng template
    • Tất cả dependencies đã khai báo
    • Config management hoạt động (đọc .env)
    • Base Page/Test có đầy đủ common methods
    • POM pattern được tuân thủ
    • Smart waits — không có hard sleep
    • Example test chạy được (hoặc chạy được khi có app)
    • README.md hướng dẫn đầy đủ
    • .gitignore bao phủ đúng
    • Reporting tích hợp
    • Không có debug log, commented code, TODO placeholder
  4. Cập nhật task.md với trạng thái hoàn thành

Xử lý tình huống đặc biệt

Tình huốngCách xử lý
User muốn hybrid (Web + Mobile)Tạo shared layer (utils, config) + tách pages vs screens
User muốn hybrid (Web + API)Thêm API layer song song (api helpers + api tests folder)
User có framework cũ cần refactorĐọc code hiện tại → đề xuất migration plan → refactor từng phần
User muốn multi-browserConfig parallel projects trong playwright.config.ts hoặc test suite XML
User muốn multi-device (Appium)CapabilitiesManager hỗ trợ load từ JSON per device (Android/iOS)
User không biết chọn stackGợi ý dựa trên: team skill, project type, CI infra

Output

  • Project structure đầy đủ (tất cả thư mục + files)
  • Build config (package.json / pom.xml / requirements.txt)
  • Framework config (playwright.config.ts / testng.xml / conftest.py)
  • Base classes (BasePage, BaseTest, DriverFactory, ConfigReader)
  • Utilities (TestDataGenerator, WaitHelper, ScreenshotUtil, Logger)
  • Example Page Object + Test (LoginPage + LoginTest)
  • Reporting integration (Allure / HTML Report)
  • CI/CD pipeline (GitHub Actions template)
  • README.md (setup guide + project overview)
  • Artifact task.md (checklist tiến độ)

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Generate Automation Framework?

Thiết kế và scaffold automation framework hoàn chỉnh. Hỗ trợ Playwright, Selenium, Appium — Web, Mobile, API.

Perché usare Generate Automation Framework su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Generate Automation Framework è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Generate Automation Framework in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-automation-framework. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Generate Automation Framework?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Generate Automation Framework?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Generate Automation Framework: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Generate Automation Framework è gratuita?

Sì. È pubblicata su GitHub da anhtester con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇