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
Input Schema
TableJSON 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) |