This skill converts manual test cases into production-ready automated test scripts. It analyzes the existing automation framework, interprets manual test steps, and generates maintainable tests following automation best practices. Use this skill whenever the user wants to automate manual test cases, expand test coverage, or create end-to-end automated flows from existing test documentation.
This skill converts manual test cases into production-ready automated test scripts. It analyzes the existing automation framework, interprets manual test steps, and generates maintainable tests following automation best practices. Use this skill whenever the user wants to automate manual test cases, expand test coverage, or create end-to-end automated flows from existing test documentation.
license
MIT
metadata
{"author":"Testomat.io","version":"1.0.0"}
Automate Manual Test Cases
Generate production-ready automated test scripts from manual test cases, reusing the project's existing framework, patterns, and components.
Input may be plain text, markdown steps, or comment blocks in source files (//, /* */).
2.1 Normalize Input Structure
Convert input into:
summary (or scenario title).
preconditions (optional).
steps (required) — ordered actions with expected results.
For comment-based inputs:
Treat comment markers (//, *, -) as structural hints.
Convert bullet points into ordered steps.
Bind _Expected:_ or Expected Results blocks to the preceding step.
Merge multiline expected results into a single logical expectation.
Example:
* Navigate to page
_Expected:_ Page opens
* Click once on the ${Custom statuses} block
_Expected_: List includes "manual" option.
Do not delete or rewrite original manual test comments.
Keep them as-is in the file.
Generate automation code below or alongside them.
Separate with a marker: // === AUTO-GENERATED TEST (based on steps above) ===
2.2 Handle Ambiguous Steps
Classify each step:
Clear => proceed.
Partially clear => make a reasonable assumption, mark it with ⚠️ in output (e.g., "⚠️ Assuming 'Submit' button triggers form submission"), continue.
Unclear and blocking => ask the user, with numbered options when there are alternatives:
❓ Do you want to:
1. Use existing LoginPage
2. Create new LoginPage
3. Skip login step
Use context from previous steps and common UI patterns (click, input, navigation).
Do not block the whole flow on one unclear step — continue with the rest.
2.3 Detect Inconsistencies
If step actions, expected results, and known UI patterns disagree:
Use automate-manual-test-cases skill for CodeceptJS framework to write automation
script "tests/plan-for-guest.test.ts" based on manual steps below in this file as
comments (leaving comments in the file for further analysis). Set a specific "smoke"
tag for this test.
Use as reference for extra proper examples:
* `tests/payment-methods.test.ts` - Canonical test file with team approved format.
* `src/pages/paymentMethods.page.ts` - Good described payment page object.
Avoid mistakes from legacy code examples:
* `src/pages/paymentOutdated.page.ts` - Outdated example with old patterns.
Finally, verify that the generated test is passed on - `BASE_URL = 'https://test.com/'`
and provide final review for user.