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:
json
{
"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:
json
{
"style": "template",
"tests": [
{
"name": "Login works",
"template": "Login Should Succeed",
"data_rows": [
["alice", "pass"],
["bob", "pass"]
]
}
]
}
Command
bash
python scripts/testcase_builder.py --input tests.json
Output (JSON)
- •
artifact: test case block(s) - •
warningsandsuggestions