robotframework-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-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-requests-skill
Guide AI agents in creating REST API tests using RequestsLibrary. Use when building HTTP client tests, JSON/XML API testing, session management, authentication, file uploads, and response validation.
6robotframework-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-libdoc-search
Search Robot Framework library/resource/suite documentation to find matching keywords for a use case. Use when asked to find keywords, search libdoc, match a use case to keywords, or scan multiple libraries/resources for relevant keywords.
6