<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mredzmi on Medium]]></title>
        <description><![CDATA[Stories by Mredzmi on Medium]]></description>
        <link>https://medium.com/@mredzmi?source=rss-f1d07fb27ed3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7nFJ0vLH8chm-EOj</url>
            <title>Stories by Mredzmi on Medium</title>
            <link>https://medium.com/@mredzmi?source=rss-f1d07fb27ed3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 01:53:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mredzmi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From CI/CD Pipelines to Agentic QA: Automating Test Triage, Self-Healing, and On-Demand Testing]]></title>
            <link>https://aiqualityengineer.cc/from-ci-cd-pipelines-to-agentic-qa-automating-test-triage-self-healing-and-on-demand-testing-2a7a53238fdd?source=rss-f1d07fb27ed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a7a53238fdd</guid>
            <category><![CDATA[devin-ai]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Mredzmi]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 07:15:10 GMT</pubDate>
            <atom:updated>2026-10-22T12:55:17.979Z</atom:updated>
            <content:encoded><![CDATA[<p>Traditional test automation tells us when something fails.</p><p>But what happens next?</p><p>A QA engineer usually needs to investigate the failed test, review execution logs, identify the root cause, determine whether the failure is caused by a product defect or a flaky test, and decide what action to take.</p><p>This process can consume valuable engineering time, especially when regression suites run every night or across multiple environments.</p><p>I wanted to explore a different approach.</p><p><strong>What if a failed test could automatically trigger an AI agent to investigate the failure, attempt a safe automation fix, or create a bug when a genuine product issue is identified?</strong></p><p>And what if testers could trigger a test directly from an Azure DevOps Testing Task and receive the execution results without manually running the automation pipeline?</p><p>That is the idea behind my Agentic QA initiative, built around webhooks, AI agents, and an orchestrator workflow.</p><h3>1. What Is Agentic QA?</h3><p>Agentic QA extends traditional test automation by introducing an AI-driven workflow that can respond to events, investigate failures, and initiate appropriate actions.</p><p>Instead of stopping at a failed test result, the system can trigger an investigation workflow.</p><p>The AI agent analyses the available evidence, evaluates possible causes, and determines the next appropriate action based on predefined rules.</p><p>The objective is not simply to automate test execution. It is to reduce the manual work required to move from a test failure to an actionable outcome.</p><p>The approach connects existing QA infrastructure with an orchestrated AI workflow.</p><h3>2. Workflow One: Webhook-Triggered Agentic Triage</h3><p>Imagine a nightly regression pipeline running hundreds of automated tests.</p><p>Most tests pass, but a few fail.</p><p>Traditionally, someone needs to investigate those failures before the team knows whether the release is affected.</p><p>With webhook-triggered Agentic QA, a pipeline failure can initiate the triage process automatically.</p><h3>How the workflow works</h3><p><strong>Step 1: Automated tests run in the CI/CD pipeline</strong></p><p>The existing UI automation pipeline executes the regression suite as usual.</p><p>When a test fails, the pipeline captures the available execution evidence, such as test results, error messages, logs, and screenshots.</p><p><strong>Step 2: A webhook triggers the agentic workflow</strong></p><p>The pipeline sends an event through a configured webhook, initiating the Agentic QA workflow.</p><p>The webhook acts as the bridge between the test execution environment and the AI-powered investigation process.</p><p>Rather than requiring someone to manually copy the failure details into an AI assistant, the workflow starts automatically from the pipeline event.</p><p><strong>Step 3: The orchestrator coordinates the investigation</strong></p><p>An orchestrator manages the workflow and directs the AI agent through the investigation process.</p><p>The agent reviews the failure evidence and attempts to classify the issue.</p><p>For example:</p><ul><li>Is the failure caused by a potential product defect?</li><li>Is the test failing because of a changed locator or UI behaviour?</li><li>Is there evidence of an environment or dependency issue?</li><li>Does the failure resemble a previously identified problem?</li></ul><p>The classification is based on available evidence. The agent should not assume that every failed test is a product bug.</p><p><strong>Step 4: The agent determines the next action</strong></p><p>Depending on the findings, the workflow can proceed along different paths.</p><p><strong>Path A — Self-healing automation</strong></p><p>If the failure is attributed to a test automation issue, the agent can propose or attempt a controlled fix, such as updating an outdated locator.</p><p>Any change should be validated through appropriate checks and test execution. Where required, the fix should be submitted for human review rather than applied directly to a protected branch.</p><p><strong>Path B — Product bug creation</strong></p><p>If the evidence indicates a potential product defect, the workflow can create an Azure DevOps bug containing the relevant failure details, reproduction steps, execution evidence, and diagnostic findings.</p><p>This gives the development team an actionable starting point for investigation.</p><p><strong>Path C — Further investigation required</strong></p><p>If the available evidence is insufficient, the agent can report the uncertainty and request human investigation instead of making an unsupported decision.</p><p><strong>Step 5: Publish the outcome</strong></p><p>The workflow produces a triage result so the QA team can understand what failed, what the agent discovered, and what action was taken or recommended.</p><p>The key benefit is that investigation begins automatically after the pipeline reports a failure.</p><p>Instead of treating a failed test as the end of the automation process, the failure becomes the starting point for the next workflow.</p><h3>3. Workflow Two: Trigger Tests Directly from an Azure DevOps Testing Task</h3><p>The second workflow addresses a different problem.</p><p>Sometimes, a tester does not want to wait for the next scheduled regression pipeline. They want to execute a specific test when needed and obtain the result quickly.</p><p>For example, a tester may be validating a new feature, checking a reported defect, or performing a targeted regression test.</p><p>The idea is to let the tester initiate an agentic test workflow directly from an Azure DevOps Testing Task.</p><h3>How the workflow works</h3><p><strong>Step 1: The tester initiates a testing request</strong></p><p>The tester starts from the relevant Testing Task in Azure DevOps.</p><p>The request identifies the test or scenario to execute, together with the necessary context, such as the target environment and relevant work item.</p><p><strong>Step 2: The request triggers the orchestrator</strong></p><p>A webhook or configured integration passes the testing request to the orchestrator.</p><p>The orchestrator validates the request and determines which test scenario and execution workflow should be used.</p><p><strong>Step 3: The agent executes the test</strong></p><p>The workflow invokes the appropriate automation capability.</p><p>Depending on the implementation, this may involve running an existing automated test or using an AI agent to interact with the application through browser automation tools.</p><p>The agent follows the defined testing instructions, checks the expected outcomes, and captures execution evidence.</p><p><strong>Step 4: Results are returned</strong></p><p>Once execution finishes, the workflow collects the results and provides a response linked to the original testing request.</p><p>The tester can receive information such as:</p><ul><li>Overall execution status: PASS, FAIL, or BLOCKED.</li><li>Test steps and their actual outcomes.</li><li>Relevant logs, screenshots, or other evidence.</li><li>A reference to a generated report or associated bug, when applicable.</li></ul><p>Instead of manually launching a pipeline, locating the correct test run, and searching through execution logs, the tester gets a more direct path from the testing request to the result.</p><p>The exact level of integration depends on how the Azure DevOps work item, webhook, orchestrator, and execution pipeline are connected.</p><h3>4. Why an Orchestrator Matters</h3><p>Webhooks provide the trigger, but they are not the entire solution.</p><p>The orchestrator coordinates the workflow between the event source, AI agent, automation execution, and reporting system.</p><p>A simplified architecture looks like this:</p><pre>AZURE DEVOPS<br>                       |<br>             +---------+---------+<br>             |                   |<br>       CI/CD Pipeline       Testing Task<br>             |                   |<br>       Failure Event       Test Request<br>             |                   |<br>             +---------+---------+<br>                       |<br>                     Webhook<br>                       |<br>                 ORCHESTRATOR<br>                       |<br>              AI Agent / QA Logic<br>                       |<br>          +------------+------------+<br>          |            |            |<br>       Investigate   Execute      Validate<br>          |            |            |<br>       Triage       Test Run     Test Results<br>          |            |            |<br>          +------------+------------+<br>                       |<br>             +---------+---------+<br>             |                   |<br>        Self-heal*          Create Bug<br>             |<br>       Validate Fix</pre><pre>       *Subject to safeguards</pre><p>The orchestrator provides a central place to manage the workflow, including execution status, error handling, retries, timeouts, and the routing of results.</p><p>It also helps separate responsibilities.</p><p>The pipeline remains responsible for test execution. The webhook communicates the event. The orchestrator coordinates the next steps. The AI agent assists with investigation and decision-making. Azure DevOps remains the place where work items and testing activities are managed.</p><p>This separation makes the overall design easier to extend and maintain.</p><h3>5. Self-Healing Does Not Mean Uncontrolled Code Changes</h3><p>One important consideration is how the system handles automation fixes.</p><p>An AI agent may identify an outdated locator or a test that needs adjustment. However, a test failure does not automatically justify changing the test.</p><p>The underlying application may genuin</p><p>The underlying application may genuinely be broken.</p><p>A responsible self-healing workflow should therefore:</p><ol><li>Collect sufficient failure evidence.</li><li>2. Identify the likely cause and confidence level.</li><li>3. Propose a targeted change when appropriate.</li><li>4. Run validation and relevant regression tests.</li><li>5. Submit the change for review when required.</li><li>6. Preserve the original failure evidence and report the outcome.</li></ol><p>The same principle applies to bug creation. The agent should attach supporting evidence and avoid creating duplicate or poorly substantiated defects.</p><p>The goal is to automate repetitive investigation while keeping changes traceable and appropriately controlled.</p><p>6. The Business Value of Agentic QA</p><p>The two workflows solve complementary problems.</p><p>Webhook-triggered triage focuses on what happens after an automated test fails.</p><p>On-demand testing focuses on making it easier for a tester to request a test and receive its result.</p><p>Together, they create opportunities to improve several areas of QA operations:</p><p>Faster investigation: Failures can enter a triage workflow without waiting for someone to begin the investigation manually.</p><p>Less repetitive work: QA engineers can spend less time collecting logs, classifying familiar failures, and preparing initial bug reports.</p><p>More accessible test execution: Testers can initiate targeted testing through an existing work-item workflow.</p><p>Better evidence and traceability: Execution results, diagnostic findings, and bugs can be associated with the relevant testing request or pipeline run.</p><p>A foundation for continuous improvement: As the workflows mature, recurring failure patterns can inform better test coverage, automation maintenance, and regression strategies.</p><p>These are intended benefits, not guaranteed outcomes. Their actual impact depends on implementation quality, evidence availability, safeguards, and the accuracy of the agent’s analysis.</p><p>7. Moving Toward a More Autonomous QA Process</p><p>For me, the most interesting part of Agentic QA is the connection between systems that traditionally operate as separate steps.</p><p>A pipeline detects a failure. A webhook initiates an investigation. An orchestrator coordinates the process. An AI agent analyses the evidence. The workflow then routes the outcome toward a potential automation fix, a product bug, or further human investigation.</p><p>Separately, a tester can initiate a testing request and receive the results through a connected workflow.</p><p>This is a shift from automation that simply executes predefined steps toward a more connected QA process that can respond to events and coordinate follow-up actions.</p><p>It does not remove the need for QA engineers. Instead, it creates an opportunity to move their attention away from repetitive operational tasks and toward test strategy, risk analysis, quality engineering, and decisions that require human judgement.</p><p>The long-term vision is simple: when a test fails, the next step should not always depend on someone manually starting the investigation. And when a tester needs a test, getting the result should be as straightforward as initiating the request.</p><p>That is the direction I am exploring with Agentic QA – connecting CI/CD pipelines, webhooks, AI agents, and orchestrated workflows to make testing more responsive, traceable, and efficient.</p><p>The journey toward autonomous QA is not about removing humans from the loop. It is about building a system that knows when to act, when to validate, and when to ask for help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a7a53238fdd" width="1" height="1" alt=""><hr><p><a href="https://aiqualityengineer.cc/from-ci-cd-pipelines-to-agentic-qa-automating-test-triage-self-healing-and-on-demand-testing-2a7a53238fdd">From CI/CD Pipelines to Agentic QA: Automating Test Triage, Self-Healing, and On-Demand Testing</a> was originally published in <a href="https://aiqualityengineer.cc/">AI Quality Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Test Scripts to Autonomous QA: Building a Live Browser Testing Agent with Claude and…]]></title>
            <link>https://medium.com/@mredzmi/from-test-scripts-to-autonomous-qa-building-a-live-browser-testing-agent-with-claude-and-6abb81d45c69?source=rss-f1d07fb27ed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6abb81d45c69</guid>
            <category><![CDATA[playwrights]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Mredzmi]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 07:10:35 GMT</pubDate>
            <atom:updated>2026-10-22T07:10:35.342Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Test Scripts to Autonomous QA: Building a Live Browser Testing Agent with Claude and Playwright MCP</h3><p>As a QA engineer, I have spent years working with test scripts, automation frameworks, assertions, and CI/CD pipelines.</p><p>Traditional test automation is powerful. We define the steps, write the scripts, execute them, and review the results.</p><p>But I started asking myself a different question:</p><p><strong>What if an AI agent could execute a test, observe the application, make decisions based on what it sees, and verify the results — just like a human tester?</strong></p><p>That question inspired me to build <strong>MCP_Autonomous</strong>, a small proof of concept that combines Claude Code, Playwright MCP, and reusable Markdown-based testing instructions.</p><p>GitHub repository: <a href="https://github.com/mredzmi/MCP_Autonomous">https://github.com/mredzmi/MCP_Autonomous</a></p><h3>The Problem with Traditional Test Automation</h3><p>Imagine testing an e-commerce application.</p><p>A typical automated test might perform the following steps:</p><ol><li>Open the login page.</li><li>Enter a username and password.</li><li>Click the Login button.</li><li>Verify that the inventory page appears.</li><li>Sort products alphabetically.</li><li>Add a product to the shopping cart.</li><li>Verify that the cart contains the selected product.</li></ol><p>A conventional automation framework follows predefined instructions. This approach works well when the application behaves as expected.</p><p>However, when something unexpected happens, the test usually stops at a failed assertion.</p><p>The QA engineer must then investigate the failure, inspect screenshots or logs, and determine what went wrong.</p><p>Could an AI agent make this process more interactive by observing the application after each action and deciding what to do next?</p><p>That became the starting point for my experiment.</p><h3>Introducing MCP_Autonomous</h3><p>MCP_Autonomous is a small QA automation project designed to demonstrate how AI can interact with a live web application through browser automation tools.</p><p>The project combines three main components:</p><p><strong>1. Claude Code</strong></p><p>Claude Code acts as the AI agent. It reads the testing instructions, analyses the current browser state, decides which action to perform, and checks whether the expected result has occurred.</p><p><strong>2. Playwright MCP</strong></p><p>Playwright MCP provides the connection between the AI agent and the browser. Instead of relying entirely on a predefined test script, the agent can use browser tools to inspect the page, interact with elements, and capture screenshots.</p><p><strong>3. Markdown-based QA skills</strong></p><p>Test scenarios are stored as Markdown instructions. These describe the steps to execute, the expected results, and the rules the agent must follow.</p><p>This separation makes it easier to understand, maintain, and extend the testing process without putting every scenario into a large automation script.</p><h3>How Does It Work?</h3><p>The workflow is straightforward.</p><h3>Step 1: Define the Test Scenario</h3><p>I created a reusable smoke-test skill for SauceDemo, a demo e-commerce website.</p><p>The scenario covers login, product inventory, alphabetical sorting, and adding a product to the shopping cart.</p><p>The instructions define what needs to be verified, rather than relying only on a fixed sequence of browser commands.</p><h3>Step 2: Launch a Visible Browser</h3><p>The agent connects to Chromium through Playwright MCP.</p><p>One of the most interesting aspects of this setup is that the browser can run visibly on the desktop.</p><p>As the agent performs actions, I can watch the browser open, enter the application, interact with the interface, and move through the test scenario.</p><p>This makes the experiment more tangible than simply watching lines of code execute in a terminal.</p><h3>Step 3: Observe, Act, and Verify</h3><p>This is the core idea behind the approach.</p><p>After a significant browser action, the agent inspects the page and compares the actual state with the expected result.</p><p>For example, after logging in, it checks whether the inventory page is visible. After sorting products, it checks whether the names appear in ascending order. After adding a product to the cart, it checks whether the cart badge and selected product reflect the expected state.</p><p>The important distinction is that the agent is expected to verify what actually happened rather than assume that an action succeeded.</p><h3>Step 4: Capture Evidence and Generate a Report</h3><p>A test result is more useful when it comes with evidence.</p><p>The project is designed to save screenshots and generate a Markdown execution report for each agent-driven run.</p><p>Each step receives one of three statuses:</p><ul><li><strong>PASS</strong> — The actual result matches the expected result.</li><li><strong>FAIL</strong> — The actual result differs from the expected result.</li><li><strong>BLOCKED</strong> — The agent cannot safely continue or verify the result.</li></ul><p>The report includes the expected outcome, actual observation, status, and relevant screenshot reference.</p><p>This provides a starting point for reviewing the execution without relying solely on the agent’s final summary.</p><h3>AI-Driven Testing vs. Scripted Automation</h3><p>One important detail is that this repository supports two different execution modes.</p><p><strong>Scripted automation</strong> uses Playwright Test to execute predefined steps. This is deterministic, familiar, and useful for repeatable regression testing.</p><p><strong>AI-driven automation</strong> uses Claude Code with Playwright MCP. The agent reads a Markdown skill and interacts with the live browser by observing its state and selecting the next action.</p><p>These approaches solve related but different problems.</p><p>Scripted tests are valuable when we need consistent execution and predictable behaviour. AI-driven testing offers an opportunity to experiment with more flexible browser interaction and context-based decision-making.</p><p>They should not be confused, and the AI-driven approach does not automatically replace conventional automation.</p><p>In fact, I believe both can complement each other in a modern QA strategy.</p><h3>Why Is This Interesting for QA Engineers?</h3><p>For me, the interesting part is not simply asking AI to click buttons.</p><p>The real opportunity is connecting several activities that QA engineers normally perform:</p><p><strong>Understand the test → Interact with the application → Observe the result → Verify the outcome → Capture evidence → Produce a report.</strong></p><p>An AI agent can potentially coordinate more of this workflow.</p><p>It also opens the door to experimenting with reusable test instructions, scenario-specific skills, and AI-assisted investigation when an application behaves unexpectedly.</p><p>However, this is still an evolving approach. AI agents can make incorrect decisions, misinterpret page content, or fail to recognise subtle application defects. Their output must be reviewed, and critical assertions should remain explicit wherever possible.</p><p>Reliable QA still requires good test design, clear expectations, appropriate coverage, and trustworthy evidence.</p><h3>Safety and Control Matter</h3><p>Autonomous testing should not mean unrestricted testing.</p><p>The project includes rules designed to keep execution within defined boundaries.</p><p>For example, the agent should not perform destructive or irreversible actions without explicit approval. It should not bypass MFA, CAPTCHA, or SSO controls. It should also avoid exposing passwords, tokens, or other sensitive information in reports and logs.</p><p>For the demo scenario, checkout is intentionally excluded.</p><p>These safeguards are important because an agent that can interact with a browser needs clear instructions about what it is allowed to do.</p><h3>How to Try It Yourself</h3><p>You can explore the source code here:</p><p><strong>GitHub:</strong> <a href="https://github.com/mredzmi/MCP_Autonomous">https://github.com/mredzmi/MCP_Autonomous</a></p><p>The project is designed to run locally on Windows with Node.js, npm, Git, Claude Code, and Chromium.</p><p>After cloning the repository and installing the dependencies, you can start Claude Code from the project directory, confirm that Playwright MCP is connected, and ask Claude to read and execute the SauceDemo smoke-test skill in a visible browser.</p><p>The repository README contains the installation steps, configuration details, execution commands, and troubleshooting guidance.</p><p>The demo uses SauceDemo’s public test environment, so you can explore the workflow without connecting it to a real production application.</p><h3>What’s Next?</h3><p>This project is an experiment, not a claim that QA automation is already fully autonomous.</p><p>There is still plenty of room to improve how the agent handles failures, how evidence is reviewed, and how AI-driven testing fits into existing automation pipelines.</p><p>Some directions worth exploring include extending the skills to cover additional workflows, integrating execution reports into CI/CD, and using AI to assist with the investigation of failed tests.</p><p>The broader goal is to move beyond automation that only executes instructions and explore systems that can observe, reason, act, and verify within clearly defined boundaries.</p><p>For QA engineers, this creates an exciting question:</p><p><strong>What could our testing processes look like when AI becomes an active participant in test execution, rather than just a tool for generating test scripts?</strong></p><p>That is the idea behind MCP_Autonomous, and I am looking forward to exploring where this approach can go next.</p><p><em>This article describes a personal proof of concept. The project demonstrates an AI-driven browser testing workflow alongside conventional scripted tests; it does not claim that all tests are fully autonomous or that AI-generated results are infallible.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6abb81d45c69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Test Scripts to Autonomous QA: Building a Live Browser Testing Agent with Claude and…]]></title>
            <link>https://aiqualityengineer.cc/from-test-scripts-to-autonomous-qa-building-a-live-browser-testing-agent-with-claude-and-7af44f3a3aca?source=rss-f1d07fb27ed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7af44f3a3aca</guid>
            <category><![CDATA[playwright-automation]]></category>
            <category><![CDATA[autonomous-testing]]></category>
            <category><![CDATA[agentic-ai-architecture]]></category>
            <category><![CDATA[mcps]]></category>
            <dc:creator><![CDATA[Mredzmi]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 07:07:42 GMT</pubDate>
            <atom:updated>2026-10-22T07:07:42.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Test Scripts to Autonomous QA: Building a Live Browser Testing Agent with Claude and Playwright MCP</h3><p>As a QA engineer, I have spent years working with test scripts, automation frameworks, assertions, and CI/CD pipelines.</p><p>Traditional test automation is powerful. We define the steps, write the scripts, execute them, and review the results.</p><p>But I started asking myself a different question:</p><p><strong>What if an AI agent could execute a test, observe the application, make decisions based on what it sees, and verify the results — just like a human tester?</strong></p><p>That question inspired me to build <strong>MCP_Autonomous</strong>, a small proof of concept that combines Claude Code, Playwright MCP, and reusable Markdown-based testing instructions.</p><p>GitHub repository: <a href="https://github.com/mredzmi/MCP_Autonomous">https://github.com/mredzmi/MCP_Autonomous</a></p><h3>The Problem with Traditional Test Automation</h3><p>Imagine testing an e-commerce application.</p><p>A typical automated test might perform the following steps:</p><ol><li>Open the login page.</li><li>Enter a username and password.</li><li>Click the Login button.</li><li>Verify that the inventory page appears.</li><li>Sort products alphabetically.</li><li>Add a product to the shopping cart.</li><li>Verify that the cart contains the selected product.</li></ol><p>A conventional automation framework follows predefined instructions. This approach works well when the application behaves as expected.</p><p>However, when something unexpected happens, the test usually stops at a failed assertion.</p><p>The QA engineer must then investigate the failure, inspect screenshots or logs, and determine what went wrong.</p><p>Could an AI agent make this process more interactive by observing the application after each action and deciding what to do next?</p><p>That became the starting point for my experiment.</p><h3>Introducing MCP_Autonomous</h3><p>MCP_Autonomous is a small QA automation project designed to demonstrate how AI can interact with a live web application through browser automation tools.</p><p>The project combines three main components:</p><p><strong>1. Claude Code</strong></p><p>Claude Code acts as the AI agent. It reads the testing instructions, analyses the current browser state, decides which action to perform, and checks whether the expected result has occurred.</p><p><strong>2. Playwright MCP</strong></p><p>Playwright MCP provides the connection between the AI agent and the browser. Instead of relying entirely on a predefined test script, the agent can use browser tools to inspect the page, interact with elements, and capture screenshots.</p><p><strong>3. Markdown-based QA skills</strong></p><p>Test scenarios are stored as Markdown instructions. These describe the steps to execute, the expected results, and the rules the agent must follow.</p><p>This separation makes it easier to understand, maintain, and extend the testing process without putting every scenario into a large automation script.</p><h3>How Does It Work?</h3><p>The workflow is straightforward.</p><h3>Step 1: Define the Test Scenario</h3><p>I created a reusable smoke-test skill for SauceDemo, a demo e-commerce website.</p><p>The scenario covers login, product inventory, alphabetical sorting, and adding a product to the shopping cart.</p><p>The instructions define what needs to be verified, rather than relying only on a fixed sequence of browser commands.</p><h3>Step 2: Launch a Visible Browser</h3><p>The agent connects to Chromium through Playwright MCP.</p><p>One of the most interesting aspects of this setup is that the browser can run visibly on the desktop.</p><p>As the agent performs actions, I can watch the browser open, enter the application, interact with the interface, and move through the test scenario.</p><p>This makes the experiment more tangible than simply watching lines of code execute in a terminal.</p><h3>Step 3: Observe, Act, and Verify</h3><p>This is the core idea behind the approach.</p><p>After a significant browser action, the agent inspects the page and compares the actual state with the expected result.</p><p>For example, after logging in, it checks whether the inventory page is visible. After sorting products, it checks whether the names appear in ascending order. After adding a product to the cart, it checks whether the cart badge and selected product reflect the expected state.</p><p>The important distinction is that the agent is expected to verify what actually happened rather than assume that an action succeeded.</p><h3>Step 4: Capture Evidence and Generate a Report</h3><p>A test result is more useful when it comes with evidence.</p><p>The project is designed to save screenshots and generate a Markdown execution report for each agent-driven run.</p><p>Each step receives one of three statuses:</p><ul><li><strong>PASS</strong> — The actual result matches the expected result.</li><li><strong>FAIL</strong> — The actual result differs from the expected result.</li><li><strong>BLOCKED</strong> — The agent cannot safely continue or verify the result.</li></ul><p>The report includes the expected outcome, actual observation, status, and relevant screenshot reference.</p><p>This provides a starting point for reviewing the execution without relying solely on the agent&#39;s final summary.</p><h3>AI-Driven Testing vs. Scripted Automation</h3><p>One important detail is that this repository supports two different execution modes.</p><p><strong>Scripted automation</strong> uses Playwright Test to execute predefined steps. This is deterministic, familiar, and useful for repeatable regression testing.</p><p><strong>AI-driven automation</strong> uses Claude Code with Playwright MCP. The agent reads a Markdown skill and interacts with the live browser by observing its state and selecting the next action.</p><p>These approaches solve related but different problems.</p><p>Scripted tests are valuable when we need consistent execution and predictable behaviour. AI-driven testing offers an opportunity to experiment with more flexible browser interaction and context-based decision-making.</p><p>They should not be confused, and the AI-driven approach does not automatically replace conventional automation.</p><p>In fact, I believe both can complement each other in a modern QA strategy.</p><h3>Why Is This Interesting for QA Engineers?</h3><p>For me, the interesting part is not simply asking AI to click buttons.</p><p>The real opportunity is connecting several activities that QA engineers normally perform:</p><p><strong>Understand the test → Interact with the application → Observe the result → Verify the outcome → Capture evidence → Produce a report.</strong></p><p>An AI agent can potentially coordinate more of this workflow.</p><p>It also opens the door to experimenting with reusable test instructions, scenario-specific skills, and AI-assisted investigation when an application behaves unexpectedly.</p><p>However, this is still an evolving approach. AI agents can make incorrect decisions, misinterpret page content, or fail to recognise subtle application defects. Their output must be reviewed, and critical assertions should remain explicit wherever possible.</p><p>Reliable QA still requires good test design, clear expectations, appropriate coverage, and trustworthy evidence.</p><h3>Safety and Control Matter</h3><p>Autonomous testing should not mean unrestricted testing.</p><p>The project includes rules designed to keep execution within defined boundaries.</p><p>For example, the agent should not perform destructive or irreversible actions without explicit approval. It should not bypass MFA, CAPTCHA, or SSO controls. It should also avoid exposing passwords, tokens, or other sensitive information in reports and logs.</p><p>For the demo scenario, checkout is intentionally excluded.</p><p>These safeguards are important because an agent that can interact with a browser needs clear instructions about what it is allowed to do.</p><h3>How to Try It Yourself</h3><p>You can explore the source code here:</p><p><strong>GitHub:</strong> <a href="https://github.com/mredzmi/MCP_Autonomous">https://github.com/mredzmi/MCP_Autonomous</a></p><p>The project is designed to run locally on Windows with Node.js, npm, Git, Claude Code, and Chromium.</p><p>After cloning the repository and installing the dependencies, you can start Claude Code from the project directory, confirm that Playwright MCP is connected, and ask Claude to read and execute the SauceDemo smoke-test skill in a visible browser.</p><p>The repository README contains the installation steps, configuration details, execution commands, and troubleshooting guidance.</p><p>The demo uses SauceDemo&#39;s public test environment, so you can explore the workflow without connecting it to a real production application.</p><h3>What&#39;s Next?</h3><p>This project is an experiment, not a claim that QA automation is already fully autonomous.</p><p>There is still plenty of room to improve how the agent handles failures, how evidence is reviewed, and how AI-driven testing fits into existing automation pipelines.</p><p>Some directions worth exploring include extending the skills to cover additional workflows, integrating execution reports into CI/CD, and using AI to assist with the investigation of failed tests.</p><p>The broader goal is to move beyond automation that only executes instructions and explore systems that can observe, reason, act, and verify within clearly defined boundaries.</p><p>For QA engineers, this creates an exciting question:</p><p><strong>What could our testing processes look like when AI becomes an active participant in test execution, rather than just a tool for generating test scripts?</strong></p><p>That is the idea behind MCP_Autonomous, and I am looking forward to exploring where this approach can go next.</p><p><em>This article describes a personal proof of concept. The project demonstrates an AI-driven browser testing workflow alongside conventional scripted tests; it does not claim that all tests are fully autonomous or that AI-generated results are infallible.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7af44f3a3aca" width="1" height="1" alt=""><hr><p><a href="https://aiqualityengineer.cc/from-test-scripts-to-autonomous-qa-building-a-live-browser-testing-agent-with-claude-and-7af44f3a3aca">From Test Scripts to Autonomous QA: Building a Live Browser Testing Agent with Claude and…</a> was originally published in <a href="https://aiqualityengineer.cc/">AI Quality Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>