Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>QCS Playwright Automation AgentNew to Visual Studio Code? Get it now.
QCS Playwright Automation Agent

QCS Playwright Automation Agent

Emerson

|
5 installs
| (0) | Free
Generate Playwright tests from Azure DevOps test cases via the ADO and Playwright MCP servers. Deterministic scaffolding, mismatch detection, prerequisite + ADO-origin checks; agent prompt loaded privately from Azure DevOps.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

QCS Playwright Automation

[!IMPORTANT] Internal Tool Notice: This extension is created for Emerson employees only. It will not work unless the user is authenticated to the Emerson corporate network and has valid Microsoft Entra ID access to Emerson's Azure DevOps organization.

A VS Code extension that integrates GitHub Copilot with Azure DevOps and Playwright MCP servers for agentic Playwright test generation from Azure DevOps test cases.

The extension acts as a secure thin shell: agent prompt instructions and framework templates live in a private Azure DevOps Git repository and are fetched at runtime through the ADO MCP Server using Entra ID authentication—never bundled into the published VSIX.


Architecture

VS Code Extension (Public / Published VSIX)           Private Azure DevOps Repository
┌──────────────────────────────────────────┐          ┌────────────────────────────────────────────┐
│ activate()                               │          │  qcs-playwright-agent                      │
│  1. Preflight Setup Checks (Node/npm/auth)│───────▶ │   • agent/qcs-playwright-automation.agent.md │
│  2. Register MCP Servers:                │          │   • assets/framework/*                     │
│     • ADO MCP (https://mcp.dev.azure.com)│◀─────── │  (Fetched via ADO MCP Server)              │
│     • Playwright MCP (stdio npx)         │          └────────────────────────────────────────────┘
│  3. Fetch private agent prompt & inject  │           Gated via ADO MCP Server authentication.
│     dynamic runtime context              │           Requires auth for ADO MCP server only.
│  4. Command Palette & Status Bar         │
└──────────────────────────────────────────┘

Agent Capabilities (via MCP Servers & VS Code APIs):
  Copilot Chat ─▶ ADO Remote MCP (wit, testplan, git) ─▶ Fetch test cases, work items, test steps, repo files
               ─▶ Playwright MCP (browser control) ─▶ Dynamic UI navigation & test generation
               ─▶ File System / Workspace ─▶ Scaffold & generate Playwright tests (.spec.ts)

Key Features

  • Activation-Time Security Guard: Fails closed if the user is unauthenticated or lacks access to the private Emerson ADO MCP Server.
  • Private Runtime Agent Prompt: Instructions are fetched dynamically via the ADO MCP Server at runtime—never stored in the VSIX.
  • Dynamic Runtime Context: Automatically injects workspace ADO org/project, framework status, and Adapt mode settings into the agent prompt.
  • Single ADO MCP Integration: Connects Copilot and extension services directly to Azure DevOps (ado-remote-mcp) and browser automation (@playwright/mcp).
  • Framework Scaffolding & Adapt Mode: Scaffolds standard Playwright structures fetched via ADO MCP or adapts to existing workspace patterns.
  • Automated Diagnostics: Preflight checks for Node.js, npm, auth configuration, and ADO MCP Server connection with quick-fixes.

Extension Commands

Command Title Command ID Description
QCS Playwright Automation: Connect ADO MCP qcsPlaywrightAutomation.signIn Connects to the ADO MCP Server to fetch the private agent prompt and enable tools.
QCS Playwright Automation: Scaffold Playwright Framework qcsPlaywrightAutomation.scaffoldFramework Analyzes workspace structure against QCS standard templates and offers options to fill missing files, overwrite, or adapt to existing conventions.
QCS Playwright Automation: Switch Agent Branch qcsPlaywrightAutomation.switchBranch Selects a branch from Azure DevOps Git repository to re-fetch agent prompt instructions and framework templates (default: master).
QCS Playwright Automation: Show Logs qcsPlaywrightAutomation.showLogs Opens the extension's dedicated Output Channel (QCS Playwright Automation) for debugging and diagnostic logs.

Extension Settings

The extension can be configured via VS Code settings (settings.json under qcsPlaywrightAutomation.*):

Setting Default Value Description
qcsPlaywrightAutomation.adoMcpUrl https://mcp.dev.azure.com/EmersonAutomationSolutions Remote Azure DevOps MCP server URL.
qcsPlaywrightAutomation.adoMcpToolsets wit,testplan Comma-separated list of ADO MCP toolsets to expose.
qcsPlaywrightAutomation.playwrightMcpVersion 0.0.68 Pinned @playwright/mcp version used by the stdio provider.
qcsPlaywrightAutomation.agentGitOrigin https://dev.azure.com/EmersonAutomationSolutions/AS-PMO-QCS/_git/qcs-playwright-agent Full Azure DevOps Git origin URL holding the agent prompt and framework assets.
qcsPlaywrightAutomation.agentPath agent/qcs-playwright-automation.agent.md Relative path to the agent prompt file inside the repository.
qcsPlaywrightAutomation.agentBranch master Git branch to read the agent prompt and framework templates from.

Prerequisites (End Users)

  • Emerson Network & ADO Authentication: Active connection to the Emerson network and Microsoft Entra ID authentication with read access to the Emerson Azure DevOps organization.
  • VS Code: Version ≥ 1.106.0 with GitHub Copilot enabled.
  • Node.js & npm: Node.js ≥ 18 and npm ≥ 9 (for local Playwright MCP execution).
  • Repo Access: Read access to the qcs-playwright-agent Azure DevOps repository (required to fetch private prompt & framework assets).

Build & Run

npm install
npm run compile      # Bundle TypeScript via esbuild
npm run watch        # Bundle in watch mode
# Press F5 to launch the Extension Development Host
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft