Test AutomationSimplified view
NL2Test, from a sentence to a Playwright test
How NL2Test turns a plain-language description into an executable Playwright test, with a model planning the test and an MCP server driving a real page.
- Playwright
- Model Context Protocol
- VS Code
- OpenAI
10 stepsPress play, or use next and previous to follow the flow one step at a time.
All steps
What this shows
NL2Test turns a natural-language description of a scenario into an executable Playwright test. This diagram follows one request through the pieces involved: the editor, the Model Context Protocol (MCP) client and server, the model that plans the test, and the browser tools that act on a real page.
Design notes
- The model plans; the tools act. The model decides what to do, and the MCP server exposes the tools that do it, so the model never needs direct access to a browser.
- Ground the test in the real page. Reading a snapshot of the page before choosing locators keeps the test tied to what is actually on screen.
- A person stays in the loop. The result is a test a developer reviews and runs, not one that is trusted blindly.
This is a simplified view of the flow, drawn to explain the idea. The NL2Test project page has the project itself.
More workflows
AI and Agents
How an MCP request flows
8 steps 8 parts Simplified view
AI and Agents
Multi-agent supervisor
8 steps 7 parts Simplified view
AI and Agents
RAG pipeline
8 steps 7 parts Simplified view