<?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 Badri R on Medium]]></title>
        <description><![CDATA[Stories by Badri R on Medium]]></description>
        <link>https://medium.com/@mailbox.badri?source=rss-70e7a42db790------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ArovbUZlog8XUSrax0OnEw.jpeg</url>
            <title>Stories by Badri R on Medium</title>
            <link>https://medium.com/@mailbox.badri?source=rss-70e7a42db790------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:30:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mailbox.badri/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[Cross Browser Test Execution]]></title>
            <link>https://medium.com/@mailbox.badri/cross-browser-test-execution-e44337456c7f?source=rss-70e7a42db790------2</link>
            <guid isPermaLink="false">https://medium.com/p/e44337456c7f</guid>
            <dc:creator><![CDATA[Badri R]]></dc:creator>
            <pubDate>Sun, 27 Nov 2022 10:04:21 GMT</pubDate>
            <atom:updated>2022-11-27T10:04:21.441Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of UI Test Engineering, its always so vital to test our application across browsers such as Chrome, Firefox, Safari, Opera, Edge etc.</p><p>Any realtime Project will always expect its Test Engineer to perform this cross browser testing before any production release to make sure the UI is up and running and accessible across browsers.</p><p><a href="https://www.seasiainfotech.com/blog/wp-content/uploads/2019/04/test.jpg">https://www.seasiainfotech.com/blog/wp-content/uploads/2019/04/test.jpg</a></p><p>This can be done in 2 ways as follows —</p><ol><li>Manually</li><li>Automation</li></ol><p>Manual Way — we can make use of our local desktop / laptop to perform the same. Open the desired browsers and execute and test cases.</p><p>Now comes the most Interesting part — Automation Test</p><p>Let’s see and understand the Automated way of executing test across browsers.</p><p><strong>Famous Tools</strong> — Selenium, Playwright, Cypress</p><p><strong>Browsers</strong> — Chrome, Firefox, Safari, Opera, Edge</p><p><strong>My Strategies for performing Automated cross browser testing :-</strong></p><p><strong>First and Foremost →</strong></p><ul><li>Check your production metrics and understand the traffic pattern for different browsers for the last 6 months / Year .</li><li>By observing this browser traffic, you can arrive at a decision of which browser is mostly used by the customer and this will help you to give a weightage accordingly.</li></ul><p>Say for ex :- Chrome — 80%, Firefox — 15% and remaining all — 5%</p><p>If above is the case, then its better to start the initial focus with Chrome and Firefox and ensure your application is stable in these 2 browsers first.</p><p><strong>Second Step-&gt;</strong></p><ul><li>In the modern world of testing, most of projects are executing their automated suite via cloud and Jenkins. Gone are those days where we execute the regression suite locally.</li><li>Having said that, we can make 2 decisions here to perform cross browser testing.</li></ul><p><strong>Cloud Providers-&gt; </strong>Can go for cloud based solutions such as BrowserStack or Saucelabs. where these platforms provides you with lot of browser options and versions. Almost all the automation tools can be Integrated with these platforms for the execution.</p><p><strong>Pros :- </strong><br>1) All in one place. Different browsers, versions, mobile devices etc<br>2) They support up to last 20+versions for any given browsers<br>3) Support for different OS such as Linux, MAC, Windows etc.<br>4) Official support from their teams for any challenges we face.</p><p><strong>Cons:-<br></strong>1) If you project is only web based project and the support is required for minimal browsers, then spending license to these platforms can be overhead.<br>2) If your test execution already happening from AWS, Azure etc, then again connecting to one more remote endpoint can be often slower.</p><p><strong>Container based Execution -&gt; </strong>Most of the realtime project in recent days are executing their automation test inside an EC2 machine or Azure Machines etc. Some create docker containers inside the EC2 machine and run their test.</p><p>If you fall under this category, then we can install the required browser drivers such as ChromeDriver, FirefoxDriver etc inside the container or inside an Ec2 machine and can perform the cross browser testing.</p><p><strong>Hey, but wait. Most of us use an Ubuntu or AmazonLinux based containers. Then how can I execute Safari or Edge here?</strong></p><p><strong>Ans :- In this case, we can bring up 2 new containers based out of MAC and Windows inside our EC2 slave and can run these browsers.</strong></p><p>One EC2 Slave and 3 containers (Linux, Windows and MAC) can solve the problem here.</p><p><strong>Pros :- <br>1) </strong>No extra cost to the cloud providers such as browserstack or saucelabs<strong><br>2) </strong>No extra cost to the AWS or Azure. Its only the cost of SPOT instance<br>3) Faster execution as everything is done inside the direct AWS or Azure machine. No remote connections required.</p><p><strong>Cons:-<br></strong>1) You cannot see the execution directly in browser as everything in headless mode. Wheareas the other cloud services offer you an GUI to see the actual execution.<strong> </strong>(It depends on the project Interest)<br>2) If SPOT instance, goes away in between then your execution will be affected. You need to re-run the test cases. <br>3) Browser versions are to be maintained by us.</p><p><strong>Conclusion :- Both the ways are as good to run the cross browser.</strong></p><p>If you project has everything such as browser and Mobile -&gt; then go with external cloud such as Browserstack or saucelabs</p><p>If your project is minimal to be tested only with chrome and firefox -&gt; then its always better to go with container based approach.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e44337456c7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rest Assured -Avoid Tokens getting logged]]></title>
            <link>https://medium.com/@mailbox.badri/rest-assured-avoid-tokens-getting-logged-c933af289ab1?source=rss-70e7a42db790------2</link>
            <guid isPermaLink="false">https://medium.com/p/c933af289ab1</guid>
            <category><![CDATA[test-automation-framework]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[api-automation]]></category>
            <category><![CDATA[restassured]]></category>
            <category><![CDATA[restassured-java]]></category>
            <dc:creator><![CDATA[Badri R]]></dc:creator>
            <pubDate>Sun, 10 Apr 2022 09:53:39 GMT</pubDate>
            <atom:updated>2022-04-10T09:55:51.896Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi there,</p><p><strong>First let’s understand what is logging used for in Rest Assured?</strong></p><p>When you fire any request via rest assured and if that request if failing with non-200 status code, then Logging the Request fired and Response received from the server will help us to debug the Issue further.</p><p><strong>The Problem in Logging Everything</strong></p><p>When we log everything ,the sensitive Tokens also gets logged along with it with actual value. Generally these logs can be pushed to any specific server if we have or we can look at it in the Jenkins console output. Assume we are running a production sanity for all critical cases and you enabled logging for it. The result is the <strong>actual production bearer token will get logged</strong> which any person who have access can see.</p><p><strong>Syntax to log everything in Rest Assured :-</strong></p><p>Response response = given().baseURI(“You base url”).headers(“key”,”value”).when().get(“api-path”).then().<strong>log().all()</strong>.extract().response();</p><p><strong>How to avoid it?</strong></p><p>The below syntax will help you in avoiding the logging of any sensitive Information of your project —</p><p>config(config.logConfig(LogConfig.logConfig().blacklistHeader(“HeaderName”)));</p><p><strong>Code Example:-</strong></p><p>Response resp = given().</p><p>baseUri(“https://dummyavoidloggingabcdg.com&quot;).</p><p>header(“Content-Type”,”application/json”).</p><p>header(“Authorization”,”Bearer token-value”).</p><p>config(config.logConfig(LogConfig.logConfig().blacklistHeader(“Authorization”))).</p><p>log().all().</p><p>when().</p><p>get(“/api/path”).</p><p>then().</p><p>assertThat().</p><p>statusCode(200)</p><p>.extract()</p><p>.response();</p><p><strong>Sample Output:-</strong></p><p>Headers: Authorization=[ BLACKLISTED ]</p><p>Accept=*/*</p><p>Content-Type=application/json</p><p>As you can see above, the Authorization header is blacklisted and thus we have achieved avoiding of sensitive Information getting logged.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c933af289ab1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>