<?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 sneha rai on Medium]]></title>
        <description><![CDATA[Stories by sneha rai on Medium]]></description>
        <link>https://medium.com/@snehaitnov?source=rss-16bc6792bfb8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BMLxrP79qbR7w9KDVeIlgA.jpeg</url>
            <title>Stories by sneha rai on Medium</title>
            <link>https://medium.com/@snehaitnov?source=rss-16bc6792bfb8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 22:59:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@snehaitnov/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ From Scripts to Smart Tests: My Journey into AI-Powered Automation Testing]]></title>
            <link>https://medium.com/@snehaitnov/from-scripts-to-smart-tests-my-journey-into-ai-powered-automation-testing-049bf75adab7?source=rss-16bc6792bfb8------2</link>
            <guid isPermaLink="false">https://medium.com/p/049bf75adab7</guid>
            <dc:creator><![CDATA[sneha rai]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 05:38:03 GMT</pubDate>
            <atom:updated>2025-07-13T05:42:44.338Z</atom:updated>
            <content:encoded><![CDATA[<p>🤖 From Scripts to Smart Tests: My Journey into AI-Powered Automation Testing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCAnAj9mbGPxLOQ7YqgBXA.png" /></figure><p>“Wait… you trained AI to decide which tests to run?”<br>Yes, and it all started with a flaky test that haunted my CI/CD pipeline like a ghost in the machine.</p><p>---</p><p>🚀 The Beginning</p><p>As an automation engineer , I thought I had seen it all — Selenium hiccups, Rest Assured mysteries, and those frustrating element not found errors. But nothing annoyed me more than flaky tests — tests that pass locally and fail mysteriously in CI.</p><p>At first, I did what every sane engineer does: rerun.<br>Then: rerun again.<br>Then: write scripts to rerun automatically.<br>But deep inside, I knew I was fighting symptoms, not the disease.</p><p>---</p><p>🤯 The “AI” Trigger Moment</p><p>One evening, while reviewing test failure logs, a wild idea struck:<br>What if I could teach my automation framework to &quot;learn&quot; from past test executions?</p><p>Could I build a system that:</p><p>Learns from past failures?</p><p>Predicts which tests are likely to break?</p><p>Prioritizes execution based on risk?</p><p>Skips flaky ones until they’re fixed?</p><p>That night, I officially stepped into the world of AI in test automation.</p><p>---</p><p>🧱 Laying the Foundation</p><p>First things first: data.<br>I collected everything I could:</p><p>Pass/fail histories</p><p>Test durations</p><p>Assertion counts</p><p>Git commit diffs</p><p>Jira defects linked to test runs</p><p>I stored them in structured formats using CSV and MongoDB. And then came the fun part: training.</p><p>Using scikit-learn, I built a simple model to classify flaky tests using features like previous failure frequency and average execution time.</p><p>from sklearn.ensemble import RandomForestClassifier<br>model = RandomForestClassifier()<br>model.fit(X_train, y_train)</p><p>The results? Surprisingly accurate.</p><p>---</p><p>⚙️ Building Intelligence into the Framework</p><p>Once I had a model that could predict flaky tests, I integrated it into my TestNG-based Selenium + Rest Assured framework:</p><p>✅ Smart Skipping: The model predicts flaky tests, and the runner skips or reruns them conditionally.</p><p>✅ Test Prioritization: High-risk tests (based on historical patterns + recent code changes) run first.</p><p>✅ Alerting: If a flaky test suddenly becomes stable (or vice versa), it flags the change.</p><p>Every run made my model smarter. Every failure became fuel for prediction.</p><p>---</p><p>💡 Lessons Learned</p><p>1. AI doesn’t replace logic — it enhances decision-making.</p><p>2. Historical test data is gold — if you store it right.</p><p>3. ML isn’t magic — garbage in, garbage out still holds true.</p><p>4. Test Intelligence is the future — especially in large CI pipelines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=049bf75adab7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[‍ From Clicks to Code: My Automation Journey So Far ]]></title>
            <link>https://medium.com/@snehaitnov/from-clicks-to-code-my-automation-journey-so-far-e28194c722fc?source=rss-16bc6792bfb8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e28194c722fc</guid>
            <dc:creator><![CDATA[sneha rai]]></dc:creator>
            <pubDate>Sat, 12 Jul 2025 08:33:57 GMT</pubDate>
            <atom:updated>2025-07-12T08:33:57.469Z</atom:updated>
            <content:encoded><![CDATA[<p>It all started with curiosity. A curiosity to go beyond just executing test cases… to actually <em>automating</em> them. I’m Sneha Rai, and I’ve spent the last few years diving deep into the world of automation testing — and it’s been nothing short of transformative.</p><p>Back then, automation was just “Selenium and TestNG.” But for me, it was an entry point into something much bigger: a career that constantly challenges, evolves, and empowers.</p><h3>📍 Phase 1: The Selenium Sandbox</h3><p>Java + Selenium WebDriver + TestNG. My earliest tools, my building blocks. I started by writing small test cases and slowly graduated to building frameworks. Assertions, PageFactory, wait strategies — every bug I squashed taught me something new. There were struggles (especially those dreaded NullPointerExceptions 😅), but every fix made me more confident.</p><h3>📍 Phase 2: API Automation and REST Assured Love 💌</h3><p>Once I got comfortable with UI, I moved to API automation using <strong>Rest Assured</strong>. This is where I felt truly empowered — validating status codes, response bodies, chaining requests, and even starting to think about predictive test result analysis with <strong>AI integration</strong>. Yes, AI. Because I believe automation isn’t just about coverage — it’s about <strong>intelligence</strong>.</p><h3>📍 Phase 3: AI Meets Testing</h3><p>That’s where my vision evolved: “What if automation wasn’t just reactive? What if it could <em>predict</em>, <em>suggest</em>, and <em>learn</em>?” And so began my quest to <strong>integrate AI into testing</strong>, using concepts from <strong>scikit-learn</strong> and planning dashboards that learn from past test failures.</p><h3>📍 Phase 4: From Selenium to Playwright — Not Just a Migration, a Mindset Shift</h3><p>Recently, I’ve started transitioning to <strong>Playwright</strong> — and it’s been like learning to drive a new car. The speed, power, and modern dev-friendly features are thrilling. I’m now experimenting with cross-browser testing, smart waits, and better video call automation flows (yes, even those CCP Edge+Chrome integrations!).</p><h3>🚧 Real Talk: It Wasn’t Always Easy</h3><p>I’ve spent nights debugging authentication popups, figuring out iframe chaos, and chasing ghost 404s. But I’ve also built beautiful reports with <strong>ExtentReports</strong>, added <strong>retry logic</strong>, and created reusable test bases that make me proud.</p><h3>🔮 What’s Next?</h3><p>AI-based test case generation. Self-healing locators. And a dream to someday lead an intelligent automation team where AI isn’t the future — it’s the standard.</p><p>👉 If you’ve read this far, know this: I’m still learning, still growing, and always open to collaboration. Let’s connect, learn, and automate smarter — together. 💡</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e28194c722fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Title: Integrating AI with Automation in REST Assured]]></title>
            <link>https://medium.com/@snehaitnov/title-integrating-ai-with-automation-in-rest-assured-b8552287fa1c?source=rss-16bc6792bfb8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8552287fa1c</guid>
            <dc:creator><![CDATA[sneha rai]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 17:09:28 GMT</pubDate>
            <atom:updated>2025-07-13T05:48:33.292Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Integrating AI with Automation in REST Assured</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xpjjfWhsJJDQq7gZQ7s1Q.png" /></figure><h3>Introduction</h3><p>In the ever-evolving landscape of software testing, integrating Artificial Intelligence (AI) with test automation is transforming how we design, execute, and maintain test cases. REST Assured has been a go-to framework for API testing in Java. When combined with AI techniques, it unlocks smarter, faster, and more adaptive testing strategies.</p><p>In this blog, I’ll walk you through how to enhance your REST Assured automation framework by incorporating AI elements, such as dynamic data generation, test case prioritization, and intelligent failure analysis.</p><h3>Why Combine AI with REST Assured?</h3><ol><li><strong>Adaptive Test Execution:</strong> Use AI to decide which test cases to execute based on recent code changes.</li><li><strong>Smart Assertions:</strong> AI models can validate dynamic API responses intelligently.</li><li><strong>Failure Prediction:</strong> Machine learning models can identify flaky tests and predict failure trends.</li><li><strong>Data Generation:</strong> NLP and ML can create real-world test data scenarios.</li></ol><h3>Step-by-Step Integration Guide</h3><h3>1. Setup Your REST Assured Framework</h3><p>Start by creating a basic REST Assured setup using Java and Maven. Include dependencies:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;io.rest-assured&lt;/groupId&gt;<br>    &lt;artifactId&gt;rest-assured&lt;/artifactId&gt;<br>    &lt;version&gt;5.3.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><h3>2. Incorporate AI for Test Data Generation</h3><p>Use tools like Faker, GPT APIs, or data generation libraries to create diverse datasets:</p><pre>Faker faker = new Faker();<br>String email = faker.internet().emailAddress();</pre><h3>3. Apply ML for Test Case Prioritization</h3><p>Train a model using metadata (e.g., API usage frequency, last modified date) to prioritize test execution:</p><pre># Sample pseudo-code for ML prioritization<br>data = get_test_metadata()<br>model = train_model(data)<br>prioritized_tests = model.predict(test_features)</pre><h3>4. Log Analysis with NLP</h3><p>Apply Natural Language Processing to analyze logs and suggest probable causes for failures.</p><pre>from transformers import pipeline<br>analyzer = pipeline(&quot;text-classification&quot;)<br>result = analyzer(&quot;Error: Timeout while waiting for response&quot;)</pre><h3>5. Visualize the Results</h3><p>Integrate with tools like Allure or custom dashboards to present insights learned from AI modules.</p><h3>Conclusion</h3><p>The synergy between REST Assured and AI can bring smarter test automation to life. With machine learning and NLP, we can automate not just the API calls but also the analysis and decision-making around those tests.</p><p>This integration is not just a technical upgrade — it’s a leap toward smarter, adaptive, and future-ready testing frameworks.</p><p><strong>Follow me</strong> for more insights on test automation, AI, and developer productivity hacks.</p><p>📌 <em>#RESTAssured #AIinTesting #TestAutomation #MachineLearning #API #QualityEngineering</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8552287fa1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>