<?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 HRISHIKESH ROY CHOUDHURY on Medium]]></title>
        <description><![CDATA[Stories by HRISHIKESH ROY CHOUDHURY on Medium]]></description>
        <link>https://medium.com/@2024sl93014?source=rss-1141266c81a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eTbwHudErwWNpB8i</url>
            <title>Stories by HRISHIKESH ROY CHOUDHURY on Medium</title>
            <link>https://medium.com/@2024sl93014?source=rss-1141266c81a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:43:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@2024sl93014/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[Mastering Automation: Why Tosca Beat Code-Heavy Tools]]></title>
            <link>https://medium.com/@2024sl93014/mastering-automation-why-tosca-beat-code-heavy-tools-bbfc79ed9f48?source=rss-1141266c81a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbfc79ed9f48</guid>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ui-test-automation]]></category>
            <category><![CDATA[tosca]]></category>
            <dc:creator><![CDATA[HRISHIKESH ROY CHOUDHURY]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 07:47:25 GMT</pubDate>
            <atom:updated>2025-04-27T07:47:25.068Z</atom:updated>
            <content:encoded><![CDATA[<h4>How model-based UI testing changed the way I approach automation.</h4><p>When you first think about test automation, “registration” and “login” might seem boring — after all, what could possibly go wrong there, right?<br>But in reality, these two flows <strong>are the gateway to your app</strong>. If users can’t sign up or log in, it doesn’t matter how good your product is — they’re not getting in.</p><p>In this post, I’ll walk you through how I automated the <strong>Registration</strong> and <strong>Login</strong> functionality of a <strong>MERN (MongoDB, Express, React, Node.js)</strong> app using <strong>Tricentis Tosca</strong>.<br>We’ll go deep into <strong>technical choices</strong>, <strong>pain points this solves</strong>, <strong>how Tosca stacks up against other tools</strong>, and the <strong>hands-on steps</strong> I took — the good, the bad, and the messy.</p><p>Let’s dive in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*8NifYOuScdJc75XfvITihg.png" /></figure><h3>First: Why even automate registration and login?</h3><p>When you ship fast (like most teams do today), you can’t afford bugs in the user authentication flow.<br>Manual testing is slow, inconsistent, and honestly, a bit soul-sucking after a while.</p><p>Automation here solves a lot:</p><ul><li><strong>Speed</strong>: Test in minutes, not hours.</li><li><strong>Reliability</strong>: Same steps, same validation, every time.</li><li><strong>Coverage</strong>: Quickly test multiple user roles, edge cases, and error scenarios.</li><li><strong>Regression Protection</strong>: UI changes? No worries — catch breakages early.</li></ul><p>Without automation, you’d be gambling with one of your app’s most critical features.</p><h3>Why I picked Tricentis Tosca (and not Selenium, Cypress, or Playwright)</h3><p>I had a lot of options:</p><ul><li><strong>Selenium</strong>: Full control, sure. But building and maintaining scripts? Painful and slow.</li><li><strong>Cypress</strong>: Amazing for frontend devs. Fast and sleek. But needs coding and tight browser control.</li><li><strong>Playwright</strong>: Powerful, especially for handling async-heavy apps like React. But still scripting heavy.</li></ul><p><strong>Tosca</strong>, on the other hand, stood out because:</p><ul><li>It’s <strong>model-based</strong>: You scan the UI once and reuse those “models” everywhere.</li><li>It’s <strong>no-code/low-code</strong>: You think in terms of flows and test design, not scripts and locators.</li><li>It handles <strong>dynamic React components</strong> really well with <strong>smart scanning</strong> and <strong>buffering</strong>.</li><li>It’s built for <strong>business-process testing</strong>, not just checking that a button exists.</li></ul><p>In short: If you want speed without sacrificing power, Tosca makes a lot of sense.</p><h3>Let’s get technical: How I actually automated the flows</h3><p>Here’s the real deal — what I did under the hood:</p><h3>1. Setting up the environment</h3><ul><li>Launched my <strong>MERN app</strong> locally: npm start for frontend, node server.js for backend.</li><li>Opened Tosca Commander and got ready to scan.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vp2BzmzlkToibmEdeQSubw.png" /><figcaption>Registration Page for the App</figcaption></figure><h3>2. Scanning the UI with XScan</h3><p>Tosca has this awesome feature called <strong>XScan</strong> — you open your app and start clicking on UI elements you want to automate.</p><p>I scanned:</p><ul><li><strong>Registration page</strong>: Username field, Email field, Password field, Register button.</li></ul><p><strong>Login page</strong>: Username/email field, Password field, Login button.</p><p>Some of these fields had <strong>React-generated IDs</strong> (which can change on every reload). Tosca helped by letting me <strong>anchor</strong>elements based on nearby static text (like field labels) instead of relying on flaky IDs.</p><p><strong>Pro Tip</strong>: For React apps, avoid dynamic attributes when scanning. Use stable anchors or structure-based recognition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-ir2URkQOez9PRM_y5iSQ.png" /><figcaption>Tosca XScan</figcaption></figure><h3>3. Building Test Cases</h3><p>Once the UI controls were scanned:</p><ul><li>I dragged the modules into a <strong>TestCase</strong>.</li><li>Filled in the actions:</li><li>Type username.</li><li>Type email.</li><li>Type password.</li><li>Click Register.</li><li>Validate success message.</li></ul><p>Similarly for login:</p><ul><li>Type username/email.</li><li>Type password.</li><li>Click Login.</li><li>Validate dashboard/homepage.</li></ul><p>All of this was <strong>low-code</strong> — I didn’t write a single line of JavaScript or XPath manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*__3MAgE6Z6QRgH2p9WiTTQ.png" /></figure><h3>4. Making it Data-Driven</h3><p>I didn’t want one boring hardcoded test, so I used Tosca’s <strong>TestCase Design</strong> feature:</p><ul><li>Defined test data sheets.</li><li>Parameterized username, email, and password fields.</li><li>Created multiple test instances in seconds — different users, different passwords — same model.</li></ul><p>This way, I wasn’t just testing one user registration, I was simulating <strong>real-world variations</strong> effortlessly.</p><h3>5. Executing and Debugging via ScratchBook</h3><p>Before locking anything in, I ran the tests in <strong>ScratchBook</strong> — Tosca’s quick-fire execution environment.</p><ul><li>Green = good.</li><li>Red = time to debug.</li><li>Tosca showed <strong>expected vs actual results</strong> beautifully, making troubleshooting super simple.</li></ul><p>Once things looked clean, I moved them into formal <strong>ExecutionLists</strong> for scheduled runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wCWtGVvAJQPJcgt8JwQkJA.png" /></figure><h3>The challenges (and how Tosca helped)</h3><p>Not everything was smooth.<br>Here’s where things got tricky — and how Tosca made my life easier:</p><ul><li><strong>Dynamic Content</strong>: React components sometimes changed positions or attributes after re-rendering.</li></ul><p>Solution: Used <strong>anchoring</strong> and <strong>wildcards</strong> in Tosca to stabilize control. recognition.</p><ul><li><strong>Timing issues</strong>: Page transitions weren’t instant.</li></ul><p>Solution: Added <strong>WaitOn synchronization settings</strong> — wait until certain elements appear before proceeding.</p><ul><li><strong>Validation</strong>: Success messages could vary based on server response time.</li></ul><p>Solution: Buffered output values and dynamically validated contents instead of strict matching.</p><h3>Final Thoughts: More than just a “demo”</h3><p>Automating Registration and Login isn’t glamorous, but it’s <strong>essential</strong>.<br>And doing it <strong>right</strong> — by thinking modularly, stabilizing your models, making your tests data-driven — is what makes your automation suite scalable, maintainable, and powerful.</p><p><strong>Tosca</strong> enabled me to:</p><ul><li>Build strong, repeatable tests without scripting headaches.</li><li>Handle a modern React UI without crumbling under dynamic changes.</li><li>Focus on <strong>what</strong> to test, not just <strong>how</strong> to click buttons.</li></ul><blockquote><em>Next steps I’m working on:<br>Automating </em><strong><em>Forgot Password</em></strong><em>, </em><strong><em>Two-Factor Authentication</em></strong><em>, and </em><strong><em>Profile Management</em></strong><em> using the same Tosca modeling strategies.</em></blockquote><p>If you’re tired of fragile, flaky UI automation and want something built for the long run, give Tosca a serious look.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbfc79ed9f48" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>