You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,38 @@ This Java-based test automation framework is designed to support **end-to-end te
36
36
- Conversational UI for natural language queries
37
37
- Integrates with RAG and knowledge base for context-aware answers
38
38
- Supports both local and cloud LLMs
39
+
40
+
### 🧠 Model Control Plane (MCP) Server — AI-Driven Test Generation & Review
41
+
42
+
-**Lightweight Java HTTP server** for AI-powered test automation workflows
43
+
-**Endpoints for:**
44
+
- Page object generation from prompt files
45
+
- Playwright/Selenium test generation and execution
46
+
- Automated code review of generated tests (`/mcp/test-code-review`)
47
+
- Reporting: lists test run artifacts and logs (`/mcp/report`)
48
+
-**Pluggable AI clients:** Supports RAG, OpenAI, and local LLMs for prompt completion and code review
49
+
-**Playwright bridge:** Runs Playwright tests via a Node.js subprocess for browser automation
50
+
-**MongoDB context store:** (optional) for storing workflow and conversation context
51
+
-**Demo/test script:**[`scripts/test_mcp.sh`](scripts/test_mcp.sh) exercises all endpoints for quick validation
52
+
53
+
**Quick start:**
54
+
55
+
```bash
56
+
# Start the MCP server (from project root)
57
+
58
+
# Or run directly with Java if built:
59
+
60
+
61
+
# In another terminal, run the demo script:
62
+
# 🚀 AI-Powered Features
63
+
64
+
**Endpoints:**
65
+
- `POST /mcp/generate-page-object` — Generate page objects from prompt
66
+
- `POST /mcp/generate-and-run-playwright-test` — Generate & run Playwright test
67
+
- `POST /mcp/generate-and-run-selenium-test` — Generate & run Selenium test
68
+
- `POST /mcp/test-code-review` — Automated AI code review fortest code
69
+
- `GET /mcp/report` — List test run reports and logs
70
+
39
71
40
72
Built entirely with open-source libraries, this framework is **fully extensible**—ready to scale for validations involving files, emails, microservices, or third-party system integrations.
41
73
@@ -61,6 +93,10 @@ flowchart TD
61
93
C --> D[RAG Engine]
62
94
C --> E[Self-Healing Engine]
63
95
C --> J[Chatbot/NLP & Conversational AI]
96
+
C --> M[MCP Server]
97
+
M --> C
98
+
M --> N[Playwright/Selenium Bridge]
99
+
M --> O[Prompt Files]
64
100
D --> F[Embedding Providers]
65
101
D --> G[Embedding Cache]
66
102
D --> H[Docs/Knowledge Base]
@@ -87,6 +123,10 @@ This framework now includes advanced AI-powered features for smarter, context-aw
87
123
- **Persistent Embedding Cache:**
88
124
- Embeddings are computed once per document chunk and reused for all future runs
89
125
- Massive speedup and cost savings for repeated queries
126
+
- **Model Control Plane (MCP) Server:**
127
+
- Lightweight Java HTTP server for AI-powered test generation, review, and workflow orchestration
128
+
- Exposes endpoints for page object generation, Playwright/Selenium test execution, automated code review, and reporting
129
+
- Integrates with RAG, OpenAI, and local LLMs; bridges to Playwright/Selenium; supports prompt-driven automation
- [RAGComponentsDemo.java (RAG Test Class)](https://github.com/K11-Software-Solutions/k11TechLab-selenium-java-fullstack-framework/blob/main/src/main/java/org/k11techlab/framework/ai/rag/demo/RAGComponentsDemo.java)
0 commit comments