Logotipo de Generate Automation Framework

Generate Automation Framework

Comunidad
anhtester
generate-automation-framework

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

Descripción general

Editoranhtester
Repositoriocodex-testing-kit
Nombre de la habilidadgenerate-automation-framework
Estrellas
34
Forks
14
Archivos incluidos
1
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 1 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por anhtester en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Generate Automation Framework en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-automation-framework
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Generate Automation Framework en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Generate Automation Framework automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Generate Automation Framework no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo 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 độ)

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Generate Automation Framework?

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

¿Por qué usar Generate Automation Framework en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Generate Automation Framework está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Generate Automation Framework en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-automation-framework. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Generate Automation Framework?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Generate Automation Framework?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Generate Automation Framework con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Generate Automation Framework?

Sí. anhtester la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇