Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_keyNoProject key (auto-detected from case_key if not provided)
case_keyYesTest case key (e.g., 'ANDROID-6')
implementation_contextYesImplementation context (existing code, file paths, or framework hints)
target_frameworkNoTarget test framework (auto-detected if 'auto')auto
output_formatNoOutput format for generated testcode
include_setup_teardownNoInclude setup and teardown code
include_assertions_templatesNoInclude assertion templates
generate_page_objectsNoGenerate page object classes
include_data_providersNoInclude data provider templates
include_suite_hierarchyNoInclude featureSuiteId and rootSuiteId information
file_pathNoFile path for saving generated code (optional)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maksimsarychau/mcp-zebrunner'

If you have feedback or need assistance with the MCP directory API, please join our Discord server