process_test_scenario
Generate complete WDIO test files from Gherkin scenarios and UI selectors for automated testing workflows.
Instructions
Process a test scenario provided directly by the user and generate complete WDIO test files
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": {
"scenario_title": "<scenario_title>",
"gherkin_syntax": "<gherkin_syntax>",
"selectors": "<selectors>",
"output_directory": "<output_directory>"
},
"name": "process_test_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenario_title | Yes | Title of the test scenario | |
| tags | No | Test ID tags for the scenario (e.g., ["@login", "@smoke", "@TEST-001"]) | |
| gherkin_syntax | Yes | Complete Gherkin syntax with Given/When/Then steps | |
| selectors | Yes | UI element selectors as key-value pairs (e.g., {"usernameInput": "#username", "loginButton": "[data-testid=login-btn]"}) | |
| data_items | No | Test data items and configurations (optional) | |
| output_directory | Yes | Base directory where all generated files should be saved | |
| repo_path | No | Path to existing repository for pattern analysis (optional) |