test-case-to-playwright
Skill10 starsChanged 5 months agoMITView on GitHub
Convert Katalon True Platform/TestOps manual test cases, test suites, or requirement-linked cases into Playwright TypeScript automation. Use when you need to fetch/read Katalon Platform test cases and implement Playwright scripts, create or adapt a Playwright framework, apply Page Object Model and fixtures, or translate manual steps into meaningful automated test keywords. Written for the automation tester converting a manual case into code that fits an existing page-object layer.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/analyze-failures.mdcCursor rule
- .cursor/rules/create-test-cases.mdcCursor rule
- .cursor/rules/execute-test.mdcCursor rule
- .cursor/rules/exploratory-charter.mdcCursor rule
- .cursor/rules/get-started.mdcCursor rule
- .cursor/rules/platform-setup.mdcCursor rule
- .cursor/rules/playwright-execute.mdcCursor rule
- .cursor/rules/release-analyze.mdcCursor rule
- .cursor/rules/test-case-to-katalon-studio.mdcCursor rule
- .cursor/rules/test-case-to-playwright.mdcCursor rule
- .cursor/rules/test-data.mdcCursor rule
- .cursor/rules/test-estimation.mdcCursor rule
- .cursor/rules/test-maintenance.mdcCursor rule
- .cursor/rules/test-management.mdcCursor rule
- .cursor/rules/test-plan.mdcCursor rule
- .cursor/rules/test-reporting.mdcCursor rule
- .cursor/rules/test-review.mdcCursor rule
- .cursor/rules/true-platform-testing.mdcCursor rule
- .cursor/rules/upload-report.mdcCursor rule
- llms.txtllms.txt
- analyze-failuresSkill
- create-test-casesSkill
- execute-testSkill
- exploratory-charterSkill
- get-startedSkill
- platform-setupSkill
- playwright-executeSkill
- release-analyzeSkill
- test-case-to-katalon-studioSkill
- test-case-to-playwrightSkill
- test-dataSkill
- test-estimationSkill
- test-maintenanceSkill
- test-managementSkill
- test-planSkill
- test-reportingSkill
- test-reviewSkill
- true-platform-testingSkill
- upload-reportSkill
- analyze-failuresSkill
- create-test-casesSkill
- execute-testSkill
- exploratory-charterSkill
- get-startedSkill
- platform-setupSkill
- playwright-executeSkill
- release-analyzeSkill
- test-case-to-katalon-studioSkill
- test-dataSkill
- test-estimationSkill
- test-maintenanceSkill
- test-managementSkill
- test-planSkill
- test-reportingSkill
- test-reviewSkill
- true-platform-testingSkill
- upload-reportSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 23 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Use Katalon MCP tools when available to list projects, list repositories/Test Projects, find test suites, find test cases, and read each …
- Distinctive: line 28
If the user gives a test suite, read the suite and every included test case before generating scripts.
- Distinctive: line 29
If the user gives requirement keys, find requirement-linked cases first.
- Distinctive: line 30
If MCP tools are unavailable or authentication fails, ask the user for exported test cases, case URLs, case IDs, or the test case text.
- Very specific: line 43
Search with rg --files for playwright.config.*, package.json, tests/, e2e/, fixtures/, pages/, and existing *.spec.ts files.
- Distinctive: line 44
If a Playwright framework exists in the workspace, summarize the detected path, conventions, and intended files, then ask the user to …
- Distinctive: line 45
If multiple candidate frameworks exist, ask the user which one to use.
- Distinctive: line 46
If no Playwright framework exists, ask whether the user wants to provide a Git repository/path or wants the agent to create/copy a …
- Distinctive: line 47
If the user does not provide a repository/path after that prompt and the current workspace is writable, initialize a Playwright TypeScript …
- Distinctive: line 49
When initializing a new framework, use TypeScript and include:
- Very specific: line 57
Read references/playwright-typescript.md before scaffolding a new framework or making broad changes to an existing one.
- Distinctive: line 63
Use Page Object Model for page structure and domain actions.
- Distinctive: line 64
Use fixtures for authenticated users, test data, API setup, reusable pages, and environment URLs.
- Distinctive: line 65
Write spec names and test steps that remain understandable to a manual tester.
- Distinctive: line 66
Prefer stable user-facing locators: role, label, placeholder, text, test id.
- Distinctive: line 68
Keep one automated test aligned to one Katalon test case unless the existing framework groups scenarios differently.
- Distinctive: line 69
Do not silently invent credentials, URLs, product IDs, account state, or selectors.
- Distinctive: line 71
Use meaningful keywords in page objects and fixtures, for example:
- Distinctive: line 82
Follow the existing repository's naming, linting, folder, fixture, and assertion conventions when present.
- Distinctive: line 83
Keep generated code idiomatic TypeScript with explicit domain names and minimal comments.
- Distinctive: line 85
Add tags or annotations for Katalon case IDs when the framework supports it.
- Distinctive: line 86
Avoid changing unrelated framework config unless required for the requested tests.
- Distinctive: line 87
If the AUT must be inspected to identify selectors, use Browser/Playwright exploration and keep selectors stable.
- Distinctive: line 88
If live AUT access is blocked, implement the structure and mark only selector/test data gaps that require human input.
- Very specific: line 94
Run the narrowest available check: TypeScript compile, lint, Playwright list, or a targeted npx playwright test.
- Distinctive: line 95
If the test cannot run because credentials, AUT access, or dependencies are missing, report the exact blocker and what remains unverified.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Katalon Test Case To Playwright Script
Use this skill to turn Katalon Platform/TestOps test cases into maintainable Playwright TypeScript automation. Prefer existing project patterns when a Playwright framework already exists. Treat the human as a tool: ask concise questions whenever a required target, credential, repository, AUT detail, or test data value cannot be discovered safely.
Workflow
+-------------------+ --> +-------------------+ --> +---------------------+
| Resolve Katalon | | Read test cases | | Resolve framework |
+-------------------+ +-------------------+ +---------------------+
|
v
+-------------------+ <-- +-------------------+ <-- +---------------------+
| Verify scripts | | Write automation | | Map manual steps |
+-------------------+ +-------------------+ +---------------------+Katalon Source
Resolve the Katalon context before writing code:
- Use Katalon MCP tools when available to list projects, list repositories/Test Projects, find test suites, find test cases, and read each selected test case.
- If the user gives a test suite, read the suite and every included test case before generating scripts.
- If the user gives requirement keys, find requirement-linked cases first.
- If MCP tools are unavailable or authentication fails, ask the user for exported test cases, case URLs, case IDs, or the test case text.
- Preserve traceability by keeping Katalon case IDs or titles in test annotations, comments, tags, or test names according to the target framework's style.
Extract for each case:
- Title, priority, requirement links, folder/suite, preconditions, test data, manual steps, and expected results.
- AUT URL, user roles/accounts, environment, browser/device assumptions, and cleanup requirements.
- Ambiguous selectors or business data that require human input.
Framework Resolution
Inspect the workspace before creating anything:
- Search with
rg --filesforplaywright.config.*,package.json,tests/,e2e/,fixtures/,pages/, and existing*.spec.tsfiles. - If a Playwright framework exists in the workspace, summarize the detected path, conventions, and intended files, then ask the user to confirm before modifying it.
- If multiple candidate frameworks exist, ask the user which one to use.
- If no Playwright framework exists, ask whether the user wants to provide a Git repository/path or wants the agent to create/copy a framework into a target directory.
- If the user does not provide a repository/path after that prompt and the current workspace is writable, initialize a Playwright TypeScript framework in the current workspace.
When initializing a new framework, use TypeScript and include:
playwright.config.tstests/for specspages/for Page Object Model classesfixtures/for custom fixtures and shared test data- meaningful helper methods that read like domain actions, not raw selector operations
Read references/playwright-typescript.md before scaffolding a new framework or making broad changes to an existing one.
Automation Design
Translate manual Katalon steps into Playwright scripts using these rules:
- Use Page Object Model for page structure and domain actions.
- Use fixtures for authenticated users, test data, API setup, reusable pages, and environment URLs.
- Write spec names and test steps that remain understandable to a manual tester.
- Prefer stable user-facing locators: role, label, placeholder, text, test id. Avoid brittle CSS/XPath unless the app gives no better option.
- Convert manual expected results into assertions near the action that produces them.
- Keep one automated test aligned to one Katalon test case unless the existing framework groups scenarios differently.
- Do not silently invent credentials, URLs, product IDs, account state, or selectors. Ask the human or mark a small TODO only when the missing value cannot be discovered.
Use meaningful keywords in page objects and fixtures, for example:
await productCatalog.searchForPhone(testData.phoneName);
await productCatalog.expectPhoneVisible(testData.phoneName);
await cart.addVisibleProductToCart(testData.phoneName);
await checkout.expectOrderSummaryTotal(expectedTotal);Implementation Rules
- Follow the existing repository's naming, linting, folder, fixture, and assertion conventions when present.
- Keep generated code idiomatic TypeScript with explicit domain names and minimal comments.
- Store test data in the existing data fixture pattern; if none exists, create typed fixture data rather than scattering literals across specs.
- Add tags or annotations for Katalon case IDs when the framework supports it.
- Avoid changing unrelated framework config unless required for the requested tests.
- If the AUT must be inspected to identify selectors, use Browser/Playwright exploration and keep selectors stable.
- If live AUT access is blocked, implement the structure and mark only selector/test data gaps that require human input.
Verification
After writing scripts:
- Run the narrowest available check: TypeScript compile, lint, Playwright list, or a targeted
npx playwright test. - If the test cannot run because credentials, AUT access, or dependencies are missing, report the exact blocker and what remains unverified.
- Report created/updated files, mapped Katalon cases, commands run, and any manual inputs still needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

