<?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 Bhagyashri Jagdale on Medium]]></title>
        <description><![CDATA[Stories by Bhagyashri Jagdale on Medium]]></description>
        <link>https://medium.com/@jagdalebr?source=rss-6b71f215960b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Zis73-g41z29fD_ylcxROA.png</url>
            <title>Stories by Bhagyashri Jagdale on Medium</title>
            <link>https://medium.com/@jagdalebr?source=rss-6b71f215960b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:58:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jagdalebr/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[Supercharge Testing with Playwright MCP Server and Cursor AI]]></title>
            <link>https://medium.com/@jagdalebr/supercharge-testing-with-playwright-mcp-server-and-cursor-ai-0e66f2430d11?source=rss-6b71f215960b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e66f2430d11</guid>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[cursor-ai]]></category>
            <category><![CDATA[playwrights]]></category>
            <dc:creator><![CDATA[Bhagyashri Jagdale]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 18:18:57 GMT</pubDate>
            <atom:updated>2025-04-27T18:18:57.921Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7C_8aca4eq4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7C_8aca4eq4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7C_8aca4eq4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ea643f5791a8ca4c7ddaac71fd37653/href">https://medium.com/media/5ea643f5791a8ca4c7ddaac71fd37653/href</a></iframe><h3><strong>Quick Introduction of Why MCP Is Required:</strong></h3><p>In our previous blog post, we discussed some common challenges in testing. Now let’s dive into how the Playwright MCP server directly tackles those issues. Let’s look at the specific testing areas where MCP is a powerful solution.</p><p><strong>Common Testing Challenges :</strong></p><p>Over time, working with E2E tests, I’ve run into a few recurring issues — and I’m sure many of you have too:</p><ul><li><strong>Flaky Tests Are a Headache<br></strong> Sometimes tests just fail randomly. One minute they pass, the next they don’t — and tracking down the “why” eats up way too much time.</li><li><strong>Test Environment Struggles<br></strong> Setting up consistent environments across teams and CI systems is never as easy as it should be.</li><li><strong>Slow Feedback Slows Everyone Down<br></strong> Long test runs delay deployments and break the flow. Especially when you’re running things serially in a limited CI setup.</li><li><strong>Debugging Feels Like Detective Work<br></strong> When a test fails, it can be hard to figure out what actually went wrong without digging through logs, rerunning locally, or trying to reproduce the issue manually.</li><li><strong>Scaling Gets Painful as Projects Grow<br></strong> As test suites grow, things naturally slow down unless you invest in scaling infrastructure — which adds more overhead.</li></ul><p><strong>How Playwright MCP Server Has Helped Me</strong></p><p>Switching to Playwright MCP Server made a noticeable difference in how I approach testing:</p><ul><li><strong>Everything in One Place<br></strong> I can run tests, see results, watch videos, check logs — all from a single, clean dashboard. It saves a lot of back and forth.</li><li><strong>Built-in Debugging Tools That Just Work<br></strong> Auto-captured screenshots, trace viewer, and console output make debugging effortless — it’s almost like watching a test replay.</li></ul><h3>Getting started:</h3><p><strong>Pre-requisites:</strong></p><ul><li>Playwright</li><li>Cursor AI Code Editor (Any other MCP-supported AI Code Editor i.e Claude Desktop)</li><li>npx</li></ul><p><strong>Quick Introdution of Cursor:</strong></p><p>Cursor is an AI-first code editor built on VS Code, designed to supercharge your development with intelligent code suggestions, refactoring, and debugging tools.</p><p>It’s like pair programming with an expert — seamlessly integrated into your daily workflow. Also, check out Winsurf.</p><p><strong>References:</strong></p><p>For more details please visit: <a href="https://www.cursor.com/">Cursor’s</a> official site.</p><p>For playwright MCP: visit<a href="https://github.com/microsoft/playwright-mcp"> Playwright MCP’s</a> Git Hub repo.</p><p>For playwright: <a href="https://playwright.dev/docs/intro">Playwright Installation Guide</a>.</p><p><strong>Steps:</strong></p><ol><li>Navigate to Cursor AI code editor.</li><li>Click on <strong>Cursor Settings</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mtm3DDyS23AwWLOI4ae-zg.png" /><figcaption>Cursor Settings Option</figcaption></figure><p>3. Click on “<strong>MCP Server”</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*v_218777n91FZbHVeE18Uw.png" /></figure><p>4. Click on “<strong>Add new global MCP server</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*F9pJiDQW6MKw6qpR4ZsKrQ.png" /></figure><p>5. Add JSON data as:</p><pre>{<br>    &quot;mcpServers&quot;: {<br>      &quot;playwright&quot;: {<br>        &quot;command&quot;: &quot;npx&quot;,<br>        &quot;args&quot;: [<br>          &quot;@playwright/mcp@latest&quot;<br>        ]<br>      }<br>    }<br>  }</pre><p>6. Save the file and navigate back to the Cursor Settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*yXIXdFY-_54_KjcyeeMgPg.png" /></figure><p>7. You will be able to view the playwright mcp server added and enabled.</p><p>8. Click on the “Toggle AI Pane” option from the right top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUzciXYBdMtIT-oQ61QFtA.png" /></figure><p>9. You’ll now see the new AI Pane open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*nQPyATpdihE147L01ASIow.png" /></figure><p>10. Make sure you have selected “Agent” here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*KIm1ormRgnOV9_MC1SptKg.png" /></figure><h3><strong>Let’s play around:</strong></h3><p>Step 1: Now, let’s start with the basic prompt:</p><p>“Navigate to Google.</p><p>Search for Bhagyashri Jagdale’s Medium blog.</p><p>Give me the summary of the most recent blog in 2–3 lines”.</p><p>Step 2: Hit enter and it will ask you for permission related to execution as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*mOna5WrishF7mi9ArLaCGA.png" /></figure><p>Step 3: Click on “Run Tool” It will open a browser instance and you will be able to view the Google Home page.</p><p>Step 4: After expanding every step you will be able to view the playwright&#39;s step executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*cgQTeIsIlSbQOJq3VOZjxQ.png" /></figure><p>Step 5: For every step, it will ask and once you click on “ Run tool” it will proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*DEXfYLXclOVW2HOFWYTf8Q.png" /></figure><p>Form Filling Scenario:</p><p>Step 1: Now let’s try another scenario, enter the prompt as</p><p>“Navigate to <a href="https://demoqa.com/automation-practice-form.">https://demoqa.com/automation-practice-form.</a></p><p>Enter the first name as “John”</p><p>Enter the last name as “Doe”</p><p>Enter the email address as “john.doe@gmail.com”</p><p>Select gender as Male.</p><p>Enter the mobile number as 1212232334</p><p>Click on Submit button.” into ChatGPT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*YJ670pOWxTWqnLb8do24nA.png" /></figure><p>Step 2: It returns a message as it can’t interact with websites. Now let’s provide the same prompt to the AI pane into the cursor.</p><p>Step 3: A prompt is the same as above (Step 1). While interacting, it encountered an issue caused by an ad overlaying the element. Impressively, it not only detected the problem but also suggested a solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*6BrDupQR_9N5xBQ9lF9TrQ.png" /></figure><p>Step 4: Now this prompt filled the form and returned the message as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*lbLVxj9bJBwFXb4IzkdnmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9wrT1yB8lM2ECnrT_HQLmg.gif" /></figure><p><strong>Tip:</strong></p><p>Step 1: To allow the agent to run all the execution steps without asking, please navigate to features from Cursor Settings.</p><p>Step 2: Enable the “ Enable Auto-Run Mode” flag.</p><p>Step 3: Please read the declaimer as:</p><pre><strong>Disclaimer</strong><br><br>Auto-run mode runs any commands based on the allowlist and denylist you set. <br>Be cautious of potential prompt injection risks from external sources and use <br>at your own risk.</pre><p>Step 4: Save the settings.</p><p>Step 5: Now run the prompt.</p><h3>Conclusion:</h3><p>Modern testing demands speed, reliability, and clarity — and that’s exactly where the Playwright MCP Server delivers. By centralizing test execution, debugging tools, and environment consistency, it eliminates many of the pain points testers face daily.</p><p>It’s not just a tool — it’s a smarter way to test at scale.</p><p>Happy learning!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e66f2430d11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playwright: From Complexity to Simplicity.]]></title>
            <link>https://medium.com/@jagdalebr/playwright-from-complexity-to-simplicity-90da3a87f544?source=rss-6b71f215960b------2</link>
            <guid isPermaLink="false">https://medium.com/p/90da3a87f544</guid>
            <category><![CDATA[playwright-automation]]></category>
            <dc:creator><![CDATA[Bhagyashri Jagdale]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 10:47:04 GMT</pubDate>
            <atom:updated>2025-01-26T10:47:04.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*BRAS-mu_271D4Xd8-6jTPQ.jpeg" /></figure><p><strong>Introduction:</strong></p><p>Playwright, a modern automation framework developed by Microsoft, was created to address common pain points in web testing and provide a more streamlined solution for teams</p><p>Let’s talk about a new framework “ Playwright “ but before this let’s have a look at challenges with the traditional testing frameworks and show how Playwright overcomes these challenges, demonstrating why you should start or switch to using Playwright.</p><h4>Challenge #1: Cross-Browser and Cross-Platform Testing</h4><ul><li><strong>Challenge</strong>: In traditional frameworks like Selenium, setting up cross-browser testing (Chrome, Firefox, Safari) across multiple OSs (Windows, Linux, macOS) is complex. Handling browser-specific quirks and managing different versions can be error-prone and time-consuming.</li><li><strong>Playwright’s Solution</strong>: Playwright supports cross-browser testing (Chrome, Firefox, WebKit) and cross-platform testing (Windows, Linux, macOS) with a single API. It automates browser installation and abstracts OS differences, making it easier to run tests in headless or headed mode, locally or on CI.<br><strong>Advantage</strong>: This unified approach significantly reduces the complexity of setting up and maintaining tests across multiple environments. You can focus on writing your test scripts, and Playwright handles the browser and OS variations seamlessly.</li></ul><h4>Challenge #2: Slow and Flaky Tests</h4><ul><li><strong>Challenge</strong>: Traditional frameworks often suffer from slow and flaky tests due to poor handling of waits, AJAX, and dynamic content.</li><li><strong>Playwright’s Solution</strong>: Playwright’s efficient handling of asynchronous behavior, built-in waiting mechanisms, and better network condition management lead to faster and more stable tests with fewer false failures.<br><strong>Advantage</strong>: Playwright’s intelligent waiting system ensures that tests run smoothly by automatically synchronizing actions with the state of the application. This reduces unnecessary delays and improves test reliability, giving you more stable and accurate results.</li></ul><h4>Challenge #3: Limited Parallelization Support</h4><ul><li><strong>Challenge</strong>: Running tests in parallel with traditional frameworks like Selenium requires complex tools like Selenium Grid, adding overhead to the setup.</li><li><strong>Playwright’s Solution</strong>: Playwright has built-in support for parallel test execution, allowing tests to run concurrently across different browser contexts or machines, speeding up feedback and improving resource efficiency.<br><strong>Advantage</strong>: The ability to run tests in parallel significantly reduces test execution time, helping you get faster feedback. This also improves the scalability of your testing process, allowing for larger test suites to be run in less time.</li></ul><h4>Challenge #4: Mobile Emulation and Device Testing</h4><ul><li><strong>Challenge</strong>: Simulating mobile devices for testing in traditional frameworks often requires separate tools or complex configurations.</li><li><strong>Playwright’s Solution</strong>: Playwright has native mobile device emulation, allowing easy testing of responsive designs with options to simulate device characteristics, network conditions, and CPU throttling.<br><strong>Advantage</strong>: Playwright simplifies mobile testing by providing built-in device emulation, allowing you to simulate various devices and network conditions without the need for additional tools or configurations, making your mobile testing more streamlined and accurate.</li></ul><h4>Challenge #5: Testing Modern Web Features</h4><ul><li><strong>Challenge</strong>: Traditional tools struggle with modern web apps (SPAs, dynamic content, Shadow DOM), requiring complex workarounds.</li><li><strong>Playwright’s Solution</strong>: Playwright is built for modern web apps, handling SPAs, dynamic loading, and Shadow DOM elements effortlessly, making tests smoother and more reliable.<br><strong>Advantage</strong>: Playwright’s modern architecture is optimized for today’s dynamic web, meaning it can handle complex web features and interactions without additional workarounds, enabling more efficient and reliable test execution for modern applications.</li></ul><h4>Challenge #6: Browser and OS Compatibility Issues</h4><ul><li><strong>Challenge</strong>: Traditional frameworks can struggle with OS/browser compatibility, often leading to inconsistencies in tests.</li><li><strong>Playwright’s Solution</strong>: Playwright simplifies this by automating browsers directly, ensuring consistent environments across browsers and operating systems, and reducing setup complexity.<br><strong>Advantage</strong>: By automating browser interactions directly, Playwright removes the need for external drivers, ensuring consistent behavior across environments and reducing setup time. This makes your tests more predictable and easier to maintain across platforms.</li></ul><h4>Challenge #7: Test Runner Complexity</h4><ul><li><strong>Challenge</strong>: Traditional frameworks often rely on third-party test runners or require extensive configuration for test execution, making test infrastructure harder to maintain.</li><li><strong>Playwright’s Solution</strong>: Playwright includes its own test runner, Playwright Test, which integrates seamlessly with its API, offering built-in features like parallel execution, retries, and fixtures for simplified and efficient test management.<br><strong>Advantage</strong>: Having a built-in test runner removes the need for third-party integrations, streamlining the test setup. The built-in features make test execution more efficient and reduce the overhead of managing separate test infrastructure, allowing you to focus on writing and executing tests.</li></ul><p><strong>Conclusion</strong>:</p><p>Considering the many advantages Playwright offers, it stands out as a robust framework capable of overcoming many of the limitations found in traditional testing tools. Whether it’s cross-browser testing, mobile emulation, or handling modern web apps, Playwright simplifies and accelerates the process, making it an excellent choice for modern development teams. Ready to simplify your web testing process? Start exploring Playwright today and see how it can streamline your testing workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90da3a87f544" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of AI in Quality Assurance: A Story of Transformation]]></title>
            <link>https://medium.com/@jagdalebr/the-power-of-ai-in-quality-assurance-a-story-of-transformation-59ba17fb5181?source=rss-6b71f215960b------2</link>
            <guid isPermaLink="false">https://medium.com/p/59ba17fb5181</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Bhagyashri Jagdale]]></dc:creator>
            <pubDate>Tue, 29 Oct 2024 16:30:54 GMT</pubDate>
            <atom:updated>2024-10-29T16:31:24.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*nHWJtqdihmJ_xwRDhCnpRA.jpeg" /></figure><h3>Chapter 1: The Crisis</h3><p>In the vibrant tech hub of Bangalore, Ram, a dedicated member of EclipseForge Systems’ Quality Assurance team, faced his greatest challenge yet. Just days before the launch of a groundbreaking application, a critical production issue emerged: the payment gateway was failing to process transactions under certain conditions. Panic rippled through the team as the deadline loomed, and Ram felt the weight of responsibility pressing heavily on his shoulders.</p><p>Determined to resolve the issue, Ram dove into the chaos, his heart racing. He quickly assembled a meeting with the development team, fostering an atmosphere of collaboration and urgency. As they dissected the problem, Ram recalled the countless hours he had spent testing this feature. He realized that the issue might have slipped through the cracks during the earlier stages of testing. With his meticulous attention to detail, he began to formulate a plan.</p><p>Ram stayed late into the night, fueled by a mix of anxiety and determination. He ran comprehensive tests, checking not only functionality but also performance and user experience. When he identified a pattern in user-reported bugs related to scalability, he felt a surge of hope. After crafting a detailed report, he presented it to the team, leading to significant performance improvements. It was a moment of triumph, but Ram knew that the journey was far from over.</p><h3>Chapter 2: The Struggles of Traditional QA</h3><p>Despite the success in addressing the immediate issue, Ram’s mornings quickly returned to the relentless grind of “bug hunting.” The elusive bugs in the code felt like shadows, always lurking just out of sight. Manual testing was slow and labor-intensive; each software update required a full re-test, a process that often left Ram feeling drained and frustrated.</p><p>The pressure reached a boiling point when the team was tasked with integrating a new payment gateway. Ram was determined to ensure it functioned flawlessly across various environments and devices. Setting up tests for different operating systems and browsers felt like an uphill battle, filled with complexities that made him question his abilities. In those moments, he often found himself reflecting on the passion that drove him to this career — the desire to create software that genuinely improved lives.</p><p>As the deadline loomed, the demands mounted. Ram juggled managing test environments, coordinating with developers, and ensuring every possible scenario was covered. The relentless pace took its toll, leaving him exhausted and on the verge of burnout. Just when it felt like the challenges were insurmountable, he learned about AI technology that promised to transform their QA processes.</p><h3>Chapter 3: The Arrival of AI</h3><p>EclipseForge Systems decided to embrace AI, and Ram was filled with a mixture of hope and apprehension. The potential for AI to address persistent QA challenges sparked excitement in him. Could this technology be the key to finally easing the burdens he faced?</p><p>As the project unfolded, the team rolled out an innovative AI-driven QA system designed to automate repetitive tasks. Ram marveled at the sleek interface, envisioning a future where tedious chores were a thing of the past. This AI could learn from vast amounts of data, spotting patterns that human eyes often missed. The promise of predicting issues before they arose was a game-changer.</p><p>Ram felt a rush of optimism. With AI handling mundane tasks, he could focus on strategic aspects of quality assurance. Yet, a lingering worry remained — would this technology truly deliver the relief he so desperately needed?</p><h3>Chapter 4: AI Test Case Generation and Maintenance</h3><p>One of the first challenges the AI tackled was the cumbersome process of test case creation. Previously, crafting test cases for the payment gateway had been a tedious and error-prone task. Now, with the new AI tool, Ram simply input the requirements, and the AI generated a comprehensive suite of test cases.</p><p>The relief he felt was profound. No longer would he need to laboriously create test cases from scratch; the AI intelligently updated existing cases as the application evolved. This automation not only accelerated the testing process but also significantly improved the accuracy of their coverage.</p><h3>Chapter 5: Revolutionizing Test Data Creation</h3><p>Generating realistic test data had always been a daunting task for Ram. He often spent long hours creating varied datasets, worrying about managing sensitive information. With AI, this process was revolutionized. The technology generated synthetic test data that mimicked real-world scenarios without compromising customer privacy.</p><p>This newfound efficiency allowed Ram to focus on optimizing test strategies rather than getting bogged down in the minutiae of data creation. The weight he carried began to lift, and he found renewed energy in his work.</p><h3>Chapter 6: Streamlining Test Execution</h3><p>As the new payment gateway integration progressed, Ram faced the challenge of manual test execution. Running numerous scenarios felt like an endless cycle of monotony. The fear of human error loomed large, and he often questioned whether he could maintain the required pace.</p><p>AI-powered test automation tools changed everything. These tools could execute a wide range of tests quickly and accurately, freeing Ram from the repetitive tasks that drained his energy. With this newfound time, he shifted his focus to refining test strategies and enhancing overall software quality.</p><h3>Chapter 7: Enhancing Defect Detection and Triage</h3><p>Identifying and prioritizing defects was another tedious task that weighed on Ram. Sifting through countless test results to find critical issues was often overwhelming. However, AI plugins transformed this process. They automatically analyzed results, swiftly detecting defects and classifying them by severity.</p><p>This streamlined approach allowed Ram to prioritize urgent issues efficiently, easing the pressure he had long felt. It was a liberating moment when he realized he could tackle the most critical defects without drowning in data.</p><h3>Chapter 8: Streamlining Test Environment Management</h3><p>Setting up test environments was a complex and time-consuming task that often left Ram exhausted. Each new integration required careful configuration to replicate various scenarios, and inconsistencies were a constant source of frustration.</p><p>AI tools automated the provisioning and configuration of test environments, ensuring consistency across all setups. Ram felt a renewed sense of purpose, focusing on developing robust test cases rather than getting lost in the logistics of setup.</p><h3>Chapter 9: Revolutionizing Test Reporting</h3><p>Generating comprehensive test reports had always felt like a chore. After testing the payment gateway, Ram often spent hours compiling and analyzing data, wishing for a simpler way to present his findings.</p><p>AI transformed this process by automatically generating detailed reports with visualizations and actionable insights. This innovation not only saved Ram valuable time but also provided clearer insights, empowering him to make informed decisions.</p><h3>Chapter 10: Embracing the Future</h3><p>The integration of AI into QA not only transformed Ram’s role but also revitalized the entire QA process at EclipseForge Systems. With AI managing routine tasks, he could finally focus on enhancing software quality and driving innovation. The efficiency gains contributed to the team’s success and rekindled Ram’s passion for his work.</p><p>Looking ahead, Ram felt a mix of excitement and apprehension. He understood that while AI was a powerful tool, the human touch — intuition, creativity, and critical thinking — remained essential in the pursuit of software excellence. As EclipseForge Systems evolved, he was ready to embrace new challenges, confident that quality would always be at the heart of their innovation.</p><h3>Epilogue: The Road Ahead</h3><p>As Ram and his team ventured deeper into the AI-driven world of QA, they continued to explore solutions that would enhance their capabilities. The journey of integrating AI into QA was ongoing, and with each advancement, Ram remained committed to ensuring their software not only met but exceeded the highest quality standards. The future was bright, and he was eager to navigate it with AI by his side, knowing that every step forward was a testament to his dedication and passion.</p><h3>Call to Action</h3><p>As you reflect on your own experiences with quality assurance, consider the challenges you’ve faced and the solutions that have helped you overcome them. Have you explored AI tools in your QA processes? What insights or lessons have you gained from your journey? Join the conversation and share your thoughts — your experiences could inspire others to navigate similar challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59ba17fb5181" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bruno’s API Adventure]]></title>
            <link>https://medium.com/@jagdalebr/brunos-api-adventure-7937abb70d47?source=rss-6b71f215960b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7937abb70d47</guid>
            <category><![CDATA[api-automation]]></category>
            <category><![CDATA[bruno]]></category>
            <dc:creator><![CDATA[Bhagyashri Jagdale]]></dc:creator>
            <pubDate>Sat, 11 May 2024 03:13:50 GMT</pubDate>
            <atom:updated>2024-10-27T09:50:07.765Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong></p><p>In the previous blog, we have seen API automation, the Assertions section CI/CD. This blog will talk more about generating HTML reports for the execution of API collections. We will go through how we can verify JSON schema by comparing JSON schema and response schema.</p><p><strong>Generating HTML reports:</strong></p><p>Whenever we execute any collection/ automation suite we have to provide some reports which is readable and have all high-level insights such as the number of APIs, number of tests, and execution status such as Pass/ Fail. For this, we need to run a command from CLI which will generate HTML report. Hit the below command to generate a report in HTML format.</p><pre>bru run -- output report.html -- format html</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*cRItEBIcaCIHgIht7LHg_w.png" /></figure><p>This will generate the below report:</p><p>Here we can see the dashboard, which includes details such as a number of requests, assertions and tests. Also details regarding execution status such as a number of test cases passed and failed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UAtrIffUnwJcWJds" /></figure><p>Into the request tab, we are able to see details of API requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BLLqzUmOWfWFdecW" /></figure><p>Test information is the section that will share details related to the execution status of each test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_uwU_Ik1IL-S8ip_JN78A.png" /></figure><p><strong>Verify JSON Schema</strong></p><p>At various times we need to validate JSON schema with valid and invalid JSON schema values. There are multiple significance of validating JSON Schema:</p><ul><li>Finding bugs: Verifying JSON helps to detect errors. If there is a mismatch between the correctly defined schema and the actual schema generated from the API response, it indicates issues with the handling of the data.</li><li>Reliability: Verifying JSON helps for reliability by ensuring that only correctly formatted and expected data is accepted.</li><li>Accuracy of the data: Verifying JSON schemas by defining the structure of JSON which will be exchanged between the client and the server.</li></ul><p>Here we will see how we can achieve validating JSON schema in Bruno. Will be verifying the JSON schema from the Tests section of Bruno.</p><ol><li>Let’s utilize Bruno’s in-build libraries for validating JSON schema after the response is received.</li></ol><pre>const Ajv = require(&#39;ajv&#39;);<br>const ajv = new Ajv();</pre><p>2. Let’s define the schema.</p><pre>const schema = {<br>  &quot;type&quot;: &quot;object&quot;,<br>  &quot;properties&quot;: {<br>    &quot;data&quot;: {<br>      &quot;type&quot;: &quot;object&quot;,<br>      &quot;properties&quot;: {<br>        &quot;id&quot;: {<br>          &quot;type&quot;: &quot;integer&quot;<br>        },<br>        &quot;email&quot;: {<br>          &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;first_name&quot;: {<br>          &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;last_name&quot;: {<br>          &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;avatar&quot;: {<br>          &quot;type&quot;: &quot;string&quot;<br>        }<br>      },<br>      &quot;required&quot;: [<br>        &quot;id&quot;,<br>        &quot;email&quot;,<br>        &quot;first_name&quot;,<br>        &quot;last_name&quot;,<br>        &quot;avatar&quot;<br>      ]<br>    },<br>    &quot;support&quot;: {<br>      &quot;type&quot;: &quot;object&quot;,<br>      &quot;properties&quot;: {<br>        &quot;url&quot;: {<br>          &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;text&quot;: {<br>          &quot;type&quot;: &quot;string&quot;<br>        }<br>      },<br>      &quot;required&quot;: [<br>        &quot;url&quot;,<br>        &quot;text&quot;<br>      ]<br>    }<br>  },<br>  &quot;required&quot;: [<br>    &quot;data&quot;,<br>    &quot;support&quot;<br>  ]<br>};</pre><p>3. Let’s add a test block for validating schema from the API response.</p><pre>test(&quot;should be able to validate JSON&quot;, function() {<br>  const data = res.getBody();<br>  const valid = ajv.validate(schema, data);<br>  expect(res.getStatus()).to.equal(200);<br>  expect(valid).to.be.true;<br>  if (!valid) console.log(ajv.errors);<br>});</pre><p>4. Here we can get true if API generated response’s schema matches with defined schema.</p><p>5. Here we will get an error if API generated response’s schema does not matches with defined schema.</p><p>Let&#39;s validate the JSON schema with array objects:</p><p>1. Let&#39;s add the request as: <a href="https://reqres.in/api/users?page=2">https://reqres.in/api/users?page=2</a></p><p>2. After hitting API will be getting response as :</p><pre>Response:<br>{<br>  &quot;page&quot;: 2,<br>  &quot;per_page&quot;: 6,<br>  &quot;total&quot;: 12,<br>  &quot;total_pages&quot;: 2,<br>  &quot;data&quot;: [<br>    {<br>      &quot;id&quot;: 7,<br>      &quot;email&quot;: &quot;michael.lawson@reqres.in&quot;,<br>      &quot;first_name&quot;: &quot;Michael&quot;,<br>      &quot;last_name&quot;: &quot;Lawson&quot;,<br>      &quot;avatar&quot;: &quot;https://reqres.in/img/faces/7-image.jpg&quot;<br>    },<br>    {<br>      &quot;id&quot;: 8,<br>      &quot;email&quot;: &quot;lindsay.ferguson@reqres.in&quot;,<br>      &quot;first_name&quot;: &quot;Lindsay&quot;,<br>      &quot;last_name&quot;: &quot;Ferguson&quot;,<br>      &quot;avatar&quot;: &quot;https://reqres.in/img/faces/8-image.jpg&quot;<br>    },<br>    {<br>      &quot;id&quot;: 9,<br>      &quot;email&quot;: &quot;tobias.funke@reqres.in&quot;,<br>      &quot;first_name&quot;: &quot;Tobias&quot;,<br>      &quot;last_name&quot;: &quot;Funke&quot;,<br>      &quot;avatar&quot;: &quot;https://reqres.in/img/faces/9-image.jpg&quot;<br>    },<br>    {<br>      &quot;id&quot;: 10,<br>      &quot;email&quot;: &quot;byron.fields@reqres.in&quot;,<br>      &quot;first_name&quot;: &quot;Byron&quot;,<br>      &quot;last_name&quot;: &quot;Fields&quot;,<br>      &quot;avatar&quot;: &quot;https://reqres.in/img/faces/10-image.jpg&quot;<br>    },<br>    {<br>      &quot;id&quot;: 11,<br>      &quot;email&quot;: &quot;george.edwards@reqres.in&quot;,<br>      &quot;first_name&quot;: &quot;George&quot;,<br>      &quot;last_name&quot;: &quot;Edwards&quot;,<br>      &quot;avatar&quot;: &quot;https://reqres.in/img/faces/11-image.jpg&quot;<br>    },<br>    {<br>      &quot;id&quot;: 12,<br>      &quot;email&quot;: &quot;rachel.howell@reqres.in&quot;,<br>      &quot;first_name&quot;: &quot;Rachel&quot;,<br>      &quot;last_name&quot;: &quot;Howell&quot;,<br>      &quot;avatar&quot;: &quot;https://reqres.in/img/faces/12-image.jpg&quot;<br>    }<br>  ],<br>  &quot;support&quot;: {<br>    &quot;url&quot;: &quot;https://reqres.in/#support-heading&quot;,<br>    &quot;text&quot;: &quot;To keep ReqRes free, contributions towards server costs are appreciated!&quot;<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ik7Ax_HqmlJgKhiI-JXMUw.png" /></figure><p>3. Let&#39;s validate the JSON schema from the test section.</p><pre>var data = res.getBody();<br>const Ajv = require(&quot;ajv&quot;);<br>const ajv = new Ajv();<br><br>// define schema here<br>const schema = {<br>  &quot;type&quot;: &quot;object&quot;,<br>  &quot;properties&quot;: {<br>    &quot;page&quot;: {<br>      &quot;type&quot;: &quot;integer&quot;<br>    },<br>    &quot;per_page&quot;: {<br>      &quot;type&quot;: &quot;integer&quot;<br>    },<br>    &quot;total&quot;: {<br>      &quot;type&quot;: &quot;integer&quot;<br>    },<br>    &quot;total_pages&quot;: {<br>      &quot;type&quot;: &quot;integer&quot;<br>    },<br>    &quot;data&quot;: {<br>      &quot;type&quot;: &quot;array&quot;,<br>      &quot;items&quot;: [<br>        {<br>          &quot;type&quot;: &quot;object&quot;,<br>          &quot;properties&quot;: {<br>            &quot;id&quot;: {<br>              &quot;type&quot;: &quot;integer&quot;<br>            },<br>            &quot;email&quot;: {<br>              &quot;type&quot;: &quot;string&quot;<br>            },<br>            &quot;first_name&quot;: {<br>              &quot;type&quot;: &quot;string&quot;<br>            },<br>            &quot;last_name&quot;: {<br>              &quot;type&quot;: &quot;string&quot;<br>            },<br>            &quot;avatar&quot;: {<br>              &quot;type&quot;: &quot;string&quot;<br>            }<br>          },<br>          &quot;required&quot;: [<br>            &quot;id&quot;,<br>            &quot;email&quot;,<br>            &quot;first_name&quot;,<br>            &quot;last_name&quot;,<br>            &quot;avatar&quot;<br>          ]<br>        }<br>      ]<br>    },<br>    &quot;support&quot;: {<br>      &quot;type&quot;: &quot;object&quot;,<br>      &quot;properties&quot;: {<br>        &quot;url&quot;: {<br>          &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;text&quot;: {<br>          &quot;type&quot;: &quot;string&quot;<br>        }<br>      },<br>      &quot;required&quot;: [<br>        &quot;url&quot;,<br>        &quot;text&quot;<br>      ]<br>    }<br>  },<br>  &quot;required&quot;: [<br>    &quot;page&quot;,<br>    &quot;per_page&quot;,<br>    &quot;total&quot;,<br>    &quot;total_pages&quot;,<br>    &quot;data&quot;,<br>    &quot;support&quot;<br>  ]<br>}<br><br>// test to verify json schema<br><br>test(&quot;should be able to validate JSON&quot;, function() {<br>  const data = res.getBody();<br>  const valid = ajv.validate(schema, data);<br>  expect(res.getStatus()).to.equal(200);<br>  expect(valid).to.be.true;<br>  if (!valid) console.log(ajv.errors);<br>});</pre><p>4. After hitting API again, will be able to view tests that are passed and JSON is validated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ch0Rt2yohwilsKsxFoemVw.png" /></figure><p><strong>Conclusion:</strong></p><p>I hope the above details help you get HTML reports and validate JSON schema with Bruno. Please refer to the latest documentation on Bruno to deep dive. Since the tools are constantly evolving, new features and capabilities may be available when you are ready to implement them.</p><p>Happy learning!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7937abb70d47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bruno in Action: Optimizing API Automation with Advanced Assertions and CI/CD Pipelines]]></title>
            <link>https://medium.com/@jagdalebr/bruno-in-action-optimizing-api-automation-with-advanced-assertions-and-ci-cd-pipelines-e0e384e34857?source=rss-6b71f215960b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0e384e34857</guid>
            <dc:creator><![CDATA[Bhagyashri Jagdale]]></dc:creator>
            <pubDate>Tue, 23 Apr 2024 17:03:27 GMT</pubDate>
            <atom:updated>2024-04-23T17:03:27.957Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong></p><p>In the previous blog, we have seen a basic introduction to Bruno. In this blog, we will deep dive into API automation using Bruno. Introduction to the Assertions section and will see how we can perform CI/CD and extended topics for automation. To understand API automation’s importance let’s talk about Google map APIs. These APIs continuously send live data. API automation is important for improving testing efficiency, reducing manual errors, and accelerating release cycles.</p><p>Let’s recollect automation’s advantages:</p><ol><li>Regression Testing: Helps to verify existing functionality is not getting impacted due to recent changes in API / environments.</li><li>Better Coverage: Automation provides better coverage of testing.</li><li>Extended step: Quick test after deployment can be done using automation suites into CI/CD pipelines.</li><li>Assertions: This section can have scripts in UI mode. For simple tests, we can use assertions and for complex tests, we can use test sections.</li></ol><p>Now let’s explore how assertions work into Bruno.</p><p>Assertions:</p><p>This section helps us to prepare basic tests as assertions. We can use these assertions to validate the response using conditions effectively.</p><p>Here we can add tests in the below format:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*_sf_j0pswJsOYujR3J7_8g.png" /></figure><p>The above assertion will verify status code of the response is equal to 200.</p><p>Similarly, we can add more assertions for verifying basic tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*YfkZdNLDH-g-XXSBgJqjvw.png" /></figure><ul><li>The above assertion will verify status is a success.</li><li>The above assertion will verify id is 1.</li><li>The above assertion will employee_name is Tiger Nixon.</li><li>The above assertion will employee_salary is 320800.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eeKu3VzvsW2h6ka2" /></figure><p>Let’s similarly, we can add assertions for verifying basic tests for POST API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*Up0MkBlFaE1t9cyI7lRyFg.png" /></figure><ul><li>The above assertion will verify status is 200.</li><li>The above assertion will verify status is a success.</li><li>The above assertion will verify the name is Max Torres.</li><li>The above assertion will verify salary is 120000.</li><li>The above assertion will verify age is 23.</li><li>The above assertion will verify id is a number.</li><li>The above assertion will verify message is Successfully! Record has been added.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KsDr55vH0GE9Xr3i" /></figure><p><strong>Bruno CLI:</strong></p><p>Using the Bruno command line we can run API collection without UI. Let’s see how we can enable CLI and use it.</p><p>Step 1: Installation</p><p>For installation, we need to execute the below commands into the command prompt.</p><pre>npm install -g @usebruno/cli</pre><p>Step 2: Running collection</p><p>Navigate to the API collection from the local system. Execute the below command for running collection.</p><pre>bru run</pre><p>Step 3: Running specific requests from the collection.</p><p>Specify the request name for execution.</p><pre>bru run GET_Employee_List.bru</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/0*lTSoZMdZhxSN-1uP" /></figure><p>Step 4: Running the entire folder</p><p>Navigate to the folder and run this command.</p><pre>bru run</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*qni4KRJ4Wrjq-rQs94AlyA.png" /></figure><p>Step 5: Running collection with env file</p><p>We need to specify the env file into CLI. Here I am using QA env for execution.</p><pre>bru run --env QA</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*qni4KRJ4Wrjq-rQs94AlyA.png" /></figure><p><strong>Creating GitHub workflow for running Bruno collection:</strong></p><p>Using Bruno’s command line and GitHub “Actions” we can automate workflow which will run API collection. We can trigger manually as well as we can set this into workflow.</p><p>Step 1: Login into GitHub and navigate to Actions.</p><p>Step 2: Click on the Configure button of simple workflow. We need a simple workflow as we are running API collection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MaRxlIZe59rzQQPS" /></figure><p>Step 3: Let’s add the required details:</p><pre># Name of Workflow<br><br>name: APIAutomation<br><br># Controls when the workflow will run<br>on:<br>  # Triggers the workflow on push or pull request events but only for the &quot;main&quot; branch<br>  push:<br>    branches: [ &quot;main&quot; ]<br>  pull_request:<br>    branches: [ &quot;main&quot; ]<br><br>  # Allows you to run this workflow manually from the Actions tab<br>  workflow_dispatch:<br><br># A workflow run is made up of one or more jobs that can run sequentially or in parallel<br>jobs:<br>  # This workflow contains a single job called &quot;build&quot;<br>  build:<br>    # The type of runner that the job will run on<br>    runs-on: ubuntu-latest<br><br>    # Steps represent a sequence of tasks that will be executed as part of the job<br>    steps:<br>      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it<br>      - uses: actions/checkout@v3<br><br>      # Installtion of Node<br>      - name: Install Node<br>        uses: actions/checkout@v3<br>        with: <br>              node_version: &#39;latest&#39;<br><br>      # Installtion of bruno cli<br>      - name: Install BrunoCLI<br>        run: |<br>          npm install -g @usebruno/cli<br><br>       # Runs the Bruno API request<br>      - name: Run bruno’s all API request<br>        run: |<br>          bru run - - env QA</pre><p>Step 4: Commit the changes.</p><p>Step 5: Navigate to Actions.</p><p>Here we will be able to view workflow runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rJ-8i3Z6Kx9yDBDJ" /></figure><p>Step 6: Click on workflow. Expand displayed build.</p><p>Step 7: Here we are able to view each and every step of execution. Let’s see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WVMMrm3hA2OZ6EAZ" /></figure><p><strong>Conclusion :</strong></p><p>I hope the above details help you get started on the API testing and automation journey with Bruno. Investing in a good automation test suite is the best way to ensure efficient addressing of regressions in products.</p><p>Please refer to the latest documentation on Bruno to deep dive. Since the tools are constantly evolving, new features and capabilities may be available when you are ready to implement them.</p><p>Happy learning!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0e384e34857" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bruno: The Open-Source GUI Tool for Efficient API Testing]]></title>
            <link>https://medium.com/@jagdalebr/bruno-the-open-source-gui-tool-for-efficient-api-testing-1c15ad113b67?source=rss-6b71f215960b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c15ad113b67</guid>
            <dc:creator><![CDATA[Bhagyashri Jagdale]]></dc:creator>
            <pubDate>Sun, 14 Apr 2024 09:24:05 GMT</pubDate>
            <atom:updated>2025-06-04T15:39:50.691Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Context:</strong></p><p>In the market, we have a lot of GUI tools that are helping us with API testing. For a long time, everyone was using POSTMAN. In the search for any other open-source API testing tool, I was introduced to Bruno. Bruno is similar as POSTMAN UI, functionality but Bruno will store your api collection into the your local file system.</p><p>Now let&#39;s see the pros of Bruno:</p><ol><li>Open Source — This allows for community contributions and customization.</li><li>API Collection stored locally — Most API requests are triggered using proxy servers. Bruno stores collection into your local machine which reduces the risk related to privacy and security.</li><li>Git Integration — This allows users to use any version control of their choice to collaborate over your API collections.</li><li>Infinite number of collection executions — As its open source, execution of API request/ collection is free.</li><li>Offline — Bruno stores API collection into your local machine which allows you to use this offline.</li></ol><p>Now let&#39;s talk about how we can start Bruno:</p><ol><li>Download Bruno from the official link. Download a suitable version from the link. Here is the link: <a href="https://www.usebruno.com/downloads">https://www.usebruno.com/downloads</a></li><li>Install Bruno and we are done. Open Bruno. You will be able to view the landing tab similar to the below screenshot.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VHzbz1uk9GfZThQj" /></figure><p>3. Now we can start creating collections and APIs. Click on “Create Collection”, enter all required details and click on Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s4xJStixXtDIrD7p" /></figure><p>4. Collection will be created here. Now hover on the created collection that is “ Employee “ here and click on “ New Request ”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*beP_ejeX_uCbisLY" /></figure><p>5. Enter all required details such as request name, method and URL. Click on Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n2j_i_cXfw0bl6rl" /></figure><p>6. You will be able to see API is added to the collection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PyEr1Z83_azDIWTA" /></figure><p>7. Click on the Send (-&gt;) button. You will be able to view the response. Now you are able to add collection and API into Bruno.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JIbJwF6UF3R4KZEk" /></figure><p>8. Now let&#39;s add a test for API. Let’s create a simple test that will verify the status code of the response.</p><pre>test(&quot;Verify status codde is 200&quot;, function() {<br>       expect(res.status).to.equal(200);<br>   });  </pre><p>9. Now let&#39;s run the API again. In the tests section of the response, you will be able to view the results of the tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DACq4N7h5RAAeVsA" /></figure><p>10. Let&#39;s try to add more test scripts for verifying employees.</p><pre>test(&quot;Verify status as success&quot;, function() {<br> expect(data.status).to.contains(&#39;success&#39;);<br>});</pre><p>Above test scripts will verify response body is having success as a status.</p><pre>test(&quot;Verify id as 1&quot;, function() {<br>expect(data.data[0].id).to.contains(1);<br>});</pre><p>Above test scripts will verify response body has having id as 1.</p><pre>test(&quot;Verify employee name as Tiger Nixon&quot;, function() {<br>expect(data.data[0].employee_name).to.contains(&#39;Tiger Nixon&#39;);<br>});</pre><p>Above test scripts will verify response body has having employee named Tiger Nixon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M8gWH8zEvfYxmOFU" /></figure><p>11. Let&#39;s try some POST API now. Let&#39;s add POST Employee API for adding employees. (Similar to step 5)</p><p>12. A basic similar script is added for verifying request and response data.</p><pre>test(&quot;Verify status code is 200&quot;, function() {<br>expect(res.status).to.equal(200);<br>});</pre><p>Above test script will verify response code of API is 200.</p><pre>test(&quot;Verify status as success&quot;, function() {<br>expect(data.status).to.contains(&#39;success&#39;);<br>});</pre><p>Above test scripts will verify response body is having success as a status.</p><pre>test(&quot;Verify employee name as Max Torres&quot;, function() {<br>expect(data.data.name).to.contains(&#39;Max Torres&#39;);<br>});</pre><p>Above test scripts will verify response body has having name of the employee as Max Torres.</p><p>13. Now let&#39;s run the API and let&#39;s see the results of the test scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-UOEbwXGshCcFoUg" /></figure><p><strong>Conclusion :</strong></p><p>I hope the above details help you get started on the API testing and automation journey with Bruno. Investing in a good automation test suite is the best way to ensure efficient addressing of regressions in products.</p><p>Please refer to the latest documentation on Bruno to deep dive. Since the tools are constantly evolving, new features and capabilities may be available when you are ready to implement them.</p><p>Happy learning!!!</p><p>Update if you want to test the presence of the tag in your data use</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQ7_eK8dNyb1pIkbKZ_pkA.png" /></figure><pre>test(&quot;Verify presence of employee_name&quot;, function() {<br>  if (!data.data[0].hasOwnProperty(&#39;employee_name&#39;)) {<br>  throw new Error(&quot;Response does not contain the &#39;employee_name&#39; field&quot;);<br>}}) <br>test(&quot;Verify presence of employee_name1&quot;, function() {<br>  if (!data.data[0].hasOwnProperty(&#39;employee_name1&#39;)) {<br>  throw new Error(&quot;Response does not contain the &#39;employee_name1&#39; field&quot;);<br>}}) </pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c15ad113b67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selection of an API automation tool]]></title>
            <link>https://medium.com/@jagdalebr/selection-of-an-api-automation-tool-e652d9278ea0?source=rss-6b71f215960b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e652d9278ea0</guid>
            <category><![CDATA[api-automation]]></category>
            <dc:creator><![CDATA[Bhagyashri Jagdale]]></dc:creator>
            <pubDate>Wed, 12 Jan 2022 10:53:01 GMT</pubDate>
            <atom:updated>2022-01-12T11:05:09.103Z</atom:updated>
            <content:encoded><![CDATA[<h3>Context</h3><p>Selecting an API automation tool has become increasingly difficult over the years. The plethora of tools available makes it very difficult to make a choice that fits the requirements of any project. This analysis represents research and experience in API automation. I have identified a few criteria and fit the strengths and weaknesses of each tool to arrive at a guide to best select a tool for the problem at hand.</p><h3>Criteria</h3><p>While every tool is not created equal, each tool has its strengths and weaknesses. Here I typically apply the following criteria to determine fit for a project.</p><h3>Client requirements</h3><p>Client requirements such as budget(s) and choice of language for maintainability and available talent play a big role in determining what is best for the project. Out of these, particularly pay attention to the <strong><em>availability of talent</em></strong> while determining which tool to use.</p><h3>Technology/Language</h3><p>Project structure and technologies used are important aspects of every project as these are the pillars of the project. While selecting tools we have to consider the technologies used in the larger project. As far as possible try to match the language used for development and testing. This leads to better maintainability and much better collaboration between developers and the QA team.</p><h3>Open source vs Commercial automation tools</h3><p>Budgets and required investment in commercial automation tools are important factors that have to be considered. While startup customers typically like to go open-source, enterprise customers may have specific preferences in the tools used. We extensively work with open source tools that offer the best fit to teams.</p><h3>Features</h3><p>As the project grows, features and codebase grow. As projects go live we routinely get asked some/all of the following questions:</p><ol><li>Can you share reports after automation runs?</li><li>Can the automation runs be integrated within a CI/CD process?</li><li>Can we set up a quality gate to avoid releases if tests don’t pass?</li><li>Can this be implemented in &lt;Typescript&gt;/&lt;Python&gt;/&lt;Java&gt;/&lt;Pick a language&gt;.</li><li>Can you automate using BDD so tests are easily understood?</li></ol><h3>Analysis</h3><p>The following table lists the tools we have used and experimented with in various projects. Hopefully, this table will help you determine which tool may be the best suited for your product team. We are comparing the following tools: POSTMAN, Katalon, Robot, RESTAssured and Karate. While this is not a comprehensive list of tools, it represents a cross-section that is most useful in the types of projects.</p><h3>Basic Capabilities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*Nx_evrMa6bxmmNgsqP5rcg.png" /></figure><h3>Advanced Capabilities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*1l5v7cIzlLYka8UYqBoyig.png" /></figure><h3>Conclusion</h3><p>I hope the above table helps you get started on your tools selection for the API automation journey. Investing in a good automation test suite is the best way to ensure efficient addressing of regressions in products.</p><p>The review ratings above are based on my experience and represent my opinion on these tools.</p><p>As always, do consult the latest documentation on these tools to determine the best fit for your project. Since the tools are constantly evolving, new features and capabilities may be available when you are ready to implement them.</p><p>Happy automation journey!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e652d9278ea0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>