rf-testcase-builder
Robot Framework Test Case Builder
Create test cases in Robot Framework syntax from structured input. Output JSON only.
Input (JSON)
Provide input via --input or stdin. Example:
{
"style": "keyword-driven",
"tests": [
{
"name": "User can create account",
"documentation": "Happy path account creation.",
"tags": ["smoke"],
"setup": {"keyword": "Open Browser", "args": ["${URL}", "chromium"]},
"teardown": {"keyword": "Close Browser"},
"steps": [
{"keyword": "Go To Sign Up"},
{"keyword": "Create User", "args": ["${username}", "${role}"]},
{"keyword": "User Should Be Logged In"}
]
}
]
}
Template-driven test:
{
"style": "template",
"tests": [
{
"name": "Login works",
"template": "Login Should Succeed",
"data_rows": [
["alice", "pass"],
["bob", "pass"]
]
}
]
}
Command
python scripts/testcase_builder.py --input tests.json
Flags
--allow-control-- Suppress warnings when control structures (FOR,IF,WHILE,TRY, etc.) appear in test steps. Without this flag the builder emits a warning for each control keyword found, encouraging you to move control logic into user keywords.--input FILE-- Path to the JSON input file (alternative to stdin).
Timeout support
Add "timeout" to a test object to render a [Timeout] setting:
{
"name": "Slow Operation",
"timeout": "30s",
"steps": [{"keyword": "Long Running Task"}]
}
Output (JSON)
artifact: test case block(s)warningsandsuggestions
More from manykarim/robotframework-agentskills
robotframework-appium-skill
Guide AI agents in creating AppiumLibrary tests for iOS and Android native apps, hybrid apps, and mobile browsers. Load when asked about mobile testing, Appium, or mobile app automation.
13robotframework-selenium-skill
Generate Robot Framework tests using SeleniumLibrary for browser automation with Selenium WebDriver. Use when asked to create web UI tests, automate browsers, interact with forms, handle multiple windows/frames, or execute JavaScript.
10robotframework-testcase-builder
Generate Robot Framework test cases from structured requirements or scenarios. Use when asked to create test cases, apply tags/setup/teardown/templates, or produce keyword-driven tests.
9robotframework-browser-skill
Guide AI agents in creating Browser Library tests using Playwright-powered automation with auto-waiting, assertion engine, and modern web features. Use when asked to create web tests with Browser Library, handle locators, assertions, iframes, Shadow DOM, or multi-tab scenarios.
9robotframework-keyword-builder
Generate Robot Framework user keywords from structured intent. Use when asked to create keywords, add arguments, documentation, tags, setup/teardown, or to apply embedded-argument style based on existing project conventions.
6robotframework-results
Parse Robot Framework output.xml results into JSON summaries, detailed suite/test breakdowns, tag and criticality stats, execution errors, failed test messages, keyword-level errors, and timing. Use when asked to read/merge output.xml, compute pass/fail counts, tag stats, criticality, error messages, elapsed time, slowest tests/keywords, or combine/merge multiple outputs via rebot.
6