<?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 Purushotham Vilasagaram on Medium]]></title>
        <description><![CDATA[Stories by Purushotham Vilasagaram on Medium]]></description>
        <link>https://medium.com/@purushotham.sdet?source=rss-c42b16743375------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Q2Ienji9g_hr15E5</url>
            <title>Stories by Purushotham Vilasagaram on Medium</title>
            <link>https://medium.com/@purushotham.sdet?source=rss-c42b16743375------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:05:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@purushotham.sdet/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[How I Moved Hundreds of Legacy Test Scripts to Robot Framework Using MCP Tools and AI Agents]]></title>
            <link>https://medium.com/@purushotham.sdet/how-i-moved-hundreds-of-legacy-test-scripts-to-robot-framework-using-mcp-tools-and-ai-agents-37e333ba0122?source=rss-c42b16743375------2</link>
            <guid isPermaLink="false">https://medium.com/p/37e333ba0122</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[robot-framework]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Purushotham Vilasagaram]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 08:04:13 GMT</pubDate>
            <atom:updated>2026-10-12T08:04:13.357Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A practical, step-by-step account of an approach I came up with and put into practice.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQEI_30Qh15Lx9JhCruQSw.png" /></figure><h3>Why I started</h3><p>Our nightly regression suite was written in VB6 and an old tool called Visual Test. It worked, but it was getting harder to maintain every year. The tools are outdated, very few people understand the code, and it does not fit modern CI/CD.</p><p>I wanted Robot Framework to be the one framework we use for everything. The problem was size. There were hundreds of tests, and doing the conversion by hand would have taken months.</p><p>So I stopped thinking of it as rewriting every script and started thinking of it as building a process that rewrites scripts for me. This article explains that process. I came up with the idea, built the tools, and ran it myself, so I will share what worked and what went wrong.</p><h3>What the old tests looked like</h3><p>Before automating anything, I studied how the old suite was put together. It had a simple, repeating pattern:</p><ul><li>A master list (a CSV file) pointed to smaller lists, which pointed to individual suites.</li><li>Each row launched a VB6 program with a switch.</li><li>That program jumped to a Sub (a VB6 function) that drove the application using COM calls and Win32 clicks.</li><li>Most of the real logic was not in the tests. It lived in about 25 shared helper classes for things like dialogs, menus and toolbars.</li></ul><p>This told me two things. First, the tests themselves are small, so the helper classes are the real work. Second, the pattern is so regular that a program can read it reliably. That made automation realistic.</p><p>On the Robot Framework side, I wanted three things: one Python function per VB6 Sub, the helper classes ported to Python, and an Excel test plan with one case per original row.</p><h3>The idea in one sentence</h3><p>Give an AI assistant proper tools, let several agents do the safe offline work in parallel, and keep one human in charge of anything that touches the real machine.</p><p>That has three parts:</p><ol><li><strong>Custom MCP tools.</strong> These let the AI read the old code, convert it, build plans and run tests in a structured way.</li><li><strong>Parallel AI agents.</strong> Each one ports a group of suites offline, without touching the application.</li><li><strong>Me, plus an AI assistant, doing live runs.</strong> One at a time, on the test machine, fixing what breaks.</li></ol><h3>My six-step pipeline</h3><p>Every suite goes through the same six steps.</p><ol><li><strong>Scope.</strong> First I find out exactly what is in a master list: which suites, how many tests are enabled, and what language each is written in. A tool does this in seconds instead of me opening nested CSV files.</li><li><strong>Readiness check.</strong> For each suite, a tool tells me which Subs it uses, how much code it touches, what is left unconverted, and which helper classes are still missing. This decides the order of work and how to share it between agents.</li><li><strong>Convert.</strong> A converter turns the VB6 into Python. It handles the awkward parts: by-reference parameters, optional arguments, VB error handling and built-in VB functions. My target for every suite is zero unresolved TODOs.</li><li><strong>Port the helper classes.</strong> This is the slow, important part. Once a dialog or menu helper is ported, every later suite reuses it, so each suite gets easier than the last.</li><li><strong>Build the plan and dry run.</strong> A tool generates the Excel test plan from a small JSON description. Then Robot’s dry-run mode checks every keyword and argument without opening the application.</li><li><strong>Live run and fix.</strong> I run one converted scenario at a time against the real application and read the traceback. When something fails, I fix the shared helper rather than the single test, then re-run.</li></ol><p>One lesson here saved me a lot of pain. Generated code gets regenerated, which wipes manual fixes. So each suite has a small post-process script that re-applies my hand edits after every regeneration, and those lines are clearly marked. This keeps the output repeatable.</p><h3>The tools I built</h3><p>My rule was simple: if I do the same step twice, it becomes a tool. All of them live in one MCP server. Here is what they cover, in plain terms:</p><ul><li><strong>Finding things out:</strong> expand a master list, look up past results, and check how ready each suite is.</li><li><strong>Reading old code:</strong> show a Sub, its body, or everything it calls, without opening dozens of files.</li><li><strong>Converting and planning:</strong> the VB6-to-Python converter and the test plan generator.</li><li><strong>Running:</strong> run one scenario with a full traceback, or run a whole plan and summarise the results.</li><li><strong>Inspecting the application:</strong> read the controls on a dialog, or read and write process values, without clicking anything.</li><li><strong>Visual Test and documents:</strong> the same ideas for Visual Test suites, plus a reader for our Word test documents.</li></ul><p>I followed two design rules. The tools only read, and never click or press keys unless asked. And tests and tools share the same building blocks, so fixing one improves the other.</p><h3>Why the MCP tools make the biggest difference</h3><p>If I had only asked Claude to convert these scripts, it would have had to open source files, follow call chains and work out the structure every single time. That is slow, and it uses a lot of context for work that does not need intelligence.</p><p>The MCP tools take that work away. Anything that is repeatable and has a clear right answer is done by a tool. Claude only handles what needs judgement. In practice this gave me four benefits:</p><ul><li><strong>Less reading, fewer tokens.</strong> One tool call returns exactly the Sub or call tree Claude needs, instead of dozens of files being pulled into the conversation.</li><li><strong>Consistent results.</strong> The converter and the plan generator behave the same way every time, so I do not depend on Claude getting the same answer twice.</li><li><strong>Smaller, focused tasks.</strong> With scoping and readiness reports ready, I can give each agent a clear piece of work. They spend their effort on porting, not on figuring out what to port.</li><li><strong>Fast fixes.</strong> When something fails, one tool returns the traceback and logs in about a minute. I do not need to run a whole plan to see one error.</li></ul><p>The tools also keep Claude safe to use on a real machine. They only read and inspect, so Claude can look at a dialog or a process value without changing anything.</p><h3>How I use the agents</h3><p>Converting code is offline work. Running tests is not, because there is only one desktop and one application instance. So I split the work like this:</p><ul><li><strong>3 to 5 agents per test list</strong>, all working in parallel and offline. Each owns whole suites and the new files for them, so they never edit the same thing.</li><li><strong>One live runner</strong>, which is my main AI session working with me on the test machine.</li></ul><p>I group the agents by theme, for example one on charts, one on picture verification, one on expert dialogs, and one on drag and drop. That way each agent builds up knowledge of a related set of helpers.</p><p>The speed surprised me. One list of 137 tests was ported offline by five agents in a day. Another list of 176 tests was ported by three agents in about 40 minutes of real time. Live testing is slower, because it is limited by the one machine.</p><h3>Why converting offline saves time and cost</h3><p>Most of the conversion does not need the application at all. Reading VB6, writing Python, building plans and running a dry run are all offline steps. Keeping them offline had clear advantages:</p><ul><li><strong>No waiting for the test machine.</strong> There is only one desktop and one application instance, so live work cannot be shared. Offline work can, so several agents work at the same time.</li><li><strong>No licence or machine usage during conversion.</strong> Nothing is started, so the expensive resource is used only for real validation.</li><li><strong>Problems are caught early.</strong> A dry run checks every keyword and argument before anything is launched, so a typo does not cost a long live run.</li><li><strong>Live time is spent only on real failures.</strong> By the time I run a scenario against the application, it is already structurally correct. What is left are genuine behaviour differences, and those are the interesting bugs.</li><li><strong>Fixes are made once.</strong> Because the helper classes are shared, one fix in a dialog helper repairs every suite that uses it.</li><li><strong>Safer.</strong> Offline agents cannot change the machine, so the risky steps are limited to the one live session I supervise.</li></ul><p>I have not measured exact savings in money, but the difference is easy to see in time. Hundreds of tests were converted in days, and the ones that took longest were the live ones, which is where the single machine is the limit.</p><h3>Using Claude effectively</h3><p>Looking back, the way I used Claude mattered as much as the tools. These are the habits that worked:</p><ol><li><strong>Give Claude tools, not just instructions.</strong> A tool that returns a clean answer is cheaper and more reliable than asking Claude to work it out.</li><li><strong>Split the work by type.</strong> Parallel agents handle offline porting. One live session handles debugging with me.</li><li><strong>Keep each agent’s job small and owned.</strong> Whole suites, their own files, a clear definition of done.</li><li><strong>Put the rules in writing and in the tools.</strong> Agents follow the same offline-only rules every time.</li><li><strong>Use Claude for judgement and let tools handle the repeatable steps.</strong> That is where it adds the most value.</li><li><strong>Review everything.</strong> I read the output and decide what to keep.</li></ol><h3>The rules I give every agent</h3><p>Speed is nice, but the rules matter more. Every agent gets the same ones:</p><ul><li><strong>Offline only.</strong> Do not start the application, run UI automation, run Robot for real, or change registry and configuration files.</li><li><strong>Flag risky steps, do not add them.</strong> Anything that switches environments, saves databases, edits settings or kills processes goes to me for a decision.</li><li><strong>Small, additive edits to shared files.</strong> Re-read the file before each edit and never reformat it. New classes go in new files.</li><li><strong>Finish properly.</strong> Delivered means generated code, a regeneration script, post-process patches, a passing dry run and a short report.</li><li><strong>No commits.</strong> A person reviews everything.</li></ul><h3>What went wrong</h3><p>I did not start with these rules. They came from mistakes.</p><p>In one session, a setup step written by an agent ran without approval and changed an environment setting on the test machine. In another, a bug in a backup path overwrote a test picture. I restored it, but it was a clear warning.</p><p>Here is what I changed afterwards:</p><ul><li>Risky environment switches are blocked unless I explicitly turn them on.</li><li>Anything is backed up before it is changed, and an existing backup is never overwritten.</li><li>Database imports only touch the running database. Nothing is saved permanently.</li><li>Automation never force-kills the application. It closes it normally and answers No to save prompts.</li><li>Every run ends with a check for leftover dialogs, so a stuck pop-up cannot hide behind later failures.</li></ul><p>The lesson for me: the more freedom you give an agent, the more the safety has to be built into the tools, not just written in instructions.</p><h3>Where it stands</h3><p>In about a week, every enabled test across four test lists was ported, and all generated plans passed a dry run. Live results are good but not finished. One list passes almost everything with a few cases parked for licensing reasons, another is fully passing after fixes, and the rest are being stabilised. Still ahead: stable console runs, 64-bit validation and CI/CD integration.</p><h3>What I would tell you if you try this</h3><ol><li>Study the structure of your old code first. Regular patterns are a gift.</li><li>Port the shared helpers early. They are the bottleneck.</li><li>Turn every repeated step into a tool.</li><li>Keep offline work parallel and live work one at a time.</li><li>Keep generated code repeatable with post-process patches.</li><li>Build safety into the tools, not only the prompts.</li><li>Always review the output yourself.</li></ol><p>AI did not do this for me. It did the repetitive work faster, while I designed the process, set the rules and checked the results. If you have a big migration waiting, I hope this gives you a starting point.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37e333ba0122" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLM + MCP = AI Agent: What It Means for Testers]]></title>
            <link>https://medium.com/@purushotham.sdet/llm-mcp-ai-agent-what-it-means-for-testers-32be543b247d?source=rss-c42b16743375------2</link>
            <guid isPermaLink="false">https://medium.com/p/32be543b247d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Purushotham Vilasagaram]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 08:55:41 GMT</pubDate>
            <atom:updated>2026-10-03T08:55:41.589Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lG7Pg6GNTw_uTTZhsH4iqQ.png" /></figure><p>You’ve probably seen the words LLM, MCP, and AI agent everywhere. They sound like three separate big ideas, but they fit together in a simple way. Once I understood how, it changed how I use AI in testing.</p><h3>What is an LLM?</h3><p>An LLM (Large Language Model) is the AI model itself, like Claude. It reads text, understands it, and writes a response.</p><p>On its own, it can do a lot of useful things for testers:</p><ul><li>Write test cases from a requirement</li><li>Read a failure log and explain what went wrong</li><li>Suggest edge cases you missed</li><li>Generate test data</li></ul><p>But there’s a limit. On its own, an LLM can only talk. It can tell you which button to click, but it can’t click it. Think of it as a very smart brain with no hands.</p><h3>What is MCP?</h3><p>MCP (Model Context Protocol) is a standard way to give an LLM tools it can use. It was introduced by Anthropic as an open standard.</p><p>A tool can be almost anything: open a browser, click a button, read a file, query a database, create a bug in your issue tracker. With MCP, the LLM doesn’t just suggest an action. It calls a tool that actually performs it, and gets the result back.</p><p>If the LLM is the brain, MCP is how you connect it to hands. You can think of it like a USB port: one standard way to plug different tools into the same AI.</p><h3>What is an AI agent?</h3><p>An AI agent is what you get when you combine the two and let the AI work toward a goal on its own.</p><p>An agent works in a loop:</p><ol><li><strong>Understand the goal.</strong> For example, “Check that the login and search features work.”</li><li><strong>Decide the next step.</strong> The LLM thinks about what to do first.</li><li><strong>Use a tool.</strong> It calls an MCP tool, like opening the page or filling a field.</li><li><strong>Look at the result.</strong> It reads what came back.</li><li><strong>Repeat or finish.</strong> It keeps going until the goal is done, then reports back.</li></ol><p>So the simple formula is:</p><p><strong>LLM (thinking) + MCP (tools) = AI agent (thinks, acts, checks, repeats)</strong></p><p>A chatbot answers your question. An agent gets the job done.</p><h3>How can we use this in testing?</h3><p>Here are practical ways a tester can use an agent today.</p><p><strong>1. Exploring a new feature.</strong><br> Give the agent a browser tool, like Playwright MCP, and ask it to explore the feature and report what works and what doesn’t. This is great for first-time exploration, when you don’t know the app well yet.</p><p><strong>2. Running repeated checks.</strong><br> This is what I covered in my last article. Explore once, turn the stable steps into small custom MCP tools, and let the agent call them. The tools do the clicking, and the agent only reads the short results. This saves tokens and keeps tests repeatable.</p><p><strong>3. Analyzing results and failures.</strong><br> Agents are good at reading logs, comparing expected and actual results, and guessing likely causes. This is where the LLM’s thinking matters most.</p><p><strong>4. Logging issues.</strong><br> Connect a tool for your issue tracker or test management system, and the agent can write up the defect with steps and details, then log it for you.</p><p><strong>5. Writing and improving tests.</strong><br> The agent can explore the real application, then write test cases or automation scripts based on what it actually saw, instead of guessing from a requirement alone.</p><h3>A simple example workflow</h3><ol><li>I start a debug browser session and log in.</li><li>I ask the agent to run a set of checks on a feature.</li><li>The agent calls my MCP tools to do the repetitive steps.</li><li>It reads the results and decides if anything looks wrong.</li><li>It logs the issues with the details.</li></ol><p>I’m not clicking through the app. I’m reviewing what the agent found.</p><h3>Pros and cons</h3><h4>Pros</h4><ul><li><strong>Saves time on repetitive work.</strong> The agent handles the routine steps.</li><li><strong>Good at analysis.</strong> It can read a lot of output and spot patterns quickly.</li><li><strong>Flexible.</strong> You can add new tools as your needs grow.</li><li><strong>Works with your own setup.</strong> You can build tools that fit your application.</li></ul><h4>Cons</h4><ul><li><strong>It can make mistakes.</strong> The agent can misread a result or take a wrong step, so a human still needs to review.</li><li><strong>Cost can add up.</strong> Open-ended exploration uses a lot of tokens.</li><li><strong>Setup takes effort.</strong> Building and testing tools takes time.</li><li><strong>Be careful with access.</strong> Only give the agent the tools and permissions it really needs, especially on real systems and data.</li></ul><h3>Tips if you want to start</h3><ul><li><strong>Start small.</strong> Try one tool and one simple task first.</li><li><strong>Use the agent for thinking, tools for repeating.</strong> Don’t pay for the agent to rediscover the same steps every time.</li><li><strong>Keep tool results short.</strong> Compact results save tokens and are easier to analyze.</li><li><strong>Always review.</strong> Treat the agent’s findings as a strong first pass, not the final word.</li></ul><p><strong>Related reading:</strong> In my earlier article, <a href="https://medium.com/@purushotham.sdet/creating-your-own-mcp-tools-for-your-web-application-testing-29fc96f27616">Creating Your Own MCP Tools for Your Web Application Testing</a>, I explain how I turned repeated test steps into reusable MCP tools.</p><h3>Final thoughts</h3><p>The idea that finally made this click for me: <strong>an LLM thinks, MCP lets it act, and together they make an agent.</strong></p><p>As testers, our job isn’t going away. It’s shifting from doing every click ourselves to designing good tools, guiding the agent, and judging the results. That’s a more interesting job.</p><p>If you’re using AI agents in your testing, I’d love to hear how. Share your experience in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32be543b247d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Your Own MCP Tools for Your Web Application Testing]]></title>
            <link>https://medium.com/@purushotham.sdet/creating-your-own-mcp-tools-for-your-web-application-testing-29fc96f27616?source=rss-c42b16743375------2</link>
            <guid isPermaLink="false">https://medium.com/p/29fc96f27616</guid>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Purushotham Vilasagaram]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 23:45:24 GMT</pubDate>
            <atom:updated>2026-10-03T08:37:07.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TpzRCr2VUQFmpKGhZg6i4A.png" /></figure><p>I started using Claude for testing, and it worked well. Then I noticed it was costing me more than it should. This is how I fixed that by building my own MCP tools, and how you can do the same.</p><h3>Where I started</h3><p>I opened a debug Edge session, logged into my application myself, and asked Claude to explore the app and test it. It did exactly what I asked. It clicked through pages, tried different flows, and told me what worked and what didn’t.</p><h3>Where it got expensive</h3><p>The next time I wanted to test the same features, Claude had to do the whole thing again. It explored the pages, worked out the flow, and only then ran the checks. Every run used a lot of tokens, and I wasn’t asking for anything new.</p><p>Regression testing means repeating the same checks, so this cost would keep growing.</p><h3>The real cost: rediscovery</h3><p>Eventually I realized the tokens weren’t going into testing. They were going into figuring out my application again each time: which page, which button, which field, in what order.</p><p>That discovery work only needs to happen once. What actually needs intelligence is reading the results and deciding whether something is wrong.</p><h3>What are MCP tools?</h3><p>MCP (Model Context Protocol) lets you give Claude a set of tools it can call. Instead of working out every click itself, Claude calls a tool that already knows how to do the job.</p><p>For testing, that means turning the steps Claude figured out once into tools you can run again and again.</p><h3>How to create your own MCP tools for testing</h3><p>This is the approach I followed, with Claude’s help at every step:</p><ol><li><strong>Let Claude explore first.</strong> Start a debug Edge session, log in, and let Claude explore and test the feature once.</li><li><strong>Pick the stable, repeated steps.</strong> Look for steps you’ll run over and over, like opening a module or running a feature check.</li><li><strong>Turn each into a small tool.</strong> Ask Claude to help you build each step as its own MCP tool. Keep each one focused on a single job.</li><li><strong>Return short results.</strong> Have each tool return a compact result (pass/fail plus key details) instead of dumping everything it saw.</li><li><strong>Test each tool on its own.</strong> Make sure it works alone before combining it with others.</li><li><strong>Let Claude orchestrate.</strong> Ask Claude to call the tools and then analyze and log any issues.</li></ol><h3>How it works for me now</h3><ol><li>I start the debug Edge session and log in.</li><li>I ask Claude to run a set of checks.</li><li>Claude calls my MCP tools, which do the repetitive steps.</li><li>Claude reads the results, analyzes them, and logs any issues.</li></ol><p>I can now run the same tests as many times as I want, and token usage is much lower, because Claude is only doing analysis and logging.</p><h3>Pros and cons</h3><h4>Pros</h4><ul><li><strong>Lower token usage.</strong> Claude only reads short results instead of re-exploring the app.</li><li><strong>Repeatable tests.</strong> The same tool runs the same steps the same way each time.</li><li><strong>Faster runs.</strong> Known steps run in code instead of being reasoned through each time.</li><li><strong>Claude focuses on analysis.</strong> Its effort goes into understanding results and logging issues.</li><li><strong>Easy to maintain and combine.</strong> Small tools are simple to fix and reuse.</li></ul><h4>Cons</h4><ul><li><strong>Upfront effort.</strong> Building and testing the tools takes time before you see savings.</li><li><strong>Maintenance.</strong> When the UI changes, tools that depend on it can break.</li><li><strong>Only covers what’s automated.</strong> New features still need exploration first.</li><li><strong>Less flexible than open exploration.</strong> A tool checks only what it was built to check, so it can miss unexpected problems.</li><li><strong>Tool design matters.</strong> If a tool returns too much output, the token savings disappear.</li><li><strong>Some manual setup.</strong> I still log in to the debug session myself.</li></ul><h3>Tips if you try this</h3><ul><li>Explore once, automate after.</li><li>Build small tools, not one big one.</li><li>Keep tool results short and structured.</li><li>Use the tools for repetition and Claude for judgment.</li></ul><h3>Resources to get started</h3><p>If you want to build your own MCP tools, these are good places to start:</p><ul><li><strong>Official MCP documentation:</strong> The quickstart for building a server, with Python and TypeScript examples. It also covers the MCP Inspector, which lets you test each tool on its own. <a href="https://modelcontextprotocol.io/">https://modelcontextprotocol.io</a></li><li><strong>MCP for Beginners (Microsoft):</strong> A step-by-step course on building a first MCP server, adding tools, and testing them. <a href="https://github.com/microsoft/mcp-for-beginners/blob/main/03-GettingStarted/01-first-server/README.md">https://github.com/microsoft/mcp-for-beginners/blob/main/03-GettingStarted/01-first-server/README.md</a></li><li><strong>Playwright documentation (connectOverCDP):</strong> How automation can attach to an already-open browser through a debug port. <a href="https://playwright.dev/docs/api/class-browsertype#browser-type-connect-over-cdp">https://playwright.dev/docs/api/class-browsertype#browser-type-connect-over-cdp</a></li><li><strong>Related article:</strong> Stop Logging In Again: Attach Your Automation to an Already-Open Browser. <a href="https://medium.com/@purushotham.sdet/stop-logging-in-again-attach-your-automation-to-an-already-open-browser-9de490a84362">https://medium.com/@purushotham.sdet/stop-logging-in-again-attach-your-automation-to-an-already-open-browser-9de490a84362</a></li></ul><h3>Final thoughts</h3><p>The biggest shift for me was how I think about AI in testing. I stopped treating Claude as the thing that does every click, and started treating it as the thing that makes sense of the results.</p><p>If you test a web application with an AI assistant and keep paying for the same exploration, try building your own tools. I’d love to hear how others are approaching this. Share your experience in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29fc96f27616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Set Up My Own AI Model on AWS So I’d Stop Paying Per Token. Here’s What Actually Happened.]]></title>
            <link>https://medium.com/@purushotham.sdet/i-set-up-my-own-ai-model-on-aws-so-id-stop-paying-per-token-here-s-what-actually-happened-ee0229f66eba?source=rss-c42b16743375------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee0229f66eba</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Purushotham Vilasagaram]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 17:02:36 GMT</pubDate>
            <atom:updated>2026-10-02T17:02:36.105Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S7l0WMSByVSSBHYKIbas4w.png" /></figure><p>I work in test automation, and I lean on AI tools a lot: writing test cases, reading through failure logs, generating test data. At some point I started wondering what it would take to run a model of my own, so that heavy use wouldn’t mean watching a token counter.</p><p>My first idea was a model running fully offline on my own computer. Then I wondered about the cloud instead. Could I rent a small server, install an open-source model on it, and use it from my laptop? Yes, you can. It took an afternoon, and I hit enough walls that I thought the steps were worth writing down properly.</p><h3>The plan</h3><ul><li>An Ubuntu server on AWS running <strong>Ollama</strong>, a tool for running open-source models</li><li>A small coding model that fits in about 8 GB of RAM</li><li>A private connection from my laptop using an <strong>SSH tunnel</strong>, so nothing is exposed to the internet</li><li>A chat window in the browser, and the <strong>Continue</strong> extension inside VS Code</li></ul><p>One thing to be upfront about: a model hosted in the cloud needs an internet connection to reach it. If you need something that works with no internet at all, run Ollama on your own computer instead. I’ll come back to this in the pros and cons.</p><h3>Step 1: Launch the instance (and don’t forget the key pair)</h3><p>In the EC2 console I launched an Ubuntu instance with about 8 GB of RAM. My first mistake was launching it <strong>without a key pair</strong>.</p><p>A key pair is the .pem file you use to log in over SSH, and AWS lets you download it exactly once, at creation. You can&#39;t attach one to an instance that&#39;s already running, so I had to create a key pair and launch again. Save yourself the trouble: when you launch, choose <strong>Create new key pair</strong>, pick the .pem format, and store the file somewhere safe straight away.</p><p>I also raised the disk from the default 8 GB to <strong>30 GB</strong>. Models take 2 to 5 GB each, and the default fills up faster than you’d think.</p><h3>Step 2: Log in with SSH, and fix the Windows permission error</h3><p>From PowerShell:</p><pre>ssh -i &quot;C:\path\to\your-key.pem&quot; ubuntu@&lt;public-ip&gt;</pre><p>On Windows I immediately got a scary-looking <strong>“UNPROTECTED PRIVATE KEY FILE”</strong> warning. SSH refuses to use a key that other users on your PC can read. The fix is to remove everyone else’s access:</p><pre>icacls &quot;C:\path\to\your-key.pem&quot; /inheritance:r<br>icacls &quot;C:\path\to\your-key.pem&quot; /remove &quot;Users&quot; &quot;Authenticated Users&quot; &quot;Everyone&quot;<br>icacls &quot;C:\path\to\your-key.pem&quot; /grant:r &quot;$($env:USERNAME):(R)&quot;</pre><p>After that it connected. One thing to remember: the instance’s public IP changes whenever you stop and start it, unless you attach an Elastic IP.</p><h3>Step 3: Making the extra disk space usable</h3><p>Here’s something that confused me. I increased the volume to 30 GB in the AWS console, and Ubuntu still showed the old size. Resizing the volume in AWS is only half the job. You also have to grow the partition and the filesystem inside the machine:</p><pre>lsblk<br>sudo growpart /dev/nvme0n1 1<br>sudo resize2fs /dev/nvme0n1p1<br>df -h /</pre><p>Use the device names that lsblk shows you, since they differ by instance type. When df -h / shows around 28 to 30 GB, you&#39;re good.</p><h3>Step 4: Install Ollama and pick a model</h3><p>Installing Ollama is one command:</p><pre>curl -fsSL https://ollama.com/install.sh | sh</pre><p>Choosing a model is where your hardware matters. My instance had about 7.6 GiB of RAM and no GPU. For coding, the Qwen2.5-Coder family is widely recommended as the best small coding line, and it comes in several sizes. My picks:</p><ul><li><strong>qwen2.5-coder:3b</strong> (about 2 GB): comfortable and usable</li><li><strong>qwen2.5-coder:7b</strong> (about 4.7 GB): better code, but tight on memory and slow on CPU</li></ul><pre>ollama pull qwen2.5-coder:3b<br>ollama run qwen2.5-coder:3b</pre><p>I typed “Hi” and it answered. That was a good moment. Replies come slowly on CPU, which I’ll explain below. When you want to clean up, ollama list shows what you have and ollama rm &lt;model&gt; deletes one.</p><h3>Step 5: Connecting from my laptop with an SSH tunnel</h3><p>By default, Ollama only listens on the server itself, and that’s exactly what you want. Ollama has no login of its own, so <strong>never open its port (11434) in your AWS security group.</strong> Instead, I forwarded the port through the SSH connection I already had:</p><pre>ssh -i &quot;C:\path\to\your-key.pem&quot; -o ServerAliveInterval=30 -N -L 11434:localhost:11434 ubuntu@&lt;public-ip&gt;</pre><p>The window looks like it’s hanging, and that’s normal. Leave it open. Now http://localhost:11434 on my laptop talks to the model in the cloud. You can test it with:</p><pre>curl.exe http://localhost:11434/api/tags</pre><p>The ServerAliveInterval flag is there because my connection dropped once with a &quot;client_loop: send disconnect&quot; error. Keepalives help with idle timeouts.</p><h3>Step 6: A chat window (and the two things that broke)</h3><p>I wanted a ChatGPT-style interface, so I tried <strong>Open WebUI</strong>. Two things went wrong:</p><ol><li><strong>Docker wasn’t installed</strong> on my PC, so the usual one-line Docker command failed.</li><li><strong>My Python was too new.</strong> Open WebUI supports Python 3.11 and 3.12, and I had 3.14, so pip said no matching version existed.</li></ol><p>The fix was a virtual environment with Python 3.12:</p><pre>winget install Python.Python.3.12<br>py -3.12 -m venv $HOME\webui-env<br>&amp; &quot;$HOME\webui-env\Scripts\Activate.ps1&quot;<br>pip install open-webui<br>open-webui serve</pre><p>Notice the &amp; before the activate script. PowerShell throws a confusing parser error without it. I also hit a hash mismatch error during the install. That usually means a corrupted download, and the safe fix is pip cache purge followed by pip install --no-cache-dir open-webui, not bypassing the check.</p><p>Once it ran, I opened http://localhost:8080, made a local account, and my models showed up in the dropdown. If that sounds like too much, browser extensions like Page Assist or desktop apps like Chatbox connect to the same tunnel with no Python at all.</p><h3>Step 7: Using it inside VS Code with Continue</h3><p>This is the part that made the setup feel useful day to day. <strong>Continue</strong> is a free VS Code extension that gives you a chat panel, code edits, and optional autocomplete, and it can use any Ollama server, including one reached through your tunnel.</p><p><strong>1. Keep the tunnel running.</strong> Continue talks to http://localhost:11434, so the SSH tunnel from Step 5 has to be open.</p><p><strong>2. Install the extension.</strong> In VS Code, open Extensions, search for “Continue”, and install it.</p><p><strong>3. Open its config.</strong> Click the Continue icon in the sidebar, then the gear icon, and choose to open the config file. In recent versions this is a file called config.yaml inside a .continue folder in your home directory.</p><p><strong>4. Point it at your model.</strong> Replace the contents with something like this:</p><pre>name: Cloud Ollama<br>version: 1.0.0<br>schema: v1<br>models:<br>  - name: Qwen2.5 Coder 3B (AWS)<br>    provider: ollama<br>    model: qwen2.5-coder:3b<br>    apiBase: http://localhost:11434<br>    roles:<br>      - chat<br>      - edit<br>      - apply</pre><p>Continue’s config format has changed over time, so if yours looks different, check the current Continue docs for the Ollama provider. The idea stays the same: provider is ollama, apiBase points at your tunnel, and model matches the exact name from ollama list.</p><p><strong>5. Try it.</strong> Select some code, press Ctrl+L to send it to the chat, and ask “explain this” or “write a unit test for this”. You can also select code and press Ctrl+I to ask for an edit.</p><p>A few honest notes from using it:</p><ul><li><strong>Autocomplete is the weak spot.</strong> Tab-completion needs fast responses, and a CPU server reached over a tunnel is too slow to feel good. If you want to try it, pull a tiny model like qwen2.5-coder:1.5b on the server and give it the autocomplete role. Otherwise, stick to chat and edit.</li><li><strong>The first request is slow</strong> because the model has to load into memory. After that it’s quicker.</li><li><strong>If Continue shows an error</strong>, check the tunnel first. That’s almost always the cause.</li><li><strong>Be careful with work code.</strong> Your code leaves your machine and goes to your server. That’s your own server, but check your company’s rules before pointing it at anything proprietary.</li></ul><h3>CPU vs GPU: the honest version</h3><p>This is the part I wish I’d understood before I started.</p><p><strong>CPU-only (what I used)</strong></p><ul><li>Cheaper per hour, and simpler to set up</li><li>Slow. A small model gives you roughly a few words per second. That’s fine for batch jobs like generating test cases, but painful for a long conversation</li><li>Limited to small models (around 3B to 7B) before memory runs out</li></ul><p><strong>GPU instance</strong></p><ul><li>Much faster. Answers that crawl on CPU feel almost instant, and larger, smarter models become realistic</li><li>More expensive per hour, and it adds up quickly if you leave it running</li><li>Not free-tier friendly. New accounts often have a default limit of zero on GPU instance types, so you may need to request a quota increase before you can launch one</li><li>You need to match the model size to the GPU’s memory (VRAM), not the system RAM</li></ul><p>My rule of thumb: if you’re experimenting or running batch tasks, start with CPU and a small model. If you’re coding interactively all day and the waiting is wearing on you, that’s when a GPU is worth the money. Check current AWS pricing before you decide, because it varies by region and changes.</p><h3>Pros and cons of this setup</h3><p><strong>Pros</strong></p><ul><li><strong>No per-token charges.</strong> You pay for the server’s time, not for each word</li><li><strong>Control over your data.</strong> Your prompts go to a server you own rather than a third party</li><li><strong>Predictable costs</strong>, as long as you remember to stop the instance</li><li><strong>You choose the model</strong> and can swap it in one command</li><li><strong>It’s a great way to learn</strong> how model hosting actually works</li></ul><p><strong>Cons</strong></p><ul><li><strong>Slower and less capable than the big hosted models.</strong> A 3B or 7B model won’t match the best commercial ones on complex reasoning</li><li><strong>It needs internet.</strong> This isn’t offline AI</li><li><strong>You pay while it runs</strong>, even when idle. Forgetting to stop the instance is the classic way to get a surprise bill</li><li><strong>You maintain it.</strong> Disk space, IP changes, dropped tunnels, and updates are now your problem</li><li><strong>Security is on you.</strong> One careless security group rule could expose your server</li></ul><h3>So, is it the best option?</h3><p>I’d be careful with the word “best.” It’s a great fit if you have repetitive, high-volume tasks, care about where your data goes, and don’t mind a slower, smaller model. It’s not the right fit if you need top-quality reasoning, or if you need to work with no internet at all. In that case, run Ollama on your own machine instead.</p><p>For me it works well for what I wanted: drafting test cases, cleaning up data, and summarizing logs without watching a meter. For the harder problems, I still reach for a stronger hosted model, and I think that mix is the most realistic setup.</p><h3>What I’d do differently</h3><ol><li>Create the key pair at launch and back it up</li><li>Set the disk to 30 GB from the start</li><li>Start with a 3B model, and only move up if I really need to</li><li>Set a billing alert before anything else</li><li>Stop the instance every time I’m done</li></ol><p>If you try this, start small and expect a few bumps. Most of the errors above have simple fixes once you know what they mean.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee0229f66eba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Logging In Again: Attach Your Automation to an Already-Open Browser]]></title>
            <link>https://medium.com/@purushotham.sdet/stop-logging-in-again-attach-your-automation-to-an-already-open-browser-9de490a84362?source=rss-c42b16743375------2</link>
            <guid isPermaLink="false">https://medium.com/p/9de490a84362</guid>
            <dc:creator><![CDATA[Purushotham Vilasagaram]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 16:58:10 GMT</pubDate>
            <atom:updated>2026-09-30T16:58:10.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jw9bgnSKQ0AsIijX4jO0hg.png" /></figure><h3>How to connect Selenium (Java) to a running Chrome, and what Playwright CLI offers for the same idea.</h3><p>Here’s a pain every test engineer knows. You set up the perfect state by hand: logged in, MFA done, the right page open, the odd pop-up dismissed. Then you run your script, and it launches a brand-new browser that knows nothing about any of it.</p><p>So you log in again. And again.</p><p>There’s a better way: let your automation <strong>attach to the browser that’s already open</strong>. I’ll show the Selenium version first, then how Playwright CLI handles the same idea.</p><h3>The idea: remote debugging mode</h3><p>Chrome can listen on a port for automation tools to connect to. Your script doesn’t start a new browser. It connects to the one you already have, with its tabs, cookies and login state intact. That’s the whole trick.</p><h3>Step 1: Launch Chrome with a debugging port</h3><p>Close all Chrome windows first, then start Chrome from the terminal with the remote debugging flag.</p><p><strong>Windows:</strong></p><pre>&quot;C:\Program Files\Google\Chrome\Application\chrome.exe&quot; --remote-debugging-port=9222 --user-data-dir=&quot;C:\chrome-dev-profile&quot;</pre><p><strong>macOS:</strong></p><pre>/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=&quot;/tmp/chrome-dev-profile&quot;</pre><p><strong>Linux:</strong></p><pre>google-chrome --remote-debugging-port=9222 --user-data-dir=&quot;/tmp/chrome-dev-profile&quot;</pre><ul><li><strong>Port:</strong> 9222 is just a common choice. Use any free port, as long as your code uses the same one.</li><li><strong>User data directory:</strong> this gives the debugging session its own clean profile, so your everyday tabs, history and cookies stay untouched. Recent Chrome versions also ignore the debugging port if you point it at your default profile, so don’t skip this flag.</li></ul><h3>Step 2: Check that the port is alive</h3><p>Open a new tab and visit this address:</p><pre>http://localhost:9222/json/version</pre><p>If you see a block of browser details, you’re good. You can also open chrome://inspect/#devices to see what&#39;s listening. Now log in or open whatever pages you need in this browser. This is the state your script will reuse.</p><h3>Step 3: Attach Selenium (Java)</h3><p>Point ChromeOptions at the debugger address instead of launching a new browser:</p><pre>import org.openqa.selenium.By;<br>import org.openqa.selenium.WebDriver;<br>import org.openqa.selenium.chrome.ChromeDriver;<br>import org.openqa.selenium.chrome.ChromeOptions;</pre><pre>public class AttachToChrome {<br>    public static void main(String[] args) {<br>        ChromeOptions options = new ChromeOptions();<br>        options.setExperimentalOption(&quot;debuggerAddress&quot;, &quot;localhost:9222&quot;);</pre><pre>        WebDriver driver = new ChromeDriver(options);<br>        System.out.println(driver.getTitle());</pre><pre>        driver.findElement(By.cssSelector(&quot;input[type=&#39;checkbox&#39;]&quot;)).click();<br>    }<br>}</pre><p>Run it while a practice page like the-internet.herokuapp.com/checkboxes is open in your debugging browser, and watch the checkbox click happen in the window you already had. No new browser and no new login.</p><p>One caution: be careful with driver.quit(). Check what it does in your setup before you rely on the browser staying open afterward.</p><h3>Bonus: finding the port from capabilities</h3><p>If Selenium started the browser and you don’t know which port it’s using, ask the session. Print its capabilities and look for the debugger address:</p><pre>Capabilities caps = ((RemoteWebDriver) driver).getCapabilities();<br>System.out.println(caps.asMap());</pre><p>Look through the printed map for debuggerAddress. If you started Chrome yourself, the port is simply whatever you put after --remote-debugging-port. If you never set one, Chrome isn&#39;t listening, so relaunch it with the flag.</p><h3>What about Playwright?</h3><p>I use Playwright daily, so of course I went looking for the equivalent. There are two good options.</p><p><strong>1. Playwright CLI and its browser extension.</strong> With playwright-cli, you can connect to your existing browser tabs instead of launching a new browser:</p><pre>playwright-cli attach --extension</pre><p>This needs the Playwright Extension installed. The nice part is that the same coding agent workflow from my <a href="https://www.claudeusercontent.com/[link%20to%20your%20Playwright%20CLI%20article]">previous article</a> now works on the browser you’re already using.</p><p><strong>2. Playwright’s own library.</strong> If you write TypeScript tests, you can connect over the same debugging port:</p><pre>import { chromium } from &#39;playwright&#39;;</pre><pre>const browser = await chromium.connectOverCDP(&#39;http://localhost:9222&#39;);<br>const context = browser.contexts()[0];<br>const page = context.pages()[0];<br>console.log(await page.title());</pre><h3>When this is actually useful</h3><ul><li>Flows behind MFA, captchas or slow manual logins</li><li>Debugging a failure from the exact state where it happened</li><li>Writing and trying a script step by step on a live page before making it a proper test</li><li>Letting an agent continue from where you left off</li></ul><h3>Keep it safe</h3><p>An open debugging port lets anything on your machine control that browser. Use an isolated profile like the one above, don’t sign in to personal accounts in it, and close it when you’re done. This is for test environments and learning, not for your banking tab.</p><h3>My takeaway</h3><p>Attaching to an open browser removes one of the most boring parts of automation: rebuilding the same state over and over. Whether you use Selenium, Playwright or an agent, the idea is the same. Start Chrome with a debugging port, set up your state once, and let your automation walk in through the door that’s already open.</p><p><strong>Your turn:</strong> do you attach to existing browsers in your framework, or always launch fresh ones? Tell me in the comments. I’d love to hear your setup.</p><p>Playwright CLI details come from the <a href="https://playwright.dev/docs/getting-started-cli">official Playwright docs</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9de490a84362" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Let an AI Agent Drive My Browser with Playwright CLI. Here’s Why I’m Not Going Back]]></title>
            <link>https://medium.com/@purushotham.sdet/i-let-an-ai-agent-drive-my-browser-with-playwright-cli-heres-why-i-m-not-going-back-eef6d480410a?source=rss-c42b16743375------2</link>
            <guid isPermaLink="false">https://medium.com/p/eef6d480410a</guid>
            <dc:creator><![CDATA[Purushotham Vilasagaram]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 16:43:23 GMT</pubDate>
            <atom:updated>2026-09-30T16:43:23.692Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LGrzGPuhbD6IQwPekg-KLw.png" /></figure><h3>Token-efficient browser automation for coding agents, from someone who uses it in a real project.</h3><p>If you work in test automation, you know this moment: it’s late, one flow needs checking again, and you’re clicking through the same screens for the tenth time. You think, <em>surely an AI agent can do this for me.</em></p><p>It can. But the first time you hand a browser to an agent, you find out the catch. The agent spends so much effort just <em>looking</em> at the page that it has little left for <em>thinking</em>.</p><p>That’s the problem playwright-cli solves. I&#39;m using it in my current project, and honestly, it&#39;s the best way I&#39;ve found to let a coding agent work with a browser. Let me show you why.</p><h3>Why agents and browsers don’t mix well (at first)</h3><p>Coding agents like Claude Code and GitHub Copilot have a limited context window, and everything you feed them competes for space. Tool schemas take space. Page snapshots take space. Accessibility trees, which are huge on real apps, take a lot of space.</p><p>Now add your codebase, your instructions, and the agent’s own reasoning. It gets crowded fast. A crowded context means slower, costlier and sloppier answers.</p><p>playwright-cli is Playwright&#39;s command-line interface built for exactly this. Instead of loading big schemas into the model, the agent runs short commands and reads only what it needs. Less noise, more thinking.</p><h3>CLI or MCP? My rule of thumb</h3><p>Playwright also ships an MCP server, so you might wonder which to pick. Here’s how I think about it:</p><ul><li><strong>CLI</strong> when your agent is a coding agent (Claude Code, Copilot) and you care about token efficiency and repeatable, skill-based workflows.</li><li><strong>MCP</strong> when you want persistent state and long, exploratory loops where the agent keeps reasoning over the page structure.</li></ul><p>For day-to-day test work, the CLI has been the better fit for me. [Add one sentence on why, in your project.]</p><h3>Setup takes about two minutes</h3><p>You need Node.js 20 or newer and a coding agent. Then:</p><pre>npm install -g @playwright/cli@latest<br>playwright-cli --help</pre><p>If you’d rather keep it inside a project:</p><pre>npm install -D @playwright/cli@latest<br>npx playwright cli --help</pre><h3>Skills: where it clicks</h3><p>This is my favorite part. Skills are like a cheat sheet you hand your agent before it starts. It knows what commands exist and how to use them, so it doesn’t fumble around guessing.</p><pre>playwright-cli install --skills</pre><p>Want them available in every project? Add -g and they land in your home directory (~/.claude/skills, or ~/.agents/skills with --skills=agents).</p><p>You can also skip skills and just tell the agent to run playwright-cli --help and figure it out. That works for a quick experiment. But with skills installed, I noticed [describe what you actually noticed: fewer wrong commands, faster runs, better results].</p><h3>Watch it work</h3><p>Once skills are in, you talk to your agent in plain English:</p><pre>Use playwright skills to test https://demo.playwright.dev/todomvc/.<br>Take screenshots for all successful and failing scenarios.</pre><p>That’s it. No selectors, no boilerplate. The agent opens the app, works through the flows and captures evidence.</p><p>[Add a screenshot or short story of the first time this worked for you. What did you feel? What surprised you?]</p><p>Curious what the agent is actually doing? You can run the same commands by hand:</p><pre>playwright-cli open https://demo.playwright.dev/todomvc/ --headed<br>playwright-cli type &quot;Buy groceries&quot;<br>playwright-cli press Enter<br>playwright-cli type &quot;Water flowers&quot;<br>playwright-cli press Enter<br>playwright-cli check e21<br>playwright-cli screenshot</pre><p>After every command, the CLI prints a tiny summary (page URL and title) and saves a snapshot file. The agent opens that file only when it needs to. That one design choice is the secret behind the token savings.</p><p>See that e21? It&#39;s an element ref from the snapshot. You can also use CSS or role selectors when you want more control:</p><pre>playwright-cli click &quot;role=button[name=Submit]&quot;</pre><h3>The commands I actually reach for</h3><p>There are dozens of commands, but a handful do most of the work for a test engineer:</p><ul><li>snapshot and screenshot for seeing the page and keeping evidence</li><li>route to mock network requests, great for testing error states without touching the backend</li><li>state-save and state-load to save a logged-in session and skip repeated logins</li><li>console and requests to catch the errors and failed calls hiding behind a &quot;working&quot; page</li><li>tracing-start and video-start for proof you can attach to a bug report</li></ul><h3>Sessions and the live dashboard</h3><p>By default, the browser profile lives in memory and vanishes when you close the browser. Add --persistent to keep it on disk, or run several named sessions side by side:</p><pre>playwright-cli -s=example open https://example.com --persistent<br>playwright-cli list</pre><p>You can even tell your agent which session to use:</p><pre>PLAYWRIGHT_CLI_SESSION=todo-app claude .</pre><p>And my favorite trick when I want to supervise instead of blindly trust:</p><pre>playwright-cli show</pre><p>It opens a dashboard with a live preview of every running session. You can click into one, take over the mouse and keyboard, fix something, then press Escape to give control back to the agent. It feels like pair programming with a very fast, slightly overconfident colleague.</p><h3>A few settings worth knowing</h3><ul><li>It runs headless by default. Add --headed to watch the browser.</li><li>Pick a browser with --browser=chrome, firefox, webkit or msedge.</li><li>Put advanced settings in .playwright/cli.config.json and it loads automatically.</li><li>Use playwright-cli attach --extension to work in your existing browser tabs (this needs the Playwright Extension).</li></ul><h3>Honest advice from using it for real</h3><p>An agent saying “test passed” is not the same as a test being right. I still review what the agent did, check the screenshots and confirm the assertions mean something. The CLI makes the agent faster. It doesn’t replace your judgment as a tester.</p><h3>My verdict</h3><p>I’ve used plenty of ways to automate browsers. playwright-cli is the first one that treats the agent&#39;s attention as something precious. Short commands, snapshots on disk, skills that teach the agent what it needs, and a dashboard so I stay in control. For anyone doing QA or test automation with a coding agent, it&#39;s worth an afternoon.</p><p><strong>Your turn:</strong> have you tried browser automation with an AI agent? What worked and what didn’t? Tell me in the comments. I’d love to compare notes.</p><p>Source and full command reference: <a href="https://playwright.dev/docs/getting-started-cli">Playwright docs: Coding agents</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eef6d480410a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Agents in QA Testing]]></title>
            <link>https://medium.com/@purushotham.sdet/ai-agents-in-qa-testing-1be64b2e0a38?source=rss-c42b16743375------2</link>
            <guid isPermaLink="false">https://medium.com/p/1be64b2e0a38</guid>
            <category><![CDATA[ai-testing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[qa-automation]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Purushotham Vilasagaram]]></dc:creator>
            <pubDate>Wed, 27 May 2026 19:50:23 GMT</pubDate>
            <atom:updated>2026-05-27T19:50:23.001Z</atom:updated>
            <content:encoded><![CDATA[<h3>How AI Agents Are Transforming QA Testing in 2026</h3><p>Artificial Intelligence is no longer just helping testers write test cases or generate automation scripts. In 2026, AI Agents are becoming autonomous QA teammates capable of planning, executing, analyzing, and even fixing testing workflows with minimal human intervention.</p><p>This shift is changing how modern QA teams work.</p><h3>What Are AI Agents in QA?</h3><p>Traditional AI tools assist testers with small tasks like:</p><ul><li>Generating test cases</li><li>Suggesting XPath selectors</li><li>Writing Selenium scripts</li><li>Summarizing bug reports</li></ul><p>AI Agents go further.</p><p>An AI Agent can:</p><ul><li>Understand application workflows</li><li>Navigate websites autonomously</li><li>Execute tests step-by-step</li><li>Detect UI or functional issues</li><li>Analyze logs and screenshots</li><li>Retry failed scenarios intelligently</li><li>Generate detailed reports</li><li>Integrate with CI/CD pipelines</li></ul><p>Instead of acting like a chatbot, an AI Agent behaves more like a junior QA engineer.</p><h3>Why AI in QA Is Growing Fast</h3><p>Modern applications release features rapidly. QA teams often struggle with:</p><ul><li>Tight deadlines</li><li>Flaky automation</li><li>Large regression suites</li><li>Frequent UI changes</li><li>Limited test coverage</li></ul><p>AI helps solve these challenges by reducing manual effort and improving testing speed.</p><p>Companies are increasingly adopting AI-powered testing because it enables:</p><h3>Faster Test Creation</h3><p>AI can generate test scenarios from:</p><ul><li>User stories</li><li>Application flows</li><li>API documentation</li><li>Existing manual test cases</li></ul><h3>Self-Healing Automation</h3><p>When UI elements change, AI can automatically identify updated selectors without breaking tests.</p><h3>Smarter Failure Analysis</h3><p>Instead of simply showing “Test Failed,” AI explains:</p><ul><li>Why it failed</li><li>Which step caused it</li><li>Possible fixes</li><li>Related logs/screenshots</li></ul><h3>Better Test Coverage</h3><p>AI identifies untested workflows and edge cases humans often miss.</p><h3>Real-World Example</h3><p>Imagine testing an e-commerce website manually.</p><p>Traditional automation:</p><ol><li>Open browser</li><li>Login</li><li>Search product</li><li>Add to cart</li><li>Checkout</li></ol><p>If the “Add to Cart” button ID changes, the test fails.</p><p>An AI Agent:</p><ul><li>Understands the purpose of the button</li><li>Finds alternative matching elements</li><li>Continues execution intelligently</li><li>Reports the UI change automatically</li></ul><p>This significantly reduces maintenance effort.</p><h3>Popular AI Tools Used in QA</h3><p>Some trending AI-powered QA platforms include:</p><ul><li>OpenAI powered testing workflows</li><li>Microsoft Copilot integrations</li><li>BrowserStack AI testing solutions</li><li>LambdaTest AI automation tools</li><li>Applitools visual AI testing</li><li>Mabl intelligent automation</li><li>Testim self-healing tests</li></ul><p>These tools are helping teams move toward autonomous testing.</p><h3>Skills QA Engineers Should Learn</h3><p>AI will not replace QA engineers. However, QA engineers who use AI effectively will outperform those who don’t.</p><p>Important skills for modern QA engineers:</p><h3>Prompt Engineering</h3><p>Knowing how to instruct AI tools effectively.</p><h3>API Testing</h3><p>AI works best when integrated deeply with APIs and backend systems.</p><h3>Automation Frameworks</h3><p>Playwright and Cypress remain highly valuable.</p><h3>AI-Assisted Debugging</h3><p>Understanding how to interpret AI-generated insights.</p><h3>CI/CD Knowledge</h3><p>AI-powered testing integrates closely with DevOps pipelines.</p><h3>Challenges of AI in Testing</h3><p>Despite the hype, AI testing still has limitations.</p><h3>False Positives</h3><p>AI may incorrectly identify issues.</p><h3>Security Concerns</h3><p>Sensitive test data must be handled carefully.</p><h3>Cost</h3><p>Advanced AI testing platforms can be expensive.</p><h3>Lack of Human Judgment</h3><p>AI still struggles with:</p><ul><li>User emotions</li><li>UX quality</li><li>Business logic understanding</li></ul><p>Human testers remain essential.</p><h3>The Future of QA</h3><p>The future is likely to include:</p><ul><li>Autonomous regression testing</li><li>AI-generated test plans</li><li>Voice-controlled testing</li><li>Visual AI validation</li><li>Multi-agent QA systems</li><li>Real-time bug prediction</li></ul><p>QA engineers will increasingly become:</p><ul><li>QA strategists</li><li>AI workflow designers</li><li>Automation architects</li></ul><p>Rather than manually executing repetitive tests.</p><h3>Final Thoughts</h3><p>AI is transforming software testing faster than ever before. The role of QA is evolving from manual execution to intelligent quality engineering.</p><p>The best time for QA professionals to start learning AI-powered testing is now.</p><p>Those who adapt early will have a major advantage in the future of software quality assurance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1be64b2e0a38" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>