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