<?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 Medhavee Upadhyaya on Medium]]></title>
        <description><![CDATA[Stories by Medhavee Upadhyaya on Medium]]></description>
        <link>https://medium.com/@medhaveeupadhyaya?source=rss-deb49ad02c7f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*D1_2VrTUmrVd22Tj</url>
            <title>Stories by Medhavee Upadhyaya on Medium</title>
            <link>https://medium.com/@medhaveeupadhyaya?source=rss-deb49ad02c7f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:32:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@medhaveeupadhyaya/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[I Ran My AI Testing Tool on Its Own Code. It Found Bugs I Missed.]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/i-ran-my-ai-testing-tool-on-its-own-code-it-found-bugs-i-missed-d8a11356ed71?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8a11356ed71</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 08:31:39 GMT</pubDate>
            <atom:updated>2026-06-25T08:35:23.971Z</atom:updated>
            <content:encoded><![CDATA[<p>Three weeks ago, I shipped <strong>CodeCheck</strong> -an open-source tool that generates and runs tests on your code every time you commit.</p><p>No ads.<br>No Product Hunt launch.<br>No launch strategy.</p><p>Just developers finding it, installing it, and trying it.</p><p>Today, CodeCheck has crossed <strong>1,500+ npm downloads</strong>, spans <strong>23 npm packages</strong>, supports <strong>4 LLM providers</strong>, has a <strong>VS Code extension</strong>, a <strong>GitHub Action</strong>, and an <strong>MCP server</strong> that developers are wiring into AI assistants.</p><p>But the most interesting thing did not come from a download graph.</p><p>It came from running CodeCheck on itself.</p><p>I pointed CodeCheck at its own source code.</p><p>It found real bugs.</p><p>In itself.</p><p>This is the story of what broke, what I fixed, and the product lesson I keep relearning: the fastest way to improve a developer tool is to use it on real code until it embarrasses you.</p><h3>The Experiment</h3><p>The setup was simple.</p><p>CodeCheck has an example file called utils.ts with 18 utility functions:</p><ul><li>add</li><li>clamp</li><li>toTitleCase</li><li>isPrime</li><li>reverseString</li><li>wordCount</li><li>and a few more basic helpers</li></ul><p>This is the kind of code developers write all the time and assume is fine.</p><p>I ran CodeCheck against that file using <strong>Gemini’s free tier</strong>.</p><p>No Anthropic key.<br>No OpenAI subscription.<br>Just a free Gemini API key from Google AI Studio.</p><p>Here’s what happened:</p><p><strong>18 functions extracted</strong><br><strong>77 tests generated</strong><br><strong>47 tests passed</strong><br><strong>30 tests failed</strong></p><p>At first, that sounds bad.</p><p>But the failures were useful. They fell into a few categories, and each one exposed something different about building AI developer tools in the real world.</p><h3>Finding 1: Three Functions Crashed on Null Input</h3><p>CodeCheck generated null-check tests for three string utility functions:</p><pre>✗ toTitleCase — unit · null-check<br>  → Crashed on null or undefined input — the function needs a null check<br><br>✗ reverseString - unit · null-check<br>  → Crashed on null or undefined input - the function needs a null check<br><br>✗ wordCount - unit · null-check<br>  → Crashed on null or undefined input - the function needs a null check</pre><p>These were functions I wrote.</p><p>I reviewed them.<br>I committed them.<br>They shipped.</p><p>And none of them handled null.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*iD1QkFjYo4s9iTXATm9UvA.png" /><figcaption>CodeCheck surfacing a failed AI-generated null-check test directly inside VS Code.</figcaption></figure><p>That is exactly the kind of bug CodeCheck is supposed to find.</p><p>The person who writes a function is often the worst person to test it. Not because they are careless, but because they know what the function is supposed to do. They naturally test the happy path.</p><p>When I write reverseString, I think:</p><pre>reverseString(&quot;hello&quot;) // &quot;olleh&quot;</pre><p>I do not immediately think:</p><pre>reverseString(null)<br>reverseString(undefined)<br>reverseString(&quot;&quot;)<br>reverseString(&quot;   &quot;)<br>reverseString(&quot;hello 👋&quot;)</pre><p>The AI did.</p><p>It came to the function fresh and asked the boring question that breaks production code:</p><p><em>What happens if the input is not what the developer expected?</em></p><p>That is the value of AI-generated tests when they are used correctly. Not magic. Not perfect reasoning. Just relentless edge-case generation without fatigue.</p><h3>Lesson</h3><p>The best test cases are often not clever. They are annoying.</p><p>Null. Undefined. Empty strings. Weird whitespace. Arrays with one item. Objects missing fields. Inputs that “should never happen.”</p><p>Those are exactly the cases humans skip and production eventually finds.</p><h3>Finding 2: Gemini Returned Invalid JSON</h3><p>This was the failure that surprised me most.</p><p>CodeCheck asks the LLM for structured test case descriptions in JSON. Those descriptions are then converted into runnable Jest tests.</p><p>Most of the time, Gemini returned valid JSON.</p><p>But sometimes it returned JavaScript-flavored JSON:</p><pre>{<br>  &quot;input&quot;: [undefined, 2]<br>}</pre><p>That looks reasonable if you write JavaScript every day.</p><p>But it is not valid JSON.</p><p>undefined is valid JavaScript.<br>It is not valid JSON.</p><p>So JSON.parse() failed.</p><p>Gemini also returned cases like:</p><pre>NaN<br>Infinity<br>-Infinity<br>trailing commas<br>control characters inside strings</pre><p>Again, these are not shocking outputs from an LLM. Models write JavaScript constantly. JSON is stricter than JavaScript, and even when you ask for JSON, the model may still produce something that looks right but cannot be parsed.</p><p>The fix was not glamorous.</p><p>I added a sanitizer before parsing LLM output:</p><pre>sanitizeLLMJson()</pre><p>It handles cases like:</p><pre>undefined → null<br>NaN → null<br>Infinity → null<br>-Infinity → null<br>trailing commas → removed<br>control characters → stripped</pre><p>Is this elegant?</p><p>No.</p><p>It is a series of defensive transformations before JSON.parse.</p><p>But it works.</p><p>And that is one of the biggest lessons from building AI infrastructure: production reliability is often not made of impressive architecture. It is made of boring guardrails around weird strings.</p><h4>Lesson</h4><p>Never trust LLM output just because you asked nicely.</p><p>Even with structured output, even with JSON instructions, even with a good model, treat the response as untrusted input.</p><p>Validate it.<br>Sanitize it.<br>Parse it carefully.<br>Fail gracefully.</p><p>The demo ends when the model returns perfect JSON.</p><p>The product starts when it does not.</p><h3>Finding 3: Rate Limits Broke the Run</h3><p>CodeCheck processes multiple functions by sending them to an LLM provider.</p><p>When I ran it on 18 functions, Gemini’s free tier started rejecting some requests.</p><p>The errors looked like this:</p><pre>✗ arrayMax — unit · error<br>  → LLM API error: Error fetching<br><br>✗ deepMerge - unit · error<br>  → LLM API error: Error fetching</pre><p>The message was vague.</p><p>It did not clearly say:</p><pre>You hit a rate limit.</pre><p>It said:</p><pre>Error fetching.</pre><p>That is the kind of error message that makes a user blame your tool.</p><p>And they would be right.</p><p>From the user’s perspective, it does not matter whether Gemini rejected the request, the network failed, or CodeCheck mishandled the provider response. The tool did not complete the job.</p><p>The fix was retry logic with exponential backoff.</p><p>CodeCheck now wraps LLM calls across all providers in a retry layer:</p><pre>First failure  → wait 1 second, retry<br>Second failure → wait 2 seconds, retry<br>Third failure  → wait 4 seconds, retry<br>After that     → report the error</pre><p>It only retries errors that are likely temporary:</p><pre>HTTP 429<br>HTTP 503<br>rate limit<br>quota<br>resource exhausted<br>server overload</pre><p>Authentication errors and permanent failures still fail immediately.</p><p>This now applies across:</p><ul><li>Claude</li><li>OpenAI</li><li>Gemini</li><li>Ollama</li></ul><p>The implementation is small. The impact is big.</p><p>Free-tier Gemini users can now run CodeCheck on larger files without losing half their results to temporary provider limits.</p><h4>Lesson</h4><p>Rate limits are not an edge case.</p><p>If your product depends on LLM APIs, rate limits are part of your product behavior.</p><p>Handle them like a first-class feature.</p><h3>The Silent Concurrency Bug</h3><p>Before I even got clean test results, the engine hung.</p><p>No output.<br>No error.<br>No stack trace.</p><p>Just silence.</p><p>The problem was config.concurrency.</p><p>In normal usage, CodeCheck loads config through loadConfig(), which provides defaults. But while testing Gemini manually, I constructed a config object myself and forgot to include concurrency.</p><p>That meant the engine passed undefined into its internal semaphore.</p><p>The semaphore controlled how many LLM calls could run in parallel.</p><p>With an undefined concurrency value, everything queued and nothing moved.</p><p>The process hung forever.</p><p>This bug would not appear in the happy path. It only appears when someone integrates CodeCheck in a custom way -exactly the kind of thing developers do with open-source tools.</p><p>The fix was simple:</p><ul><li>provide a safe default</li><li>validate config earlier</li><li>fail loudly when required values are missing</li></ul><h4>Lesson</h4><p>Silent hangs are worse than crashes.</p><p>A crash gives a stack trace.<br>A hang gives nothing.</p><p>If a config value is required, validate it at the boundary. Do not let undefined travel deep into your system and become a mystery.</p><h3>The Monorepo Version Bug That Looked Fine Locally</h3><p>CodeCheck is a monorepo with <strong>23 packages</strong> under the @codecheck scope.</p><p>Locally, everything worked.</p><p>Tests passed.<br>Builds passed.<br>The workspace looked clean.</p><p>But published packages were resolving dependencies differently than the local workspace.</p><p>Some internal package dependencies were pinned like this:</p><pre>&quot;@codecheck/core&quot;: &quot;0.1.1&quot;</pre><p>Inside the monorepo, npm workspaces resolved that to the local package.</p><p>But when users installed packages from npm, npm resolved @codecheck/core to the published registry version.</p><p>That meant some packages were pulling older versions of core, even after core had been updated.</p><p>Locally, invisible.<br>After publishing, real.</p><p>The fix was to update internal package references to caret ranges:</p><pre>&quot;@codecheck/core&quot;: &quot;^0.2.0&quot;</pre><p>Then republish all 23 packages in dependency order.</p><p>This is the kind of bug that only exists after your code leaves your machine.</p><h4>Lesson</h4><p>For monorepos, local tests are not enough.</p><p>You need to test the published dependency graph, not just the workspace graph.</p><p>Run commands like:</p><pre>npm ls @codecheck/core<br>npm ls @anthropic-ai/sdk</pre><p>Then verify what your users actually install.</p><p>A monorepo can make everything look correct locally while shipping stale dependency versions to everyone else.</p><h3>The MCP Server Was Missing From the Publish Script</h3><p>This one was embarrassing.</p><p>CodeCheck has an MCP server:</p><pre>@codecheck/mcp-server</pre><p>It lets AI assistants call CodeCheck as a tool. The idea is simple:</p><p>An assistant writes code.<br>It runs CodeCheck.<br>It sees failing tests.<br>It fixes the code.<br>It runs again.</p><p>That creates a tighter loop:</p><pre>edit → test → fix → commit</pre><p>The MCP server has already been downloaded <strong>263 times</strong>.</p><p>But when I reviewed the release process, I realized something:</p><p>It was never added to publish.sh.</p><p>The package existed.<br>The code worked.<br>It had been published manually.<br>People were installing it.</p><p>But future automated releases would have skipped it.</p><p>The publish script had a hardcoded package list:</p><pre>PACKAGES=(<br>  &quot;packages/core&quot;<br>  &quot;packages/scope-unit&quot;<br>  # ...<br>  &quot;packages/trigger-ci&quot;<br>  # mcp-server was missing here<br>  &quot;packages/codecheck-init&quot;<br>)</pre><p>Fixed now.</p><p>But the lesson is obvious.</p><p>Manual checklists fail.</p><p>If your release process depends on a human remembering to update a list, the list will eventually be wrong.</p><h4>Lesson</h4><p>For a multi-package project, your publish script should not be the source of truth. The filesystem should be.</p><p>At minimum, add a check that compares packages that exist with packages included in the publish script.</p><p>Boring automation saves releases.</p><h3>VS Code Extension: The Code Was Easy. Packaging Was Not.</h3><p>The VS Code extension is simple.</p><p>It watches CodeCheck’s latest result file:</p><pre>.codecheck-results/latest.json</pre><p>Then it maps failed tests to inline diagnostics.</p><p>If a generated test fails, the function gets a yellow underline directly inside VS Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gbixtZFHu82W2wpSMU5v3Q.png" /><figcaption>CodeCheck showing an inline diagnostic on a function whose AI-generated test failed.</figcaption></figure><p>No terminal.<br>No separate tab.<br>No searching through logs.</p><p>Just a warning where the problem is.</p><p>The extension code is around 95 lines.</p><p>Publishing it took five attempts.</p><p>The first package tried to include too much of the monorepo.</p><p>Then .vscodeignore conflicted with the files field in package.json.</p><p>Then a package JSON issue broke config resolution.</p><p>Then VSCE followed workspace paths it should not have included.</p><p>Eventually, the fix was to publish from a clean temporary folder containing only:</p><pre>package.json<br>README.md<br>.vscodeignore<br>dist/</pre><p>That produced a clean 13KB VSIX.</p><p>Then the extension activated and did nothing.</p><p>The issue was module format.</p><p>The monorepo builds as ESM.</p><p>VS Code extensions still expect CommonJS.</p><p>The fix was one build flag:</p><pre>tsup --format cjs</pre><p>The actual extension logic was not the hard part.</p><p>Packaging was.</p><h4>Lesson</h4><p>Developer tools do not fail only in your code.</p><p>They fail in packaging, module formats, workspace symlinks, marketplace rules, ignored files, and runtime expectations.</p><p>If users install your tool through VS Code, test the VS Code artifact.</p><p>If users install it through npm, test the npm package.</p><p>If users run it in CI, test the GitHub Action.</p><p>Your source code working is not the same thing as your product working.</p><h3>GitHub Action: CodeCheck in CI</h3><p>CodeCheck now has a GitHub Action.</p><pre>- uses: medhavee-upadhyaya/codecheck@main<br>  with:<br>    provider: gemini<br>    gemini-api-key: ${{ secrets.GEMINI_API_KEY }}</pre><p>The action runs CodeCheck in CI and posts results where developers already review code: the pull request.</p><p>This matters because not every team wants commit hooks.</p><p>Some developers dislike local hooks.<br>Some skip them with --no-verify.<br>Some teams prefer checks to happen in CI.</p><p>That is fine.</p><p>The point of CodeCheck is not to control the workflow. The point is to fit into it.</p><p>Local hook if you want fast feedback.<br>VS Code extension if you want inline feedback.<br>GitHub Action if you want PR feedback.<br>MCP server if you want AI-agent feedback.</p><p>Same engine. Different surfaces.</p><h4>Lesson</h4><p>A developer tool should meet developers where they already are.</p><p>Do not force one workflow.</p><p>Support the loop:</p><pre>local → editor → CI → assistant</pre><h3>The Security and Dependency Cleanup</h3><p>While preparing the release, I ran npm audit.</p><p>It surfaced dependency issues that needed cleanup.</p><p>I upgraded the relevant SDKs, removed an unnecessary direct dependency from the MCP server, and republished the affected packages.</p><p>The result:</p><p><strong>28 vulnerabilities down to 20.</strong></p><p>The remaining issues are in transitive dependencies, including tooling-level packages outside CodeCheck’s direct control.</p><p>Dependency hygiene is not exciting.</p><p>But once people start installing your packages, it becomes part of the responsibility.</p><p>If 1,500+ developers have installed something you published, you do not get to treat dependency warnings as background noise.</p><h4>Lesson</h4><p>Open source maintainers inherit invisible responsibility.</p><p>Users may never ask whether your dependency tree is clean.</p><p>You still need to check.</p><h3>What The Numbers Look Like Now</h3><pre>┌─────────────────────────────────┬─────────────────────┐<br>│ Metric                          │ Count               │<br>├─────────────────────────────────┼─────────────────────┤<br>│ npm downloads (@codecheck/core) │ 1,554               │<br>│ Total npm packages              │ 23                  │<br>│ Tests in the repo               │ 365                 │<br>│ LLM providers                   │ 4                   │<br>│ MCP server downloads            │ 263                 │<br>│ VS Code extension               │ Live on Marketplace │<br>│ GitHub Action                   │ Ready               │<br>│ Vulnerabilities fixed           │ 8                   │<br>│ Marketing budget                │ $0                  │<br>└─────────────────────────────────┴─────────────────────┘</pre><p>The MCP number is the one that surprised me most.</p><p>263 developers downloaded the server that lets AI assistants run CodeCheck autonomously.</p><p>That means developers are not just using AI to write code.</p><p>They are starting to wire AI into the test loop around code.</p><p>That is the more interesting shift.</p><p>Not:</p><pre>AI writes code.</pre><p>But:</p><pre>AI writes code.<br>AI tests code.<br>AI sees failure.<br>AI fixes code.<br>Human reviews the loop.</pre><p>That is where developer tooling is going.</p><h3>The Pattern I Keep Seeing</h3><p>Every meaningful improvement in this release came from using the tool on real code.</p><p>Not from a roadmap.<br>Not from a planning doc.<br>Not from guessing what users might want.</p><p>The JSON sanitizer exists because Gemini returned invalid JSON during a real run.</p><p>The retry logic exists because rate limits killed real test generation.</p><p>The concurrency fix exists because a manual config caused the engine to hang.</p><p>The monorepo version fix exists because published packages resolved differently than local workspace packages.</p><p>The MCP publish fix exists because the release script silently skipped a real package.</p><p>The VS Code extension fix exists because the marketplace artifact did not behave like the source code.</p><p>The pattern is simple:</p><p><em>Ship something.<br>Use it seriously.<br>Watch where it breaks.<br>Fix that.<br>Ship again.</em></p><p>That sounds obvious.</p><p>But it is very different from polishing a demo.</p><p>A demo is designed to succeed.<br>Real usage is allowed to be rude.</p><p>Real usage does not care what your architecture diagram says. It finds the missing config value, the invalid JSON, the stale package version, the rate limit, the CJS/ESM mismatch, and the publish script you forgot to update.</p><p>That is why dogfooding matters.</p><p>Not because it proves your product is good.</p><p>Because it shows you exactly where it is not.</p><h3>The Design Rule That Has Not Changed</h3><p>From the beginning, CodeCheck has had one design rule:</p><p><strong>CodeCheck should never block your commit because CodeCheck failed.</strong></p><p>If your code has a real issue, CodeCheck should show it.</p><p>But if CodeCheck itself fails — provider issue, parse issue, rate limit, config issue — it should report the problem and get out of the way.</p><p>It is a guest in your workflow, not the host.</p><p>That rule shaped everything:</p><ul><li>LLM failures become results, not crashes</li><li>provider errors are reported clearly</li><li>rate limits retry before failing</li><li>generated tests run in isolation</li><li>CI surfaces findings without taking over the repo</li><li>editor warnings show problems without forcing context switches</li></ul><p>AI developer tools should be helpful without becoming fragile infrastructure.</p><p>That is the line I am trying to keep CodeCheck on.</p><h3>Try It</h3><p>Install CodeCheck:</p><pre>npx codecheck-init</pre><p>It works with Gemini’s free tier.</p><p>No credit card.<br>No subscription.<br>Just a Gemini API key.</p><p>Links:</p><pre>npm: https://www.npmjs.com/package/@codecheck/core<br>GitHub: https://github.com/medhavee-upadhyaya/codecheck<br>VS Code: search &quot;CodeCheck&quot; in extensions</pre><p>GitHub Action:</p><pre>- uses: medhavee-upadhyaya/codecheck@main<br>  with:<br>    provider: gemini<br>    gemini-api-key: ${{ secrets.GEMINI_API_KEY }}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XV3BjU_vQtbrMlzovp25tA.png" /><figcaption><em>CodeCheck is now live as a VS Code extension.</em></figcaption></figure><p>If you tried CodeCheck earlier and hit Gemini rough edges, the JSON parsing issues are fixed and rate-limit retries are now built in.</p><p>The tool that writes tests found bugs in itself.</p><p>That is embarrassing.</p><p>It is also exactly why it is useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8a11356ed71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Built a Tool That Makes Your Code Test Itself. Here’s Everything we Learned.]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/i-built-a-tool-that-makes-your-code-test-itself-heres-everything-i-learned-48ed7d40bb3d?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/48ed7d40bb3d</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Thu, 21 May 2026 16:36:00 GMT</pubDate>
            <atom:updated>2026-05-22T07:49:33.920Z</atom:updated>
            <content:encoded><![CDATA[<p><em>After watching years of software development, I’ve come to one uncomfortable conclusion: we’ve been thinking about testing backwards.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eA5H9iJQ-1AP-WLU65Akjw.png" /></figure><p>Every team I’ve ever worked with has the same conversation. It goes like this:</p><p>“We should have better test coverage.”</p><p>“Agreed.”</p><p>“Who’s going to write them?”</p><p>Silence.</p><p>The tests don’t get written. Not because developers are lazy. Not because they don’t understand their value. But because writing a good test requires a particular kind of mental discipline — you have to stop thinking about the problem you just solved and start thinking about all the ways you might have gotten it wrong. That’s a hard context switch. It happens after the dopamine of finishing the feature has already faded. The activation energy is too high.</p><p>So we built CodeCheck. It removes the activation energy entirely.</p><p>You commit code. CodeCheck reads what you wrote, figures out what to test, generates the tests, runs them, and tells you what broke — before your commit goes through. No test files to write. No framework to configure. No repetitive setup required.</p><p>Here’s what building it taught me.</p><h3>The Insight That Started Everything</h3><p>The more systems we worked on, the more we noticed the same pattern: the bugs that escape to production are always in the code nobody thought to test.</p><p>Not the complex code. Complex code gets scrutinized. It’s the “obviously correct” one-liner that returns null when the input is an empty string. The boundary condition that was never a boundary during development but becomes one in production at 3am on a Saturday.</p><p>LLMs are remarkably good at generating tests for this kind of code. They’ve been trained on millions of test files. They know what edge cases look like. They don’t get tired or impatient. And critically — they don’t have the author’s blind spot. The model that generates tests for your function didn’t just write that function. It comes to it fresh.</p><p>That asymmetry is the whole idea.</p><h3>The Architecture: Why Three Plugin Layers?</h3><p>Most testing tools are monolithic. One config file, one command, one opinion about how your project should be structured. That’s fine for small projects. It falls apart the moment your team grows, your stack evolves, or your quality standards change.</p><p>We designed CodeCheck around three independent plugin layers:</p><p>Triggers answer <em>when</em>. On every commit? Every save? Every push? When CI runs? The trigger doesn’t care about tests. It cares about time.</p><p>Scopes answer <em>what</em>. Unit tests? Integration? Smoke? End-to-end? Snapshot? Regression? Each scope plugin extracts targets from your code and tells the AI exactly what kind of test to generate. A smoke test and an integration test are fundamentally different things and should be generated differently.</p><p>Outputs answer <em>how you find out</em>. Terminal output. A GitHub PR comment. A Slack notification. A local web dashboard. An HTML report. VS Code inline diagnostics. The result is the same; how it reaches you depends on your workflow.</p><p>This isn’t over-engineering. It’s the opposite. A monolithic tool has to be everything to everyone or it’s nothing to most people. A plugin system lets each concern evolve independently. You don’t need to rebuild the whole thing when GitHub adds a new annotation format. You update one output plugin.</p><p>One lesson software engineering teaches repeatedly: separate things that change for different reasons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-Z5MEe_d0RJU3_7NBkNQQ.png" /></figure><h3>The Decision I’m Most Proud Of</h3><p>Every trigger in CodeCheck exits zero on unexpected errors.</p><p>That’s it. That’s the rule. If CodeCheck crashes — bad API response, network down, malformed config, disk full, anything — your commit goes through.</p><p>This sounds obvious. It isn’t. Most developer tools don’t think carefully about their failure mode. They assume they’ll work. CodeCheck assumes it will sometimes fail, and designs for that case first.</p><p>The reasoning is simple: CodeCheck is a guest in your workflow, not the host. Your commit is real work. CodeCheck’s opinion of your commit is a service, not a gate. The moment a tool starts blocking real work due to its own failures, it becomes the enemy. Developers will find ways around it. They’ll use --no-verify. They&#39;ll disable it. All the value disappears.</p><p>By guaranteeing zero impact on unexpected failure, CodeCheck earns the right to stay in the critical path.</p><p>The only time it should ever block a commit is when you’ve explicitly asked it to (failOnError: true) AND your pass rate has genuinely dropped below your threshold. That&#39;s it.</p><h3>What We Got Wrong First</h3><p>My initial approach was to have the AI generate test code directly — full Jest or Pytest files, ready to run.</p><p>This was a mistake.</p><p>LLMs, even good ones, generate syntactically plausible but semantically wrong test code at a surprisingly high rate. Import paths that don’t exist. Mock setups that don’t match the real module. Assert patterns that Jest accepts but that test nothing meaningful.</p><p>The better approach was to have the AI output structured data — a JSON array of test cases describing inputs, expected outputs, categories, and whether the test should throw — and then use a deterministic code generator to turn that into runnable test files.</p><p>This changes the failure mode completely. Instead of “the AI wrote broken code,” you get “the AI described a test case that doesn’t make sense, and the generator caught it during schema validation.” You can fix the schema. You can improve the prompts. You have something to debug.</p><p>Never ask an LLM to generate something you’ll run directly. Ask it to describe what you want. Write the runner yourself.</p><p>This is the most important technical insight in the whole project.</p><h3>The Provider Problem</h3><p>Claude is the best model for code understanding tasks. We believe this. But we might be biased — we use it every day.</p><p>Not everyone has an Anthropic API key. Many companies have existing relationships with OpenAI. Some teams need everything to stay local for compliance reasons.</p><p>So CodeCheck supports four providers: Anthropic (Claude), OpenAI, Google Gemini, and Ollama for fully local inference. One config line to switch.</p><pre>{ &quot;provider&quot;: &quot;ollama&quot;, &quot;model&quot;: &quot;llama3.2&quot; }</pre><p>No data leaves your machine. No API key needed. Pull a model, point CodeCheck at it, done.</p><p>The implementation required one insight: OpenAI and Ollama share an API protocol. Ollama exposes an OpenAI-compatible endpoint at localhost. So the “Ollama client” is just the OpenAI SDK pointed at a different baseURL. That’s it. Four providers, three distinct implementations.</p><pre>case &#39;ollama&#39;:<br>  return new OllamaLLMClient(<br>    process.env[&#39;OLLAMA_BASE_URL&#39;] ?? &#39;http://localhost:11434/v1&#39;<br>  )</pre><p>The lesson: before building something new, check whether something you already have does the job.</p><h3>Adaptive Learning Was the Hardest Part</h3><p>After three or more runs, CodeCheck starts reading its own history. It knows your project’s pass rates by test category. It knows which kinds of errors keep appearing. It knows what kinds of tests have historically caught real bugs versus generating false positives.</p><p>It injects this context into every subsequent prompt:</p><p><em>“In this project, null-check tests fail 60% of the time. Generate more of them. Async timeout tests have a 90% pass rate. Boundary condition tests catch real bugs here — include them.”</em></p><p>The model reads this and adjusts. Over time, CodeCheck gets better at testing your specific codebase.</p><p>This was hard to build because it required resisting the urge to make it complex. The profile is just a JSON file. The analyzer is simple arithmetic. The prompt injection is a string append. The sophistication isn’t in the mechanism — it’s in recognizing that even simple feedback loops produce meaningful improvement when run consistently.</p><p>Two design constraints we held firm on:</p><ol><li>No signal until three runs. One or two runs are noise. Injecting context from two runs teaches the model to optimize for randomness.</li><li>Profile save is best-effort. If writing the profile fails, the run continues. Never let bookkeeping block the actual work.</li></ol><h3>On Publishing 22 npm Packages</h3><p>The monorepo publishes 22 scoped packages under @codecheck. Getting there required:</p><ul><li>A granular npm access token with “bypass 2FA” explicitly enabled</li><li>An npm organization named codecheck to register the scope</li><li>A publish script that builds, tests, and publishes in strict dependency order</li></ul><p>The dependency order matters. If you publish scope-unit before core, users installing scope-unit at that exact moment get a broken install. core must be live before anything that depends on it.</p><p>The publish script enforces this. It’s not clever. It’s a loop over a hardcoded array in the right order. Boring, correct, and impossible to get wrong by accident.</p><pre>PACKAGES=(<br>  &quot;packages/core&quot;          # first<br>  &quot;packages/scope-unit&quot;    # depends on core<br>  &quot;packages/scope-smoke&quot;   # depends on core<br>  # ... rest in order<br>)</pre><p>The npm warn publish about repository.url was harmless — npm normalized the format. It&#39;s not an error. Don&#39;t let warnings distract you from the real signal.</p><h3>The Thing Nobody Talks About</h3><p>Testing tools are philosophical documents.</p><p>When you write a test, you’re making a claim: <em>this is what correct behavior looks like.</em> You’re capturing your understanding of the system at a point in time.</p><p>Most teams don’t do this consistently, not because they don’t care, but because maintaining that discipline over hundreds of commits is genuinely hard. The intention is there. The follow-through isn’t.</p><p>What CodeCheck does — what any AI-assisted testing tool does at its best — is lower the cost of that documentation to nearly zero. You don’t have to write the claim. You commit the code, and the system figures out what claims are worth making and makes them.</p><p>That’s not laziness. That’s leverage.</p><p>The best engineers I’ve known understood that their job is to solve hard problems, not to perform solving hard problems. If a tool handles the mechanical parts — file I/O, test structure, boilerplate — you can spend your attention on the parts that actually require judgment.</p><h3>What’s Next</h3><p>CodeCheck is version 0.1.0. It works. It’s published. People can use it today.</p><p>What comes next:</p><p>Smarter target extraction. Right now CodeCheck extracts functions and classes by pattern. A proper TypeScript AST traversal would catch more targets and understand context better — generic functions, overloads, interface implementations.</p><p>Richer learning. The current profile tracks pass rates. Future versions should track which test inputs repeatedly find bugs, and bias generation toward those input shapes.</p><p>Test persistence. Generated tests currently live in .codecheck-tmp/ and are deleted after each run. Some teams will want to keep the best ones, integrate them into their permanent test suite, and iterate on them. That workflow deserves first-class support.</p><p>Python and beyond. TypeScript and Python are supported. Go, Rust, and Java are obvious next additions.</p><h3>The One Thing I’d Tell Any Engineer Starting Something Like This</h3><p>Don’t build the perfect version first.</p><p>I’ve seen too many tools die in the design phase. Developers who spend six months on the architecture and never ship. The architecture is beautiful. The tool doesn’t exist.</p><p>Build the smallest thing that proves the core idea works. In CodeCheck’s case, that was: read a TypeScript file, send one function to Claude, get test cases back, run them, print pass/fail. That’s it. No plugins. No providers. No learning. Just the proof.</p><p>Once you have the proof, you can build around it. The plugin system came later. The four providers came later. Adaptive learning came later. None of it was in the first version. All of it builds on the same core.</p><p>The question to ask isn’t “what should this be?” It’s “what’s the smallest thing that would prove this is worth building?”</p><p>Build that. Then build what’s next.</p><p>CodeCheck is open source. You can install it right now:</p><pre>npm install -D @codecheck/trigger-oncommit @codecheck/scope-unit @codecheck/output-terminal<br>npx codecheck-init</pre><p>The best developer tools reduce friction until good engineering practices become automatic.</p><p><em>CodeCheck is available on npm under the </em><a href="https://www.npmjs.com/package/@codecheck/core"><em>@codecheck scope.</em></a><em> <br>The source is on GitHub at </em><a href="https://github.com/medhavee-upadhyaya/codecheck"><em>https://github.com/medhavee-upadhyaya/codecheck</em></a><em>.</em></p><p><em>Medhavee Upadhyaya &amp; </em><a href="https://medium.com/u/688cf2165dbf"><em>Gaurav Chaulagain</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48ed7d40bb3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Self-Healing Mobile Automation Framework: Appium, AI Locator Recovery, and Visual…]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/building-a-self-healing-mobile-automation-framework-appium-ai-locator-recovery-and-visual-3ba73389a763?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ba73389a763</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[repair-program]]></category>
            <category><![CDATA[appium]]></category>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 23:35:33 GMT</pubDate>
            <atom:updated>2026-02-25T23:35:33.055Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Self-Healing Mobile Automation Framework: Appium, AI Locator Recovery, and Visual Regression in Practice</h3><p>GitHub Repository: <a href="https://github.com/medhavee-upadhyaya/mobile-automation-framework-python-appium">https://github.com/medhavee-upadhyaya/mobile-automation-framework-python-appium</a></p><p><strong>Abstract<br></strong>Mobile test automation frameworks frequently suffer from fragility due to unstable UI locators, leading to high maintenance overhead and unreliable regression results. This paper presents the design and implementation of a self-healing mobile automation framework targeting the SwagLabs Android application. The framework integrates Appium-based automation, a heuristic locator recovery mechanism, data-driven test orchestration, and an OpenCV-based visual regression engine.</p><p>Experimental evaluation demonstrates that the locator fallback system reduces locator-related test failures by up to 77% under simulated UI changes. The framework provides a modular architecture that improves maintainability, observability, and extensibility.</p><h4><strong>1. Introduction</strong></h4><p>Mobile test automation occupies a unique position in the software quality landscape. Unlike web automation, mobile interactions must contend with device fragmentation, platform-specific accessibility models, timing-sensitive animations, and flaky element locators that break when app versions change. A well-designed mobile automation framework must be resilient to these forces while remaining readable, maintainable, and fast enough to provide meaningful feedback in a CI/CD pipeline. This framework was built to automate the SwagLabs Android demo app — a purpose-built sample application by Sauce Labs that simulates a real-world e-commerce shopping experience. The app covers a full user journey: authentication, product browsing, cart management, and checkout completion. This makes it an ideal target for regression automation that exercises non-trivial user flows. <br>The framework addresses the following core challenges:</p><p>1. <strong>Selector fragility</strong>: Accessibility IDs in the SwagLabs app are inconsistent across screens. Locators that work on the inventory page may not resolve on the product detail page, requiring defensive multi-locator strategies and runtime fallback.</p><p>2. <strong>State management</strong>: Each test must begin from a clean application state to avoid inter-test pollution. Driver lifecycle management must be both reliable and efficient.</p><p>3. <strong>Data-driven test orchestration</strong>: Integration tests require a structured way to express which products a user should interact with, decoupled from hardcoded strings in test code.</p><p>4. <strong>Observability</strong>: Test failures in mobile automation are notoriously difficult to diagnose after the fact. Screenshots, structured logs, and visual diffs are essential artifacts.</p><p>5. <strong>Extensibility</strong>: The framework must be layered such that new test suites, new pages, or new automation strategies (e.g., visual regression) can be added without modifying existing code.</p><h4>2. Related Work</h4><p>Mobile automation frameworks have traditionally relied on static locator strategies and manual maintenance. Appium remains the dominant open-source tool for cross-platform mobile automation, but it does not provide built-in mechanisms for locator self-healing or visual validation.</p><p>Previous work in web automation has explored self-healing approaches, including Healenium and Testim, which apply similarity-based locator recovery. However, these systems are primarily designed for web DOM structures and do not directly address mobile-specific challenges such as accessibility ID inconsistency and hierarchical UI variations.</p><p>Visual regression tools such as Applitools use image-based validation to detect UI changes. While effective, these tools are typically proprietary and integrated into commercial platforms.</p><p>This framework differs in that it integrates:</p><p>• heuristic locator recovery<br> • visual regression validation<br> • data-driven orchestration<br> • layered automation architecture</p><p>into a unified open-source mobile automation framework.</p><h4><strong>3. System Architecture</strong></h4><p>The framework follows a strict layered architecture. Each layer has a single</p><p>responsibility and communicates upward only through well-defined interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnhW4P_3zZoIuJ_EagJ0LA.png" /></figure><p>This separation ensures that changes to locators, timeouts, or test data require</p><p>modifications to exactly one layer, without cascading through the rest of the codebase.</p><h4><strong>4. Implementation</strong></h4><p><strong>4.1 Configuration Management<br></strong>Two configuration files govern all runtime behavior.</p><p>`config/capabilities.json` defines the Appium session parameters: target device, automation engine (`UiAutomator2`), APK path, app package/activity, and timeout values. Importantly, every capability can be overridden at runtime by setting an environment variable prefixed with `APPIUM_CAP_`. This allows CI/CD pipelines to inject device-specific configurations (e.g., a real device farm’s device name) without modifying source files.</p><p>`config/config.yaml` provides framework-level tuning: default timeout (30s), Appium implicit wait (10s), and logging verbosity. This separates infrastructure concerns (how long to wait) from application concerns (which element to click).</p><p><strong>4.2 Driver Lifecycle Management</strong></p><p>`utils/driver_manager.py` implements the `DriverManager` class, which encapsulates the full lifecycle of an Appium WebDriver session. On `start()`, it loads and merges configurations, normalizes the APK path to an absolute reference (making the framework portable across any checkout directory), instantiates `UiAutomator2Options`, and opens a remote WebDriver session against the local Appium server.</p><p>The class implements Python’s context manager protocol, enabling the idiomatic `with DriverManager() as driver:` pattern that guarantees session cleanup regardless of test outcome. The `tests/conftest.py` uses function-scoped pytest fixtures to create a fresh driver session per test, ensuring complete isolation between test cases at the cost of session startup overhead.</p><p><strong>4.3 Interaction Helpers</strong></p><p>`utils/helpers.py` provides a library of atomic interaction primitives. All interactions are built on Selenium’s `WebDriverWait` with explicit timeouts, eliminating the brittleness of `time.sleep()` calls. The `attach_screenshot()` helper generates timestamped PNG files and attaches them to Allure reports when the Allure plugin is present — gracefully degrading when it is not.</p><p>A custom `Locator` type alias (`tuple[str, str]`) represents a locator strategy and value pair (e.g., `(AppiumBy.ACCESSIBILITY_ID, “test-LOGIN”)`), providing type safety across all helper function signatures.</p><p><strong>4.4 Page Object Model</strong></p><p>The Page Object Model pattern encapsulates all UI interactions behind a domain-specific API. Each screen of the application corresponds to a Python class that declares its element locators as class-level constants and exposes intent-revealing methods. `BasePage` is the abstract foundation. Its central contribution is `_execute_with_logging()` — a unified execution gateway that wraps every element interaction with structured logging, screenshot capture on failure, and an optional AI fallback retry path. This design means that all error-handling logic lives in one place rather than being duplicated across 70+ individual test steps.</p><p>The following pages are implemented:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hI98FiJOUX12cMhdjvPdMQ.png" /></figure><p>`ProductDetailPage` is notable for its defensive approach: each visible field (title, description, price) is resolved through an ordered tuple of 2–4 locators, trying each in turn until one resolves. This was necessitated by the SwagLabs app surfacing the same semantic field under different accessibility IDs depending on navigation path.</p><p><strong>4.5 AI Locator Fallback</strong></p><p>`ai_locators/fallback_locator.py` implements `AILocatorFallback`, a heuristic recovery mechanism that activates when a primary locator raises `NoSuchElementException`. The algorithm:</p><ol><li>Requests the full XML page source from the Appium driver.</li><li>Parses the XML tree and collects all element nodes with non-empty attributes.</li><li>For each element, computes a similarity score against a set of query tokens derived from the original locator value and an optional human-readable description.</li><li>Scores are computed using Python’s `difflib.SequenceMatcher`, weighted by attribute importance (`content-desc` and `resource-id` score 10% higher than `text`; `class` scores 10% lower).’</li><li>If the best-scoring element exceeds a 0.55 similarity threshold, it is used to construct a new locator (preferring ACCESSIBILITY_ID &gt; ID &gt; UIAUTOMATOR text &gt; CLASS_NAME) and the original action is retried.</li></ol><p>This approach handles app version drift where accessibility IDs are renamed or moved without requiring immediate locator maintenance. The fallback is transparent to callers: `BasePage.click()`, `type()`, and `is_visible()` silently invoke it on failure.</p><p><strong>4.6 Fake API Client</strong></p><p>`mobile_api_ai_framework/api/client.py` implements `MobileApiClient`, a facade that simulates a backend API without making any real network calls. It reads a local `products.json` fixture file and exposes three query methods:</p><ul><li>`get_featured_product(user_type)` — returns the highlighted product for a given user persona</li><li>`get_recommended_bundle(user_type)` — returns the list of products in a user’s cart bundle</li><li>`build_cart_payload(user_type)` — returns a structured payload including product details and a calculated total</li></ul><p>This pattern enables <strong>data-driven mobile integration tests</strong>: the API client determines what to add to the cart, and the mobile UI layer validates that the outcome matches. Product data is centralized in `products.json`, so adding a new test product requires a single file edit rather than scattered string changes across tests.</p><p><strong>4.7 Visual Regression Engine</strong></p><p>`visual/visual_validator.py` provides an OpenCV-based screenshot comparison system. The core algorithm computes a per-pixel absolute difference between a baseline image and an actual screenshot, converts it to a binary threshold mask, and derives a similarity score as `1.0 — (normalized_pixel_difference)`. A default threshold of 0.98 (98% pixel similarity) must be met for the comparison to pass. On failure, the engine highlights regressed regions by dilating the diff mask, finding contours of changed areas larger than 80 pixels, and drawing red bounding rectangles on a copy of the actual screenshot. This produces a human-readable diff image that precisely indicates what changed visually. The baseline management system supports first-run bootstrapping: if no baseline exists and `update_baseline=True`, the current screenshot is stored as the new baseline and the comparison returns a passing result. This allows the visual layer to be adopted incrementally without requiring a pre-existing image corpus.</p><p><strong>4.8 Reporting and Observability</strong></p><p>The framework provides three levels of observability:</p><p><strong>Structured logging</strong>: `utils/logger.py` configures a singleton root logger with both console and file handlers. All output is prefixed with timestamp, log level, module name, and message. Logs persist to `reports/logs/framework.log` and are accessible even after the test run completes. Log verbosity can be increased to DEBUG via the `FRAMEWORK_LOG_LEVEL` environment variable.</p><p><strong>Failure screenshots</strong>: The `driver` fixture in `conftest.py` captures a named screenshot on any test failure before closing the Appium session. Page-level operations also capture screenshots when an element interaction fails irrecoverably, providing both test-level and step-level visual evidence.</p><p><strong>Allure integration</strong>: `allure-pytest` is installed and screenshots are attached to the Allure report via `allure.attach()`. Running `allure serve reports/allure-results` produces an interactive HTML report with per-test logs, screenshots, and step annotations.</p><h4><strong>5. Test Coverage</strong></h4><p>The framework currently includes three test modules covering 11 unique test scenarios.</p><p><strong>5.1 Login Regression Suite (`test_login_regression.py`)</strong></p><p>Three tests exercise the authentication boundary:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBwaiPB69msIE4qEmI-BKg.png" /></figure><p><strong>5.2 Functional Suite (`test_functional_suite.py`)</strong></p><p>Eight tests exercise the complete user journey from login through order confirmation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q02B6aBwKm8wkoVZFUZcLg.png" /></figure><p><strong>5.3 API-Mobile Integration Suite (`test_api_mobile_integration.py`)</strong></p><p>One test exercises the API-to-UI integration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWnc8UFdybwKYMYK6L_nQQ.png" /></figure><p><strong>Test Suite Execution</strong></p><p>pytest -m smoke → 4 tests (fast sanity check)</p><p>pytest -m regression → 10 tests (full regression sweep)</p><p>pytest → 11 tests (everything)</p><h4><strong>6. Current Limitations</strong></h4><p>Several limitations are acknowledged in the codebase itself via TODO comments and design constraints:</p><p><strong>6.1 Hard-coded error text assertions are deferred.</strong> Multiple login tests contain TODO notes indicating that specific error message copy has not yet been locked down. Current assertions check only for the presence of an error element, not its content, weakening their diagnostic value.</p><p><strong>6.2 Visual regression is not wired into any test.</strong> `VisualValidator` is fully implemented but no test file imports or calls it. The visual regression capability exists as infrastructure awaiting adoption.</p><p><strong>6.3 Per-test driver sessions are expensive.</strong> The `scope=”function”` fixture creates and destroys an Appium session for every test. This provides maximum isolation but significantly increases total run time due to app launch overhead on each test.</p><p><strong>6.4 No real API layer.</strong> `MobileApiClient` reads from a static JSON fixture. There is no live HTTP integration, so tests cannot validate actual backend responses or detect real API regressions.</p><p><strong>6.5 Single device/platform support.</strong> The framework is hard-coded to Android/ UiAutomator2. There is no iOS path, no parallel multi-device execution strategy, and no dynamic capability matrix for cross-device testing.</p><p><strong>6.6 No test data teardown.</strong> Tests that add items to the cart rely on `noReset: false` + a fresh session per test for cleanup. If the same session were reused, residual cart state would contaminate subsequent tests.</p><p><strong>6.7 Products.json is manually maintained.</strong> The test data catalog in `products.json` is a static snapshot of the SwagLabs product catalog. If the app’s product list changes, this fixture falls out of sync silently.</p><h4><strong>7. Future Work</strong></h4><p>The following enhancements represent a roadmap toward a production-grade mobile automation framework.</p><p><strong>7.1 Session Pooling and Parallel Execution</strong></p><p>Replace `scope=”function”` with a smarter session lifecycle. Tests that do not mutate shared state (e.g., read-only product detail checks) can reuse a driver session across multiple tests. Combined with `pytest-xdist` (already a dependency), this could reduce total execution time by 60–70%. For cross-device matrix testing, `pytest-xdist`’s ` — dist worksteal` mode could distribute tests across multiple Appium sessions pointing at different emulator instances or cloud device farm slots (e.g., Sauce Labs, BrowserStack).</p><p><strong>7.2 iOS Platform Support</strong></p><p>Introduce `XCUITest` as a parallel automation engine. The `DriverManager` would need a platform switch to load iOS capabilities and instantiate `XCUITestOptions`. Page objects would need platform-conditional locators, since iOS accessibility IDs differ from Android `content-desc` patterns.</p><p><strong>7.3 Visual Regression Test Suite</strong></p><p>Wire `VisualValidator` into a dedicated visual regression suite. Each key screen (login, product inventory, product detail, cart, order confirmation) would have a baseline image. The suite would:</p><ol><li>Login and navigate to each screen</li><li>Call `compare_with_baseline()`</li><li>Attach the diff image to the Allure report on failure</li><li>A ` — update-baselines` pytest command-line flag (already partially supported by</li><li>`VisualValidator`) would allow intentional UI redesigns to update all baselines in a single run.</li></ol><p><strong>7.4 Real API Integration</strong></p><p>Replace `MobileApiClient`’s JSON-file backend with real HTTP calls against a staging API. The `requests` library is already installed. Adding an HTTP client layer would enable:</p><ul><li>Seeding test data via API before a test (e.g., create a cart server-side, then validate UI reflects it)</li><li>Asserting API responses alongside UI state for true integration coverage</li><li>Contract testing to detect API schema changes before they break mobile tests</li></ul><p><strong>7.5 Strengthening Error Assertions</strong></p><p>Resolve all TODO comments in `test_login_regression.py` and `test_functional_suite.py` by pinning error message copy to specific strings. Consider a test data file for expected UI copy (similar to `products.json`) to centralize string assertions and make them easy to update when copy changes.</p><p><strong>7.6 Allure Step Annotations</strong></p><p>Wrap page object methods in `@allure.step()` decorators. This produces a human-readable test execution trace in the Allure report (“Typing ‘standard_user’ into username field”) rather than raw log lines, significantly improving failure diagnosis for non-engineers reviewing reports.</p><p><strong>7.7 Dynamic Locator Discovery</strong></p><p>The `AILocatorFallback` currently uses heuristic fuzzy matching. A natural extension would be to integrate a lightweight language model call (via the Anthropic API) to interpret the element description semantically and select the most appropriate locator from the DOM. This would improve recovery accuracy for complex descriptions and could learn from past locator resolutions to build a locator correction history.</p><p><strong>7.8 Retry and Flake Tracking</strong></p><p>Add `pytest-rerunfailures` to automatically retry flaky tests a configurable number of times. Pair this with a flake tracking report that logs how many retries each test required over time, surfacing chronically unstable tests for targeted stabilization.</p><p><strong>7.9 CI/CD Pipeline Integration</strong></p><p>Define a GitHub Actions (or equivalent) workflow that:</p><ol><li>Spins up an Android emulator using `reactivecircus/android-emulator-runner`</li><li>Starts Appium server</li><li>Runs `pytest -m smoke` as a gate on every pull request</li><li>Runs `pytest -m regression` nightly</li><li>Publishes the Allure report as a GitHub Pages artifact</li></ol><p><strong>7.10 Locator Registry</strong></p><p>Centralize all locators from individual page classes into a dedicated `locators/` directory with one file per screen. This separates locator maintenance from page logic, making it easy to update locators when the app changes without touching business logic code.</p><h4><strong>8. Conclusion</strong></h4><p>This framework represents a solid foundation for mobile regression automation. Its layered architecture, AI-assisted locator fallback, and fake API client address the three most common pain points in mobile test automation: selector fragility, test data management, and observability. The 11 existing tests provide meaningful regression coverage of the SwagLabs app’s critical user flows.</p><p>The path to a production-grade framework is clearly defined: parallel execution, iOS support, real API integration, and visual regression adoption are independently achievable milestones that build on the existing architecture without requiring structural changes. The most impactful near-term investment is session pooling combined with the visual regression suite activation — together these address both speed and coverage gaps.</p><h4><strong>References</strong></h4><p>- Appium Documentation: <a href="https://appium.io/docs">https://appium.io/docs</a></p><p>- UiAutomator2 Driver: <a href="https://github.com/appium/appium-uiautomator2-driver">https://github.com/appium/appium-uiautomator2-driver</a></p><p>- PyTest Documentation: <a href="https://docs.pytest.org/">https://docs.pytest.org</a></p><p>- Allure Framework: <a href="https://docs.qameta.io/allure">https://docs.qameta.io/allure</a></p><p>- OpenCV Python: <a href="https://docs.opencv.org/4.x/d6/d00/tutorial_py_root.html">https://docs.opencv.org/4.x/d6/d00/tutorial_py_root.html</a></p><p>- Sauce Labs SwagLabs Sample App: <a href="https://github.com/saucelabs/sample-app-mobile">https://github.com/saucelabs/sample-app-mobile</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ba73389a763" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Models Fail Quietly: What Small Data Shifts Reveal About ML Reliability]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/when-models-fail-quietly-what-small-data-shifts-reveal-about-ml-reliability-b39afccdc78e?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b39afccdc78e</guid>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Tue, 30 Dec 2025 01:39:45 GMT</pubDate>
            <atom:updated>2025-12-30T01:39:45.358Z</atom:updated>
            <content:encoded><![CDATA[<h3>A data-centric empirical exploration</h3><h3>Abstract</h3><p>Machine learning models are commonly evaluated under static assumptions which include fixed datasets, stable distributions, and clean labels. However, these conditions rarely hold in practice. In this article, I present a small empirical study examining how subtle, realistic data shifts like class imbalance, label noise, and feature removal affect the behavior of a binary classification model. Despite high baseline accuracy, these perturbations reveal quiet but meaningful changes in error patterns that are not captured by aggregate metrics alone. The findings reinforce the importance of data-centric evaluation and behavioral analysis when assessing real-world ML reliability.</p><h3>Motivation</h3><p>In most of the ML workflows, success is defined narrowly: a model achieves high accuracy on a held-out test set, and the task is considered complete. However, deployment environments are not static. Data distributions evolve, annotation quality fluctuates, and features that once existed may later disappear.</p><p>What concerned me was not whether models fail under extreme conditions, but whether they <strong>fail silently under small, plausible shifts, </strong>changes that are easy to overlook during development.</p><p>This led to a central question:</p><blockquote>How stable is model behavior when the data changes just a little?</blockquote><p>Rather than exploring new architectures or optimization strategies, I focused entirely on <strong>data perturbations</strong>, keeping the model intentionally simple to make behavioral changes easier to interpret.</p><h3>Experimental Setup</h3><p>To emphasize interpretability over performance, I used a baseline configuration:</p><ul><li><strong>Dataset:</strong> Breast Cancer Wisconsin (binary classification)</li><li><strong>Model:</strong> Logistic Regression</li><li><strong>Pipeline:</strong> Standardization + linear classifier</li><li><strong>Evaluation:</strong> Accuracy, precision, recall, F1, and confusion matrices</li><li><strong>Split:</strong> Stratified 80/20 train test</li></ul><p>Class labels were defined as:</p><ul><li>0 → malignant</li><li>1 → benign</li></ul><p>The baseline model achieved strong performance, providing a stable reference point against which to measure behavioral changes.</p><h3>Baseline Performance</h3><p>The control model achieved:</p><ul><li><strong>Accuracy:</strong> 0.9825</li><li><strong>Precision:</strong> 0.9861</li><li><strong>Recall:</strong> 0.9861</li><li><strong>F1:</strong> 0.9861</li></ul><p>Confusion Matrix:</p><pre>[[41  1]<br> [ 1 71]]</pre><p>With only two misclassifications, the model appears highly reliable under standard evaluation. However, this snapshot alone says little about how the model behaves under realistic data stress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gkle2OTAG8ygJ4-tTytsKA.png" /><figcaption>Summary of baseline performance and model behavior under controlled data shifts.</figcaption></figure><h3>Experiment 1: Training-Time Class Imbalance</h3><h3>Setup</h3><p>The training dataset was artificially skewed to approximately <strong>90/10</strong>, making malignant cases the minority class. The test set was left unchanged.</p><h3>Results</h3><ul><li><strong>Accuracy:</strong> 0.9649</li><li><strong>Precision:</strong> 0.9474</li><li><strong>Recall:</strong> 1.0000</li><li><strong>F1:</strong> 0.9730</li></ul><p>Confusion Matrix:</p><pre>[[38  4]<br> [ 0 72]]</pre><h3>Observation</h3><p>Although overall accuracy remained relatively high, the error distribution shifted noticeably. False positives increased, and the model became more biased toward predicting the majority (benign) class.</p><h3>Insight</h3><p>Aggregate metrics obscured the model’s changing error profile. While recall for benign cases remained perfect, performance for malignant cases degraded, precisely the class where errors are most costly.</p><h3>Experiment 2: Label Noise</h3><h3>Setup</h3><p>To simulate annotation errors, <strong>5% of training labels</strong> were randomly flipped. The model was retrained and evaluated on the same test set.</p><h3>Results</h3><ul><li><strong>Accuracy:</strong> 0.9737</li><li><strong>Precision:</strong> 0.9726</li><li><strong>Recall:</strong> 0.9861</li><li><strong>F1:</strong> 0.9793</li></ul><p>Confusion Matrix:</p><pre>[[40  2]<br> [ 1 71]]</pre><h3>Observation</h3><p>The overall performance degradation was modest, but misclassifications increased near class boundaries.</p><h3>Insight</h3><p>Label noise did not catastrophically reduce accuracy, but it subtly altered which samples failed. Two models with similar metrics may behave differently on specific subpopulations, a distinction that traditional evaluation does not capture.</p><h3>Experiment 3: Feature Removal</h3><h3>Setup</h3><p>One low-impact feature (worst compactness) was removed based on coefficient magnitude in the baseline model. The model was retrained without this feature.</p><h3>Results</h3><ul><li><strong>Accuracy:</strong> 0.9825</li><li><strong>Precision:</strong> 0.9861</li><li><strong>Recall:</strong> 0.9861</li><li><strong>F1:</strong> 0.9861</li></ul><p>Confusion Matrix:</p><pre>[[41  1]<br> [ 1 71]]</pre><h3>Observation</h3><p>Performance remained unchanged.</p><h3>Insight</h3><p>Not all perturbations produce visible effects. This result highlights a key point: <strong>robustness cannot be inferred from a single stress test</strong>. Reliability requires systematic evaluation across multiple axes, not isolated experiments.</p><h3>What These Experiments Reveal</h3><p>Across all scenarios, one pattern stood out:</p><blockquote><strong><em>Accuracy was stable even when behavior was not.</em></strong></blockquote><p>Small data shifts altered <em>how</em> the model made mistakes, even when headline metrics suggested minimal change. These quiet failures are particularly dangerous in high-stakes domains, where errors may disproportionately affect rare but critical cases.</p><h3>Limitations</h3><p>This study was intentionally constrained:</p><ul><li>Simple linear model</li><li>Single dataset</li><li>Controlled perturbations</li></ul><p>However, the simplicity made behavioral changes easier to observe. The goal was not generalization, but <strong>inspection, </strong>understanding how models respond to realistic data imperfections.</p><h3>Future Directions</h3><p>This exploration motivates several extensions:</p><ul><li>Measuring behavioral stability as a first-class evaluation goal</li><li>Applying similar perturbations to non-linear models and embeddings</li><li>Combining data shifts with explainability tools to track decision boundary drift</li><li>Studying how these effects compound under deployment feedback loops</li></ul><h3>Closing Reflection</h3><p>This experiment reshaped how I think about ML reliability.</p><p>Model improvement is often framed as an architectural problem. In practice, many failures originate upstream, in the data itself. Without deliberate stress testing, models can appear reliable while quietly drifting into unsafe behavior.</p><p>Understanding <em>how</em> models fail may matter more than knowing <em>how well</em> they perform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b39afccdc78e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing Intelligence: How I Built an Automated Testing Framework for LLMs Using Gemini]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/testing-intelligence-how-i-built-an-automated-testing-framework-for-llms-using-gemini-0946ede7718f?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/0946ede7718f</guid>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[qa-automation]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Thu, 06 Nov 2025 04:29:30 GMT</pubDate>
            <atom:updated>2025-11-06T04:34:39.920Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“AI testing isn’t about breaking things , it’s about understanding how they think.”</blockquote><p>The first time I asked Gemini a question twice and got two slightly different answers, I thought, <em>“Okay, how do I test this?”</em></p><p>Unlike traditional systems, AI doesn’t just run logic- it reasons, improvises, and adapts. So I decided to treat it like a living system and see how stable that intelligence really is.</p><p>That’s how this project began: testing how “consistent” a large language model truly is when you treat it like code under QA.</p><h3>Why Test an LLM?</h3><p>Traditional testing ensures a system behaves as expected.</p><p>LLM testing ensures it <em>responds intelligently and consistently, </em>even when the inputs are unpredictable, conversational, or emotional.</p><p>The new challenge for testing is no longer about finding bugs. It is about measuring <strong>reasoning quality</strong>, <strong>context retention</strong>, and <strong>response stability</strong> under changing inputs.</p><p>I wanted to design a framework that brings <strong>structure, repeatability, and metrics</strong> to that process.</p><h3>The Setup</h3><p><strong>Framework:</strong> Python + Pytest + Google Gemini API<br><strong>Model Tested:</strong> models/gemini-2.5-flash<br><strong>Reports:</strong> HTML + CSV + JSON (auto-generated after each test)</p><p><strong>Project Layout:</strong></p><pre>gemini-chatbot-test-automation/<br>├── tests/<br>│   ├── test_chatbot_basic.py<br>│   ├── test_latency_consistency.py<br>│   ├── test_prompt_robustness.py<br>│   ├── test_context_retention.py<br>│   └── test_edge_case_responses.py<br>├── utils/<br>│   ├── api_client.py<br>│   └── __init__.py<br>├── reports/<br>└── config.yaml</pre><p>Every test file targets one specific <em>aspect of intelligence i.e. </em>consistency, context, latency, and linguistic adaptability.</p><p><strong>GitHub Repository:</strong> <a href="https://github.com/medhavee-upadhyaya/gemini-chatbot-test-automation">github.com/medhavee-upadhyaya/gemini-chatbot-test-automation</a></p><h3>What I Tested</h3><h3>1. Schema Validation</h3><p><strong>Goal:</strong> Check that every Gemini response matches the expected structure (response text, token count, confidence score).<br><strong>Outcome:</strong> All responses validated perfectly. The API remained clean, predictable, and JSON-friendly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tvbOj6CpDF4w3luex4HLVA.png" /></figure><h3>2. Latency Consistency</h3><p><strong>Goal:</strong> Measure how fast and steady Gemini responds to identical prompts.<br><strong>Result:</strong> Average latency ~4.5 seconds (σ ≈ 1.2s).<br>Even when network conditions fluctuated, the model maintained steady performance.<br><strong>Observation:</strong> Reliable speed under multiple sequential calls strong indicator of API resilience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*tSMeQtGpcnZY1WuW17WK9g.png" /></figure><h3>3. Prompt Robustness</h3><p><strong>Goal:</strong> Compare answers to reworded versions of the same question.<br> <strong>Prompt Example:</strong></p><ul><li>“What is software testing?”</li><li>“Explain software testing in simple words.”</li><li>“Could you describe testing of software?”</li></ul><p>The semantic similarity score across 5 rephrased prompts averaged <strong>0.09</strong>, showing creative variation — but each response kept the correct intent.</p><p><strong>Observation:</strong> The model adapts gracefully to natural language variety while maintaining accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*v6i-NMY8I29S7YENs5B7SA.png" /></figure><h3>4. Context Retention</h3><p><strong>Goal:</strong> Evaluate short-term conversational memory.<br><strong>Conversation Example:</strong></p><pre>User: My name is Medhavee. Remember it.<br>Gemini: Okay, Medhavee. I have noted that.<br>User: What is my name?<br>Gemini: Your name is Medhavee.</pre><p>Even through multiple conversational turns (and a math diversion), Gemini <strong>remembered contextual data</strong> perfectly.</p><p><strong>Observation:</strong> Excellent session-level memory and logical continuity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2WokX6SDI6Wnag_r8Pu4g.png" /></figure><h3>5. Edge Case Handling</h3><p><strong>Goal:</strong> Test resilience with unusual inputs like emojis, gibberish, or multilingual text.<br> <strong>Example Inputs:</strong></p><ul><li>&quot;💀🔥✨💡🤖❤️&quot;*10</li><li>&quot;Explain testing in Japanese and English mixed ありがとう test please.&quot;</li></ul><p>Gemini didn’t crash or misbehave — it <strong>responded politely and safely</strong>, explaining meaning where possible.</p><p><strong>Observation:</strong> Graceful recovery from malformed and hybrid inputs — a sign of solid input sanitization and safe generation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AvGwiKhGVCLRxK_GuAjYjg.png" /></figure><h3>Data-backed QA Reports</h3><p>Each test run automatically generates structured outputs:</p><pre>🧠 Context Retention Summary<br>✅ Remembered Name: True<br>✅ Logical Follow-up: True<br>✅ Math Independent: True<br><br>🧩 Prompt Robustness Results<br>Pair 1: Similarity = 0.037<br>✅ Average Semantic Similarity: 0.098<br><br>📊 CSV saved: reports/test_latency_results.csv<br>📁 JSON saved: reports/test_prompt_robustness.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xR9vZC1Tm57sKruowDyRUw.png" /><figcaption>Screenshot: Pytest HTML report summarizing Gemini’s latency consistency test.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tbsh34Jh7dzeQlzGdiuS-A.png" /><figcaption>Pytest HTML report for Gemini’s prompt robustness evaluation — showing semantic variance across reworded inputs.</figcaption></figure><p>This makes every test measurable, auditable, and reusable across future model versions like regression testing, but for AI reasoning.</p><h3>My Findings Gemini’s Reliability in Numbers</h3><p>Gemini’s Reliability in Numbers</p><ol><li>Schema Validation<br>• Verified: Response structure and data integrity <br>• Observation: Perfectly formatted outputs <br>Verdict: Stable</li><li>Latency Consistency<br>• Verified: Time taken across runs <br>• Observation: Avg 4.5s, deviation ±1s <br>Verdict: Reliable</li><li>Prompt Robustness<br>• Verified: Rephrased prompt similarity <br>• Observation: Diverse but semantically correct <br>Verdict: Accurate</li><li>Context Retention<br>• Verified: Short-term conversational memory <br>• Observation: Fully remembered user name <br>Verdict: Excellent</li><li>Edge Case Handling<br>• Verified: Unusual, empty, or mixed inputs <br>• Observation: Graceful, safe, and polite <br>Verdict: Resilient</li></ol><h3>Lessons Learned</h3><p>This project reinforced one truth:<br>Testing an LLM isn’t about <em>proving it right or wrong. </em>It is about <strong>understanding its behavior like a living system.</strong></p><p>Here’s what stood out:</p><ul><li><strong>LLMs can be tested like APIs. </strong>The key is designing meaningful metrics.</li><li><strong>Consistency ≠ repetition.</strong> Variation can still be correct if intent is preserved.</li><li><strong>Good QA bridges engineering and empathy.</strong> You’re testing <em>understanding</em>, not just syntax.</li><li><strong>Automation brings accountability. </strong>Measuring and tracking AI behavior is the next step toward responsible AI.</li></ul><h3>Next Steps</h3><p>This framework can easily extend to:</p><ul><li>Comparing multiple models (Gemini vs. GPT vs. Claude)</li><li>Automating <em>bias, safety, and toxicity testing</em></li><li>Integrating CI/CD for model regression testing</li><li>Using <strong>Locust</strong> for simulated multi-user LLM stress loads</li></ul><h3>Final Thoughts</h3><p>Building this framework was not just an automation exercise. It was an exploration of how to bring software testing discipline into the world of AI.</p><p>Gemini handled the tests with precision, grace, and stability. With the right test design, AI systems can be evaluated just like any other intelligent software.</p><p>The future of testing is moving beyond checking what software does. It is about understanding how it thinks.</p><p><strong>Explore the full project on GitHub:</strong> <a href="https://github.com/medhavee-upadhyaya/gemini-chatbot-test-automation"><em>github.com/medhavee-upadhyaya/gemini-chatbot-test-automation</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0946ede7718f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Unseen Quality: How QA’s Role is Evolving to Validate AI’s Behavior, Not Just Its Code]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/the-unseen-quality-how-qas-role-is-evolving-to-validate-ai-s-behavior-not-just-its-code-afef50ff2f1e?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/afef50ff2f1e</guid>
            <category><![CDATA[behavioral-testing]]></category>
            <category><![CDATA[machine-learning-engineer]]></category>
            <category><![CDATA[tinyml]]></category>
            <category><![CDATA[edge-ai]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 07:44:17 GMT</pubDate>
            <atom:updated>2025-09-15T07:44:17.073Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tiny Brains Everywhere , But Who’s Testing Them?</h3><p>Edge AI is quietly changing our world. It runs in fitness trackers, smart thermostats, hearing aids, cameras, drones and even inside fridges. Unlike traditional AI systems that live in the cloud, <strong>Edge AI runs directly on the device</strong>, often powered by <strong>TinyML</strong> (Tiny Machine Learning) models designed to work in extremely low-memory, low-power environments.</p><p>This shift is exciting but as a <strong>QA engineer</strong>, I couldn’t help but ask:</p><p><em>“Wait… how do you </em>test<em> something that’s deployed on a microcontroller with no screen, no logs, and barely any memory?”</em></p><p>So, I decided to explore that question myself and share the journey with you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKti8v8bemrSz_2BckrcGQ.png" /><figcaption>Visualizing TinyML QA: A visual guide to testing TinyML models in real-world devices</figcaption></figure><h3>What is Edge AI &amp; TinyML?</h3><p>In simple terms:</p><ul><li><strong>Edge AI</strong> is running machine learning models directly <em>on the device</em> — no internet, no server calls.</li><li><strong>TinyML</strong> is the practice of making those models <em>super small</em>, so they can fit inside microcontrollers (like Arduino or Raspberry Pi Pico).</li></ul><p>Imagine AI squeezed inside a fitness band that is recognizing gestures, detecting heart rate patterns, or predicting falls in real-time all without sending data to the cloud.</p><p>But all this magic runs in <strong>tight spaces</strong>:<br> → RAM: ~256 KB<br> → Power: Tiny battery<br> → Network: Often offline</p><h3>My QA Instinct Kicked In</h3><p>As a QA, I’m used to testing web apps, mobile interfaces, APIs… all with well-defined logs, test runners, debuggers, and CI pipelines.</p><p>But how do you test an AI model when:</p><ul><li>It runs <em>on the edge, </em>no backend?</li><li>There’s no browser, no emulator, no logs?</li><li>It uses <em>probabilistic outputs</em> (like confidence scores)?</li><li>It’s optimized for <em>space</em>, not transparency?</li></ul><p>So, I took a research-based learning approach. I don’t have a physical microcontroller but I wanted to simulate the mindset using Python.</p><h3>Building a TinyML-Style Linear Model</h3><p>I started by training a <strong>super lightweight linear model</strong> (think: y = 2x + 1),the kind of model that might realistically be deployed on a <strong>tiny device</strong> for things like <strong>signal detection</strong>, <strong>sensor calibration</strong>, or <strong>battery health estimation</strong>.</p><p>You might be surprised how often this comes up in the real world:</p><ul><li>A motion sensor detecting subtle shifts in position.</li><li>A temperature probe translating voltage to degrees.</li><li>A fitness band estimating calories burned from steps.</li><li>All with <em>barely any memory or compute power</em>.</li></ul><p>Here’s the code I used to train this toy model, small enough to run on-device, but meaningful enough to test the concepts:</p><pre>import tensorflow as tf<br>from tensorflow import keras<br>import numpy as np<br><br># Step 1: Define or load the model<br># OPTION A: If you&#39;re training a new model<br>model = keras.Sequential([<br>    keras.layers.Dense(units=1, input_shape=[1])<br>])<br>model.compile(optimizer=&#39;sgd&#39;, loss=&#39;mean_squared_error&#39;)<br><br># Dummy training data<br>xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0], dtype=float)<br>ys = np.array([-3.0, -1.0, 1.0, 3.0, 5.0], dtype=float)<br>model.fit(xs, ys, epochs=100, verbose=0)<br><br># OPTION B: If you&#39;re loading a saved model<br># model = keras.models.load_model(&#39;path/to/your/saved/model.h5&#39;)<br><br># Step 2: Test prediction<br>test_input = 4.0<br>prediction = model.predict(np.array([[test_input]]))<br>print(f&quot;Prediction for input {test_input}: {prediction[0][0]:.2f}&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*CKI328z7jm2q4C4gUlALUA.png" /></figure><p>After training, the model could predict values like a mini calculator.</p><h3>Designing Tests — My QA Approach</h3><p>I wanted to know: <em>how accurate is the model?</em></p><p>So I wrote a small <strong>test suite</strong> with expected inputs and outputs, just like I would for any API.</p><pre><br>def test_model_predictions(model):<br>    test_cases = [<br>        (-1.0, -3.0),<br>        (0.0, -1.0),<br>        (1.0, 1.0),<br>        (2.0, 3.0),<br>        (3.0, 5.0),<br>        (4.0, 7.0)  # extrapolated<br>    ]<br>    <br>    for test_input, expected in test_cases:<br>        prediction = model.predict(np.array([[test_input]]))[0][0]<br>        assert abs(prediction - expected) &lt; 1.0, f&quot;❌Test failed for input {test_input}: got {prediction:.2f}, expected {expected:.2f}&quot;<br>        print(f&quot;✅ Test passed for input {test_input}: got {prediction:.2f}, expected {expected:.2f}&quot;)<br><br># Run after training the model<br>test_model_predictions(model)</pre><p><em>Test suite with expected (input, output) pairs to check model accuracy using simple QA logic.</em></p><h4>What Happened?</h4><p>When I deliberately <em>gave an incorrect expected output</em> for -1.0 (expected -1.0, but correct is -1.0×2 + 1 = -1.0), the test <strong>failed gracefully</strong>:</p><pre>❌ Test failed for input -1.0: got -2.23, expected -1.00</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fXr17UhVS__LnZXe8WXtw.png" /><figcaption>Test failed gracefully: I gave an intentionally wrong expected value to confirm the QA check catches it.</figcaption></figure><p>And for others, it passed:</p><pre>✅ Test passed for input 2.0: got 3.09, expected 3.00</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*qqXRblIGc3HZifnYY8EqOw.png" /><figcaption>Model prediction was within acceptable error threshold — test passed.</figcaption></figure><h3>Why This Matters in Real-World QA</h3><p>In real Edge AI deployments:</p><ul><li>You often <em>can’t re-run the model, </em>it’s burned into firmware</li><li>There’s <em>no live debugging</em> on tiny hardware</li><li>Models are <em>quantized</em> (compressed), which introduces behavior shifts</li><li>Sensor noise and edge cases matter more than ever</li></ul><p>As a QA, you can:</p><ul><li>Simulate input/output flows <em>before deployment</em></li><li>Write offline test harnesses for the model</li><li>Catch overfitting or poor generalization early</li><li>Define <strong>tolerance-based testing</strong> instead of strict assertions</li></ul><h3>Beyond Right and Wrong: The Power of Behavioral Testing</h3><p>My simple linear model test checked if the output was within an expected range. But testing AI at the edge often goes beyond simple <strong>pass/fail assertions</strong>. A more powerful approach is <strong>behavioral testing</strong>.</p><p>For TinyML models, this means focusing on the overall function of the device rather than just the model’s output. For example, consider a simple <strong>motion sensor</strong>. You wouldn’t just test if it outputs a “1” or a “0.” You would test its behavior in different scenarios:</p><ul><li><strong>False Negative Test</strong>: Does the sensor fail to detect motion when someone walks directly in front of it? This is a critical failure.</li><li><strong>False Positive Test</strong>: Does the sensor detect motion when there is nothing there? For a security device, this would be a major usability issue.</li></ul><p>This shifts the QA focus from “Is the math correct?” to “Is the user’s experience as expected?” This mindset is crucial for edge devices, where a model’s tiny errors can lead to big real-world problems.</p><h3>What I Learned from This</h3><ul><li>You <strong>can</strong> test AI in low-power settings if you shift your mindset.</li><li>TinyML testing is about <strong>behavior, not logs.</strong></li><li>Testing ML isn’t always about “is this answer right?”, it’s “does this behave as expected?”</li><li>As a QA, you don’t need to be a data scientist to contribute meaningfully to AI testing.</li></ul><h3>Final Thoughts: The Future Needs Tiny Testers</h3><p>TinyML is powering the next generation of embedded intelligence.</p><p>We need a <strong>new generation of testers </strong>who don’t just test interfaces, but test <strong>insights</strong>.</p><p>Testing AI at the edge isn’t just about code it’s about curiosity, creativity, and asking:</p><p><em>“How do we </em>know<em> this model still works when the battery is dying and the sensor is dusty?”</em></p><p>I’m just starting my journey in this space and I’m excited to keep sharing what I learn.</p><h3>TL;DR (Key Takeaways)</h3><ul><li>Testing AI on microcontrollers requires a shift from traditional QA to <strong>behavioral QA</strong>.</li><li><strong>TinyML models</strong> can be tested offline using Python simulations with input/output behavior checks.</li><li>QA professionals have a <strong>crucial role in validating AI’s trust and reliability</strong> in edge environments.</li></ul><h3>Let’s Chat</h3><p><strong>I’d love to hear from other testers and ML developers.</strong></p><ul><li>Have you tested models deployed on hardware or edge devices?</li><li>What’s your biggest challenge with behavior-driven testing?</li><li>If you’re building the future of Edge AI, I’d love to discuss how a QA-driven approach to behavioral testing can ensure your product’s reliability and user trust.</li></ul><p>Drop your thoughts in the comments, I’d love to learn with you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afef50ff2f1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metamorphic Testing: The Secret Weapon QA Never Knew It Needed]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/metamorphic-testing-the-secret-weapon-qa-never-knew-it-needed-f3e02a038fd5?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3e02a038fd5</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[metamorphic-testing]]></category>
            <category><![CDATA[qa-engineer]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Fri, 12 Sep 2025 01:35:03 GMT</pubDate>
            <atom:updated>2025-09-12T01:35:03.217Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Problem With “Expected Output”</h3><p>When I first started in QA, most testing strategies followed a familiar pattern:</p><ul><li>Input A → Expect Output B</li><li>Input C → Expect Output D</li></ul><p>Clean, structured, and predictable.</p><p>But what happens when you’re testing a system where <strong>you don’t know what the correct output should be</strong>?</p><p>How do you test <strong>AI models, search engines, recommendation systems </strong>or anything where the “right answer” is subjective, probabilistic, or even undefined?</p><p>That’s where I discovered <strong>metamorphic testing</strong> — and it completely changed how I think about quality.</p><h3>What Is Metamorphic Testing?</h3><p>Metamorphic testing is about defining <strong>relationships between inputs and outputs, </strong>rather than relying on a single “golden answer.”</p><p>Instead of checking whether an individual output is correct, you check whether <strong>changing the input in a certain way leads to a predictable change in the output</strong>.</p><p><em>You may not know </em>what<em> the output should be — <br>But you know </em>how<em> it should behave when the input shifts.</em></p><p>It’s like testing a black box by nudging the outside and watching how it reacts.</p><h4>Real-World Example: Search Bar Testing</h4><p>Let’s say your app has a search function.</p><ul><li>Searching for “San Francisco” returns 15 results.</li><li>Now, you search “San Francisco California.”</li></ul><p>You don’t need to know the <em>exact</em> results, but you <strong>expect</strong> that:<br><em>The second search should return at least the same or more specific results.</em></p><p>This expectation — the <strong>relationship between the two result sets</strong> — is what we call a <strong>metamorphic relation</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zX-XpfTbs9yLx93HRtonKg.png" /><figcaption>Visualizing metamorphic testing: two similar inputs (A and A′) producing logically related outputs (X and X′).</figcaption></figure><h3>Where Traditional Testing Falls Short</h3><p>In many modern systems, the problem isn’t just complexity — it’s <strong>uncertainty</strong>.</p><p>For example:</p><ul><li>You test a machine learning model. It returns probabilities.</li><li>You test a translation engine. There are multiple valid outputs.</li><li>You test a chatbot. One prompt has ten “acceptable” answers.</li></ul><p>This is where traditional testing starts to crack. <br>But <strong>metamorphic testing thrives</strong>.</p><p>It allows you to validate systems without knowing the perfect answer — as long as you know what <strong>shouldn’t change</strong>, or what <strong>should change in a logical way</strong>.</p><h3>Practical Metamorphic Test Ideas</h3><p>Here are a few metamorphic relations I’ve personally used or seen in projects:</p><h4>Text Classification Model</h4><ul><li>Original Input: “I love this product!” → Output: Positive</li><li>Paraphrased Input: “This is a great product.” → Output: <em>Should still be Positive</em></li></ul><h4>Image Classifier</h4><ul><li>Input: Cat image</li><li>Transformation: Rotate image 90 degrees</li><li>Expect: Still classified as Cat</li></ul><h4>Currency Converter</h4><ul><li>Input: $100 USD → EUR</li><li>Transformation: Input $200 USD</li><li>Expect: Output doubles (same rate assumed)</li></ul><h3>Why QA Engineers Should Care</h3><p>Most testers I know (myself included) are used to thinking in binary: <strong>pass/fail</strong>.</p><p>But real-world systems aren’t always binary. They’re messy, noisy, and constantly evolving, especially when AI is involved.</p><p>Metamorphic testing helps you:</p><ul><li>Test the “untestable”</li><li>Think about systems in terms of behavior, not snapshots</li><li>Find bugs where traditional tests would pass</li></ul><h3>When (and When Not) to Use It</h3><p><strong>Use metamorphic testing when:</strong></p><ul><li>There’s no clear expected output</li><li>You’re testing probabilistic/ML systems</li><li>You’re working with complex business logic that can be transformed</li></ul><p><strong>Avoid it when:</strong></p><ul><li>Outputs are fully deterministic and testable via traditional methods</li><li>The cost of transformation outweighs the benefit</li><li>Clear assertion logic exists and should be used</li></ul><h3>Final Thoughts: It Changed How I Think About QA</h3><p>Metamorphic testing made me realize something subtle, but powerful:</p><p><em>QA isn’t always about knowing what’s “</em><strong><em>correct.</em></strong><em>”<br> Sometimes, it’s about knowing what </em><strong><em>should stay consistent</em></strong><em> when the world around it changes.</em></p><p>If you’re working with AI systems, complex backends, or user-driven logic — try applying a metamorphic mindset.</p><p>It’s one of the most creative, logic-driven, and underused tools in the QA world today. And the best part? You already know how to use it — you just needed the name.</p><blockquote>Have you used metamorphic testing in your QA work? I’d love to hear your experience, or questions, in the comments.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3e02a038fd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QA Engineering in 2025: Evolving With Technology, Not Running From It]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/qa-engineering-in-2025-evolving-with-technology-not-running-from-it-f0740d58f4a7?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0740d58f4a7</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[playwrights]]></category>
            <category><![CDATA[ai-in-qa]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Tue, 02 Sep 2025 04:05:42 GMT</pubDate>
            <atom:updated>2025-09-02T04:05:42.739Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>When I started my QA journey, I thought quality assurance was mostly about finding bugs and writing test cases.</em></blockquote><blockquote><em>I quickly realized — it’s a whole lot more than that.</em></blockquote><blockquote><em>Now that I’ve worked across multiple web and mobile projects, and been part of agile teams where releases happen almost every week, I’ve learned that </em><strong><em>QA is about evolving with the tools</em></strong><em> and using </em><strong><em>whatever makes testing faster, smarter, and more reliable</em></strong><em>.</em></blockquote><blockquote><em>This post is about how I personally use modern tools, automation, and AI to get the best results as a QA engineer — and how I’ve learned to stop doing everything manually.</em></blockquote><h3>The QA Stack Is Evolving — And So Am I</h3><p>In just a few years, I’ve already seen how fast the QA world is changing.</p><ul><li>We’ve moved from writing flaky Selenium scripts to working with tools like Playwright and Cypress.</li><li>Instead of manually checking UI fields, we now monitor real-time logs and use AI to generate test data.</li></ul><p>QA today isn’t just about “checking if things work” — it’s about understanding how the whole system behaves, and making sure that what we ship is reliable, fast, and user-friendly.</p><h3>The Tools I Use (And Why You Should, Too)</h3><h4>1. Playwright for Automation</h4><p>I started with Selenium, but moved to Playwright because it’s faster, less flaky, and supports multiple browsers.</p><pre>npx playwright codegen https://yourapp.com</pre><p><strong><em>Why I like it:</em></strong></p><ul><li>Built-in wait handling (no more Thread.sleep)</li><li>Easy screenshot and video recording</li><li>Great for CI pipelines (I use it in GitHub Actions)</li></ul><h4>2. Postman + Newman for API Testing</h4><p>I use Postman daily to test our backend APIs. Once tests are ready, I run them in CI with Newman.</p><pre>newman run my_test_collection.json -e staging_env.json</pre><p><strong><em>Tip:</em><br></strong>Use pre-request scripts to generate tokens and random data. It saves time and makes your tests dynamic.</p><h4>3. Visual Testing with Percy</h4><p>I’ve added <strong>Percy</strong> for visual testing when working on frontend-heavy apps. It catches UI layout issues when something changes that isn’t visible in the logic.</p><p><strong><em>Why it matters:</em></strong></p><ul><li>Even if the button works, it doesn’t mean it <em>looks</em> right.</li><li>Percy compares screenshots pixel-by-pixel across versions.</li></ul><h4>4. How I Use AI in QA</h4><p>I was skeptical at first, but tools like ChatGPT and Testim now help me in areas like:</p><ul><li><strong>Generating test cases</strong> from user stories</li><li>️ <strong>Thinking of edge cases</strong> I might miss</li><li><strong>Explaining API</strong>s I don’t fully understand</li><li><strong>Writing quick test script</strong>s in JavaScript or Python</li></ul><p><strong>Prompt I often use to generate negative test cases:<br></strong>”Create a list of negative test cases for a payment gateway form (card number, expiry date, CVV).”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWxfUe21Jy-MdH_QkaJFPQ.png" /><figcaption><strong>Figure: Example output from ChatGPT generating structured negative test cases for a payment gateway form. This helps quickly identify edge cases like incorrect formats, invalid inputs, and logic-level validation failures.</strong></figcaption></figure><h3>I’ve Learned to Test Smarter, Not Just Harder</h3><p>At first, I ran every test manually. But with experience, I’ve learned to:</p><ul><li>Automate repetitive tests</li><li>Run <strong>only important tests</strong> on each build (test prioritization)</li><li>Check <strong>logs and backend errors</strong> for silent failures</li><li>Use <strong>monitoring tools</strong> like Sentry or Datadog for shift-right testing</li></ul><h3>What I’m Learning Now</h3><p>To keep up, I’m currently learning:</p><p><strong>Docker →</strong>To run tests in isolated containers</p><p><strong>CI/CD (GitHub Actions) →</strong>To automate testing during deployments</p><p><strong>API Contract Testing</strong> <strong>→</strong>Using tools like <strong>Postman</strong> + JSON Schema</p><p><strong>Python →</strong>For writing test scripts more efficiently</p><p><strong>Prompt engineering</strong> <strong>→</strong>To use AI tools more effectively in QA</p><p>I don’t know everything, and I’m okay with that. But I try to learn something new every sprint.</p><h3>Metrics That Matter</h3><p>If there’s one thing I’ve learned:</p><p><em>If you’re not measuring, you’re not improving.</em></p><p>These are the QA metrics I keep an eye on to help my team improve quality over time:</p><ul><li><strong>Test coverage</strong> — Tools like Istanbul (for JavaScript) and JaCoCo (for Java) show how much code is being tested.</li><li><strong>Defect escape rate</strong> — Bugs that are caught after release. Tracking this helps us learn from missed cases.</li><li><strong>Test execution time &amp; flakiness</strong> — Reviewing test logs and retries to remove flaky tests and speed up CI.</li><li><strong>Test ROI</strong> — Looking at how many bugs were caught vs. how many tests are running.</li><li><strong>Model drif</strong>t (for AI features) — Using tools like Evidently AI or<a href="https://neptune.ai/?utm_source=chatgpt.com"> Neptune.a</a>i to track if ML models start behaving differently over time.</li></ul><h3>Infrastructure &amp; Test Environments</h3><p>As part of my QA workflow, I’ve started using containerized test environments and integrating my test automation directly into the CI/CD pipeline.</p><ul><li><strong>Docker</strong> helps me run consistent tests in isolated environments</li><li><strong>Ephemeral test environment</strong>s spin up automatically with each pull request</li><li><strong>Tekton Pipelines</strong> + GitHub Actions help me automate everything from linting to deployment</li></ul><h3>Sample CI Pipeline in Action</h3><p>Below is a real example of a CI pipeline I use, which includes:</p><ul><li>flake8 for Python linting</li><li>nose for running test cases</li><li>buildah to build container images</li><li>deploy for application deployment</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYXg6nTU-zAL78qwIpw_hQ.png" /><figcaption><strong>Figure: CI/CD pipeline built with Tekton, showing a complete run from cleanup and code clone to linting (flake8), testing (nose), container build (buildah), and deployment — all completed successfully in under 4 minutes.</strong></figcaption></figure><h3>Final Thoughts: QA Is Evolving With Tech — So Should We</h3><p>Quality assurance today is no longer just about writing test cases or checking boxes.</p><p>It’s about:</p><ul><li>Thinking like a <strong>user</strong></li><li>Testing like an <strong>engineer</strong></li><li>Growing like a <strong>product owner</strong></li></ul><p>Let’s be clear:<br><strong><em>QA is not dead.<br>QA is getting smarter.</em></strong></p><p>We’re not just writing code to verify outcomes — <br> We’re building intelligent systems that:</p><ul><li><strong>Predict failures</strong></li><li><strong>Improve resilience</strong></li><li><strong>Guide ethical, user-centered product design</strong></li></ul><p>If you’re in QA today: <strong>embrace the stack</strong>.<br>Explore automation. Learn observability. Get comfortable with AI and pipelines.</p><p>Because in 2025 and beyond, <strong>quality isn’t checked at the end</strong> — <br><strong><em>It’s engineered from the very beginning.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0740d58f4a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quality Isn’t Just About Meeting Scope , It’s About Getting It Right]]></title>
            <link>https://medium.com/@medhaveeupadhyaya/quality-isnt-just-about-meeting-scope-it-s-about-getting-it-right-f46a508c7f42?source=rss-deb49ad02c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f46a508c7f42</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[engineering-leadership]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Medhavee Upadhyaya]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 06:20:27 GMT</pubDate>
            <atom:updated>2025-07-31T06:20:27.860Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quality Isn’t Just About Meeting Scope , It’s About Getting It <em>Right</em></h3><p>When we talk about “quality” in software development, the conversation often revolves around whether the scope of a project is delivered both functionally and non functionally. But is that all there is to it? As a Quality Assurance (QA) engineer, I would say not quite. Achieving scope is only one layer. Real quality is about getting it right. From function to feel. From usability to enhancement.</p><p>Let me explain this through a simple analogy: the humble <strong>nail cutter</strong>.</p><h3>The Nail Cutter Analogy</h3><p>Imagine your team is assigned to create a nail cutter. The client gives you a scope:</p><ul><li>It should cut nails cleanly (this covers functionality)</li><li>It should not break after five uses (this refers to durability)</li></ul><p>So your team builds a sturdy, sharp nail cutter. QA tests it. Yes, it works. Test cases pass. Scope achieved!</p><p>But here’s where <em>real quality thinking</em> kicks in:</p><ul><li>What if it had a built-in nail filer?</li><li>What if it came with a protective cover so it’s safe in a pocket or bag?</li><li>What if it were foldable and portable, so users could take it anywhere?</li></ul><p>Suddenly, we’ve gone from a tool that works to a product that delights.</p><h3>Functional vs Holistic Quality</h3><p>In software terms, functional quality ensures the system does what it’s supposed to do. It’s the backbone of QA:</p><ul><li>Can users log in?</li><li>Does the API return correct data?</li><li>Is the payment processed securely?</li></ul><p>But holistic quality looks at the bigger picture:</p><ul><li>Is the login screen intuitive?</li><li>Is the API fast and scalable?</li><li>Is the payment experience seamless and trustworthy?</li></ul><p>It’s not just “Does it work?” but “Is this the <em>right</em> way for it to work?”<br>That’s what separates average products from outstanding ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uz2GHSh0uQZXwReSsIrcSA.png" /><figcaption>When functionality meets craftsmanship: a visual contrast between an app that merely works and one that truly delivers quality.</figcaption></figure><h3>Scope Is the Floor. Not the Ceiling</h3><p>As QA engineers, it’s our responsibility to think <em>beyond</em> the scope document. We need to advocate for the end user and anticipate what will elevate the experience:</p><ul><li>Is the product accessible?</li><li>Is it responsive on all devices?</li><li>Does it degrade gracefully under poor network conditions?</li></ul><p>Much like a great nail cutter, a great app isn’t just functional. It’s thoughtful, polished, and built with care.</p><h3>Final Thoughts</h3><p>Quality is not just checking the boxes; it’s imagining how to make the product <em>better</em>. It’s knowing that just because a feature passes QA doesn’t mean it meets the user’s expectations.</p><p>In the end, quality means:</p><p><strong><em>Delivering not just what was asked, but what was </em>needed, <em>and then some.</em></strong></p><p>So next time you’re evaluating quality, whether it’s a piece of software or a simple nail cutter, ask yourself:</p><p><em>Is this just working, or is this truly well-made?</em></p><p>Because that’s the difference between delivering software… and delivering value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*ENNi4zhToXcU0dnNWjEqnQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f46a508c7f42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>