Skip to main content
Glama

Automation Script Generator MCP Server

process_test_scenario

Generate complete WDIO test files by processing user-provided test scenarios, including Gherkin syntax, UI selectors, and optional test data, with intelligent file management for existing repositories.

Instructions

Process a test scenario provided directly by the user and generate complete WDIO test files

Input Schema

NameRequiredDescriptionDefault
data_itemsNoTest data items and configurations (optional)
gherkin_syntaxYesComplete Gherkin syntax with Given/When/Then steps
output_directoryYesBase directory where all generated files should be saved
repo_pathNoPath to existing repository for pattern analysis (optional)
scenario_titleYesTitle of the test scenario
selectorsYesUI element selectors as key-value pairs (e.g., {"usernameInput": "#username", "loginButton": "[data-testid=login-btn]"})
tagsNoTest ID tags for the scenario (e.g., ["@login", "@smoke", "@TEST-001"])

Input Schema (JSON Schema)

{ "additionalProperties": false, "properties": { "data_items": { "description": "Test data items and configurations (optional)", "type": "object" }, "gherkin_syntax": { "description": "Complete Gherkin syntax with Given/When/Then steps", "minLength": 1, "type": "string" }, "output_directory": { "description": "Base directory where all generated files should be saved", "minLength": 1, "type": "string" }, "repo_path": { "description": "Path to existing repository for pattern analysis (optional)", "type": "string" }, "scenario_title": { "description": "Title of the test scenario", "minLength": 1, "type": "string" }, "selectors": { "description": "UI element selectors as key-value pairs (e.g., {\"usernameInput\": \"#username\", \"loginButton\": \"[data-testid=login-btn]\"})", "type": "object" }, "tags": { "description": "Test ID tags for the scenario (e.g., [\"@login\", \"@smoke\", \"@TEST-001\"])", "items": { "type": "string" }, "type": "array" } }, "required": [ "scenario_title", "gherkin_syntax", "selectors", "output_directory" ], "type": "object" }

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/raymondsambur/automation-script-generator'

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