Class TestAutomationService
java.lang.Object
com.shaft.mcp.TestAutomationService
MCP tools that describe SHAFT test-automation agent workflows and validate generated code guardrails.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckGeneratedCode(String language, String code) Checks generated or agent-authored code for SHAFT MCP guardrails.testAutomationScenarios(String area, String intent, int maxResults) Returns SHAFT MCP test automation use cases and the actions a coding agent should take.
-
Constructor Details
-
TestAutomationService
public TestAutomationService()
-
-
Method Details
-
testAutomationScenarios
@Tool(name="test_automation_scenarios", description="returns SHAFT MCP usage scenarios, agent actions, design patterns, guardrails, and completion criteria for API, GUI, mobile, capture, Doctor, Heal, reporting, and CI work") public McpScenarioCatalogResult testAutomationScenarios(String area, String intent, int maxResults) Returns SHAFT MCP test automation use cases and the actions a coding agent should take.- Parameters:
area- automation area such as all, api, web, mobile, capture, doctor, reporting, ci, cli, or dbintent- optional user intent used to narrow the catalogmaxResults- maximum scenarios to return; 0 returns every match- Returns:
- scenario catalog result
-
checkGeneratedCode
@Tool(name="test_code_guardrails_check", description="checks generated SHAFT test code for banned Thread.sleep calls and absolute XPath locators") public McpCodeGuardrailResult checkGeneratedCode(String language, String code) Checks generated or agent-authored code for SHAFT MCP guardrails.- Parameters:
language- source language label, usually javacode- source code to check- Returns:
- code guardrail result
-