generate_draft_test_by_key
Create draft test code from Zebrunner test cases by detecting frameworks and generating code with setup, assertions, and optional page objects.
Instructions
🧪 Generate draft test code from Zebrunner test case with intelligent framework detection
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"case_key": "<case_key>",
"implementation_context": "<implementation_context>"
},
"name": "generate_draft_test_by_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | No | Project key (auto-detected from case_key if not provided) | |
| case_key | Yes | Test case key (e.g., 'ANDROID-6') | |
| implementation_context | Yes | Implementation context (existing code, file paths, or framework hints) | |
| target_framework | No | Target test framework (auto-detected if 'auto') | auto |
| output_format | No | Output format for generated test | code |
| include_setup_teardown | No | Include setup and teardown code | |
| include_assertions_templates | No | Include assertion templates | |
| generate_page_objects | No | Generate page object classes | |
| include_data_providers | No | Include data provider templates | |
| include_suite_hierarchy | No | Include featureSuiteId and rootSuiteId information | |
| file_path | No | File path for saving generated code (optional) |