<?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 Rohit Sood on Medium]]></title>
        <description><![CDATA[Stories by Rohit Sood on Medium]]></description>
        <link>https://medium.com/@rohitsood10?source=rss-c708338b7255------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*afJf2CWrYGLJFEje.jpg</url>
            <title>Stories by Rohit Sood on Medium</title>
            <link>https://medium.com/@rohitsood10?source=rss-c708338b7255------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 11:10:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rohitsood10/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[Your ML Model is Live — But is it actually being tested?]]></title>
            <link>https://medium.com/@rohitsood10/your-ml-model-is-live-but-is-it-actually-being-tested-d38f2b86ce44?source=rss-c708338b7255------2</link>
            <guid isPermaLink="false">https://medium.com/p/d38f2b86ce44</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[qa-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Rohit Sood]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 20:47:59 GMT</pubDate>
            <atom:updated>2026-06-20T20:51:32.767Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I came across a Google research paper recently — “The ML Test Score” — and it honestly changed how I think about testing AI systems. The main finding: even experienced ML teams at Google were failing most of these tests.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*Xp_y9Q00gMZ_8H30-s1tKg.png" /></figure><p>The paper is from 2017 but it’s more relevant now than ever. As more teams start building or testing ML features, the question “how do you actually test this thing?” comes up more and more. And the honest answer is: most teams aren’t doing it well.</p><p>So I figured I’d put it all in one place — why ML testing is different, how the framework works, and the full checklist you can actually use. No math, no jargon.</p><h3>Why ML Systems Are Harder to Test</h3><p>In regular software, if you write a function that adds two numbers, you know exactly how to test it — give it 2 and 3, expect 5. The behavior is right there in the code.</p><p>ML doesn’t work like that. The behavior comes from data and training — you can’t look at a trained model and just read off what it’ll do for every input. It’s more like you raised a child on thousands of examples and now they’re making their own decisions. Testing that is a completely different problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yS3tM8YvmcJDTKbobkMxYg.png" /></figure><p>The ML Test Score rubric has 28 specific tests across 4 areas. And the thing that surprised me most — each area carries equal weight. Most teams are so focused on model accuracy that they miss everything else entirely.</p><h3>The 4 Areas</h3><p><strong>Data Tests</strong> — Is your training data actually correct? Right shape, right distributions? Are all your features doing something useful, or are some of them just adding noise? Most teams just trust the data. They shouldn’t.</p><p><strong>Model Tests</strong> — Accuracy is not enough. Is your model reproducible? Does it work equally well for all user groups, or is it quietly performing worse for some people?</p><p><strong>Infrastructure Tests</strong> — Can you reproduce your training run if you need to? Can you roll back if something goes wrong in production? Can you even debug a single weird prediction? These are engineering questions, not data science ones.</p><p><strong>Monitoring Tests</strong> — Is your model still doing its job 6 months after you deployed it? Is your data drifting? The honest answer from most teams: they have no idea, because there’s no monitoring.</p><h3>How the Scoring Works</h3><p>Each of the 28 tests gets a score — 0.5 if you do it manually with documented results, 1 point if it’s automated and runs on a schedule. The final ML Test Score is the <strong>minimum</strong>across all 4 areas. So strong data tests don’t save you if monitoring is a mess. Every area has to be covered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xPSMBEBfJwX_nFfvYvh_A.png" /></figure><h3>The Full Checklist</h3><p>Take this into your next team meeting and go through it. Wherever someone says “I don’t know” — that’s where your risk is.</p><h3>Data Tests</h3><ul><li>Feature schema exists and is automatically validated at training and serving time</li><li>All features have been checked for actual predictive value — no dead weight features</li><li>Feature computation cost has been evaluated (inference latency, memory, data dependencies)</li><li>Data privacy and PII controls are in place for training data</li><li>User data deletion requests flow through to training data and learned models</li><li>Feature creation code has unit tests</li></ul><h3>Model Tests</h3><ul><li>Model training code is in version control and has been code-reviewed</li><li>Offline accuracy metrics have been validated against real-world business impact</li><li>Hyperparameters have been systematically tuned, not just left at defaults</li><li>Model quality has been tested at different data ages — freshness curve is known</li><li>A simple baseline model has been compared against the complex one</li><li>Model quality has been checked separately for important user segments, not just overall</li><li>Model has been tested for bias across protected user groups</li></ul><h3>Infrastructure Tests</h3><ul><li>Training is reproducible — same data and code produces the same model</li><li>Model specification code has unit tests</li><li>End-to-end ML pipeline has an integration test that runs regularly</li><li>Model quality is automatically validated before it goes to production</li><li>There is a way to debug a single prediction step by step</li><li>New models are tested via a canary process before full rollout</li><li>Rolling back to a previous model is a documented, practiced process</li></ul><h3>Monitoring Tests</h3><ul><li>Team gets notified when upstream data dependencies change or have outages</li><li>Data invariants from the schema are actively monitored in production</li><li>Training and serving feature values are compared for skew</li><li>An alert fires when the model in production becomes too old</li><li>NaN and infinity values in model outputs are monitored and alerted on</li><li>Model training speed and serving latency are tracked over time</li><li>Prediction quality on served data is continuously monitored</li></ul><h3>How to Use This</h3><p>You don’t have to do all 28. Even automating one of these improves your score — the paper says that directly. Start somewhere.</p><p>If you’re just getting started, go after data tests and monitoring first. These are the two areas that catch problems before they ever reach users.</p><p>If there’s already an ML system running — put this checklist in front of the team. The items where nobody has an answer, that’s your risk list right there.</p><p>For QA engineers, ML testing isn’t replacing software testing — it expands it. Many of the same ideas we already use (validation, monitoring, regression detection, automation, observability) become even more important when the behavior is learned instead of coded.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d38f2b86ce44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Self-Healing Locators with Healenium: Stop Chasing Brittle Tests]]></title>
            <link>https://medium.com/@rohitsood10/self-healing-locators-with-healenium-stop-chasing-brittle-tests-30ff1d3f67cf?source=rss-c708338b7255------2</link>
            <guid isPermaLink="false">https://medium.com/p/30ff1d3f67cf</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[healenium]]></category>
            <dc:creator><![CDATA[Rohit Sood]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 04:50:08 GMT</pubDate>
            <atom:updated>2026-06-17T06:06:53.016Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong><em>A developer changes a class name, 15 tests fail. You spend half the day fixing XPaths. Healenium uses ML to auto-heal broken locators during test execution — here’s how it actually works.</em></strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eru2X9ifMm6bq8zPzeWYyQ.png" /></figure><p>If you’ve been doing UI automation for more than a year, you know this exact situation. A developer refactors the login page — maybe just changes a class name or restructures a div — and the next morning you wake up to 15 failed tests. You spend half the day updating locators instead of doing actual QA work.</p><p>This is the problem Healenium tries to solve. I’ve used it in a production test suite and wanted to write up what it’s actually like — setup, the parts that work well, and the parts where it doesn’t help you as much as you’d hope.</p><h3>What Healenium Does</h3><p>The idea is pretty simple. Healenium wraps your WebDriver with a smarter driver that remembers the locators you used and the DOM context around them. When a test fails to find an element, instead of just throwing a NoSuchElementException, it queries its own database of previously successful locator interactions and tries to find the closest match using an ML-based similarity algorithm.</p><p>If it finds a match above a confidence threshold, it heals the locator and carries on. It logs the original locator, what it replaced it with, and the confidence score. You can review the healing report and decide if you want to update your actual test code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F8MQVvv9jx_VxeKWYQgAow.png" /><figcaption><em>How SelfHealingDriver sits between your tests and the browser</em></figcaption></figure><h3>Setting It Up</h3><p>This is where most people get a bit stuck because Healenium needs a few moving parts. It’s not just a Maven dependency you drop in and you’re done.</p><p>You need PostgreSQL (for locator history) and a Healenium backend service. The easiest way is Docker:</p><pre>services:<br>  postgres:<br>    image: postgres:14<br>    environment:<br>      POSTGRES_DB: healenium<br>      POSTGRES_USER: healenium_user<br>      POSTGRES_PASSWORD: healenium_pass<br><br>  healenium-backend:<br>    image: healenium/healenium-backend:3.4.2<br>    depends_on: [postgres]<br>    ports: [&quot;7878:7878&quot;]</pre><p>Then in your test code, you just wrap the WebDriver:</p><pre>SelfHealingDriverProvider provider = new SelfHealingDriverProvider(delegate, config);<br>WebDriver driver = SelfHealingDriver.create(provider);</pre><p>After that, your tests run exactly the same. No changes to page objects or test logic needed.</p><h3>The Score Threshold — Get This Right</h3><p>There’s a setting called healenium.score.cap — it controls how confident Healenium needs to be before it attempts a heal. Default is 0.5 (50% similarity). Getting this wrong in either direction causes real problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_P2Gi7Zed7IzoE7fK9wbvg.png" /></figure><p><strong>Pro tip:</strong> Run your test suite for 2–3 sprints with healing enabled and review the healing reports. The right threshold is different for every application — it depends on how much your DOM changes between releases.</p><h3>What It Doesn’t Fix</h3><p>Healenium is good for <strong>minor, incremental UI changes</strong> — class name tweaks, small DOM restructures, attribute updates. The kind of thing that happens regularly in active development.</p><p>It doesn’t help when:</p><ul><li>An element is completely removed from the page</li><li>There’s a major redesign where the DOM structure is fundamentally different</li><li>You’re testing a heavy JavaScript SPA where the DOM changes dynamically — the similarity matching struggles here</li><li>The locator you wrote was wrong to begin with</li></ul><p>Also, it doesn’t fix your tests permanently — it heals them during a run. You still need to go back and update the actual locators in your code, otherwise you’re depending on Healenium catching the drift every single time, which adds overhead.</p><p>Think of it as a safety net, not a replacement for maintaining your locators.</p><h3>Is It Worth It?</h3><p>For a mature test suite — say 200+ tests that keep breaking every sprint because of UI churn — yes, it’s worth the setup effort. The time you save on locator debugging across a few months more than pays for the initial setup.</p><p>For a new framework or a stable application that doesn’t change much, probably not. The overhead of running the Docker services and maintaining the database isn’t justified if your tests aren’t actually failing from locator changes.</p><p>Github: github.com/rohitsood10/healenium-self-healing-selenium</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30ff1d3f67cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>