generate_draft_test_by_key
Generate draft test code from Zebrunner test cases with automatic framework detection for Java, JavaScript, and Python testing frameworks.
Instructions
๐งช Generate draft test code from Zebrunner test case with intelligent framework detection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
case_key | Yes | Test case key (e.g., 'ANDROID-6') | |
file_path | No | File path for saving generated code (optional) | |
generate_page_objects | No | Generate page object classes | |
implementation_context | Yes | Implementation context (existing code, file paths, or framework hints) | |
include_assertions_templates | No | Include assertion templates | |
include_data_providers | No | Include data provider templates | |
include_setup_teardown | No | Include setup and teardown code | |
include_suite_hierarchy | No | Include featureSuiteId and rootSuiteId information | |
output_format | No | Output format for generated test | code |
project_key | No | Project key (auto-detected from case_key if not provided) | |
target_framework | No | Target test framework (auto-detected if 'auto') | auto |
Input Schema (JSON Schema)
{
"properties": {
"case_key": {
"description": "Test case key (e.g., 'ANDROID-6')",
"minLength": 1,
"type": "string"
},
"file_path": {
"description": "File path for saving generated code (optional)",
"type": "string"
},
"generate_page_objects": {
"default": false,
"description": "Generate page object classes",
"type": "boolean"
},
"implementation_context": {
"description": "Implementation context (existing code, file paths, or framework hints)",
"minLength": 10,
"type": "string"
},
"include_assertions_templates": {
"default": true,
"description": "Include assertion templates",
"type": "boolean"
},
"include_data_providers": {
"default": false,
"description": "Include data provider templates",
"type": "boolean"
},
"include_setup_teardown": {
"default": true,
"description": "Include setup and teardown code",
"type": "boolean"
},
"include_suite_hierarchy": {
"default": false,
"description": "Include featureSuiteId and rootSuiteId information",
"type": "boolean"
},
"output_format": {
"default": "code",
"description": "Output format for generated test",
"enum": [
"code",
"markdown",
"comments",
"all"
],
"type": "string"
},
"project_key": {
"description": "Project key (auto-detected from case_key if not provided)",
"minLength": 1,
"type": "string"
},
"target_framework": {
"default": "auto",
"description": "Target test framework (auto-detected if 'auto')",
"enum": [
"auto",
"java-carina",
"javascript-jest",
"python-pytest"
],
"type": "string"
}
},
"required": [
"case_key",
"implementation_context"
],
"type": "object"
}