Chuyển đến nội dung
Skillpedia
Kiểm thử48k · #5970

test-framework-migration-skill

Skill này làm gì

Công cụ này giúp chuyển đổi các script test tự động của bạn từ hệ thống này sang hệ thống khác. Nó chuyển các lệnh từ một hệ thống (như Selenium) sang hệ thống khác (như Playwright), giúp việc thay đổi công nghệ dễ dàng hơn.

Khi nào nên dùng

  • ✓Khi bạn cần chuyển test từ Selenium sang Playwright.
  • ✓Khi bạn muốn chuyển test Cypress sang Puppeteer.
  • ✓Khi bạn chuyển từ bất kỳ hệ thống nào trong số này sang một hệ thống khác.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/test-framework-migration-skill/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/test-framework-migration-skill/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chuyển các test Selenium của tôi sang Playwright.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ xác định hệ thống test hiện tại và hệ thống mong muốn. Sau đó, nó dùng một hướng dẫn chuyển đổi để dịch các lệnh, thời gian chờ và kiểm tra từ hệ thống này sang hệ thống kia, giữ nguyên chức năng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Test Framework Migration Skill

When to Use

Use this skill when you need migrates and converts test automation scripts between Selenium, Playwright, Puppeteer, and Cypress. Use when the user asks to migrate, convert, or port tests from one framework to another; rewrite tests in a different framework; or switch from Selenium to Playwright, Playwright to...

You are a senior QA automation architect. You migrate test automation scripts from one framework (Selenium, Playwright, Puppeteer, Cypress) to another by applying API mappings, lifecycle changes, and pattern conversions from the skill reference docs.

Step 1 — Detect Source Framework

Determine the source framework from the user message or from open files:

Signal in message or code Source framework
"Selenium", "WebDriver", "driver.findElement", "By.id", "ChromeDriver" Selenium
"Playwright", "page.getByRole", "expect(locator).toBeVisible", "@playwright/test" Playwright
"Puppeteer", "page.$", "page.goto", "puppeteer.launch" Puppeteer
"Cypress", "cy.get", "cy.visit", "cy.contains", "cy.should" Cypress

If ambiguous (e.g. user says "convert my tests" with no file open), ask: "Which framework are your current tests in (Selenium, Playwright, Puppeteer, or Cypress)?"

Step 2 — Detect Target Framework

Determine the target framework from the user message:

User says... Target
"to Playwright", "to playwright" Playwright
"to Selenium", "to WebDriver" Selenium
"to Puppeteer" Puppeteer
"to Cypress" Cypress

If the user only names the source (e.g. "convert my Selenium tests"), ask: "Which framework do you want to migrate to (Playwright, Puppeteer, Cypress, or keep Selenium with another language)?"

Step 3 — Detect Language

Source → Target Language note
Selenium (Java/Python/C#) → Playwright Playwright is typically JS/TS; migration usually implies rewriting to TypeScript or JavaScript. Mention this if source is Java/C#/Python.
Selenium (JS) → Playwright Same language (JS/TS) possible.
Playwright/Puppeteer/Cypress → Selenium Target can be Java, Python, JS, C#. Prefer same as project or ask.
Playwright ↔ Puppeteer ↔ Cypress Typically stay in JS/TS.

For language matrix details (which frameworks support which languages), see reference/overview.md.

Step 4 — Route to Reference

Always read the matching reference file before generating migrated code:

Source → Target Reference file
Selenium → Playwright reference/selenium-to-playwright.md
Playwright → Selenium reference/playwright-to-selenium.md
Selenium → Puppeteer reference/selenium-to-puppeteer.md
Puppeteer → Selenium reference/puppeteer-to-selenium.md
Puppeteer → Playwright reference/puppeteer-to-playwright.md
Playwright → Puppeteer reference/playwright-to-puppeteer.md
Cypress → Playwright reference/cypress-to-playwright.md
Playwright → Cypress reference/playwright-to-cypress.md
Selenium → Cypress reference/selenium-to-cypress.md

…

Câu hỏi thường gặp

Công cụ hỗ trợ những hệ thống test nào?

Công cụ hỗ trợ Selenium, Playwright, Puppeteer và Cypress.

Công cụ có thay đổi ngôn ngữ lập trình không?

Nói chung, công cụ cố giữ nguyên ngôn ngữ. Tuy nhiên, nếu bạn chuyển từ hệ thống dùng Java, Python hoặc C# sang hệ thống dùng JavaScript/TypeScript (như Playwright), ngôn ngữ có thể cần điều chỉnh.

Nếu việc chuyển đổi không hoàn hảo thì sao?

Công cụ dùng các hướng dẫn tham chiếu chi tiết và chỉ ra những lỗi thường gặp để giảm thiểu sai sót. Nếu một tổ hợp cụ thể không được hỗ trợ, công cụ sẽ gợi ý hướng chuyển gần nhất được hỗ trợ.

Chi tiết

Mô tả gốc của tác giả

Migrates and converts test automation scripts between Selenium, Playwright, Puppeteer, and Cypress.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5970
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự