<?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 Mehul Kagathara on Medium]]></title>
        <description><![CDATA[Stories by Mehul Kagathara on Medium]]></description>
        <link>https://medium.com/@mehulnicm?source=rss-1444534e928------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*45a_6OOAEgYZymI5</url>
            <title>Stories by Mehul Kagathara on Medium</title>
            <link>https://medium.com/@mehulnicm?source=rss-1444534e928------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:07:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mehulnicm/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[Is running automation testing scripts in production a good practice?]]></title>
            <link>https://medium.com/@mehulnicm/is-running-automation-testing-scripts-in-production-a-good-practice-d4995029a3da?source=rss-1444534e928------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4995029a3da</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[production]]></category>
            <dc:creator><![CDATA[Mehul Kagathara]]></dc:creator>
            <pubDate>Mon, 06 Jul 2020 16:50:51 GMT</pubDate>
            <atom:updated>2020-07-06T16:50:51.915Z</atom:updated>
            <content:encoded><![CDATA[<p>Your immediate answer will be NO because you may have worried about possible data corruption in production. Let’s understand the importance of Production testing a little bit and why it is important to do testing on production.</p><p><em>Testing in production is not only important but also critical as it allows testers to detect bugs in the real-world scenarios and to ensure if the application works the way it is expected to after the deployment. As per standard practice, usually smoke and sanity tests with happy path, that are carried out in the production environment. In an Agile environment mostly the developer makes the required changes in the application and deploys it on production without verifying it from the QA team just to keep application live and running, however, these frequent changes creates a lot of bugs in the application. In such cases, the application crashes hampering the overall user experience.</em></p><p>Some testing guidelines that must be followed while testing in a production environment.</p><ul><li><em>Create your own real-world test data.</em></li><li><em>The naming convention of test data should be realistic.</em></li><li><em>Do not play with other existing user’s data.</em></li><li><em>Create your credentials to access the application.</em></li><li><em>Never try a load test on a production environment.</em></li><li><em>Test only if there is less load on the application.</em></li></ul><h4>Why we should do Testing on Production</h4><p>The goal of Testing in Production environment is to ensure that the application is stable and runs the way it is expected to in the production environment. Daily production testing gives confidence that the application runs smoothly and hassle free.</p><ul><li>Monitor <em>the application’s performance in real-time scenarios where the test cases are not predefined, and the user keeps changing data.</em></li><li><em>Run edge cases in real-time to detect network failure, weak connections and interruption by call.</em></li><li><em>Monitor the API responses at a peak traffic.</em></li><li><em>Detect bugs and malicious attacks which typically go unnoticed while testing on QA environments.</em></li><li><em>Helps in maintaining the quality of the application for superior user experience.</em></li><li><em>Prevent disasters with better resilience and recovery testing. The application can recover from expected (chaos) or unexpected events without loss of functionality and data.</em></li><li><em>Testing with production data (it’s hard to replicate production traffic and data, making it difficult to detect every possible scenario).</em></li><li><em>It will eliminate the risk of frequent deployments on the production environment when performed on a daily basis, while you monitor application performance in real time.</em></li></ul><h4>Risks should be considered</h4><p>Testing production systems is going to give the most realistic view of how things are looking and what can be exploited, however, several risk to testing production systems should be considered:</p><ul><li><em>Reduction in system performance.</em></li><li><em>Keeping the application live and running.</em></li><li><em>No backup plan for your application runs the risk of loss of data.</em></li><li><em>No rollback plan when a release goes sideways.</em></li><li><em>Potential for denial of service.</em></li><li><em>Potential for email flooding via web forms with no CAPTCHA protection.</em></li><li><em>Risk of databases getting filled with junk data that can’t be easily removed.</em></li><li><em>Potential exposure of sensitive information.</em></li></ul><p>Three major risk we focus while performing on production environment</p><p><strong>Safety </strong>If something goes wrong and all data from staging is accidentally removed, you don’t care. If it happens in production, it’s… let’s say annoying.</p><p><strong>Performance </strong>An extensive suite of tests can easily use &gt;90% CPU on several servers for several minutes. You can’t afford slowing down production servers for a few minutes ten times per hour.</p><p><strong>Goal </strong>The goal of testing is to prevent issues in production. If you find an issue when the application is already deployed, it’s too late. Moreover, reverting to the previous revision can be complicated (i.e. what if the new version created a column in the database, and meanwhile, you have new records where this new column was used?).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4995029a3da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secrecy of Appium v/s Native Framework]]></title>
            <link>https://medium.com/@mehulnicm/secrecy-of-appium-v-s-native-framework-42865329756c?source=rss-1444534e928------2</link>
            <guid isPermaLink="false">https://medium.com/p/42865329756c</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[espresso]]></category>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[xctest]]></category>
            <dc:creator><![CDATA[Mehul Kagathara]]></dc:creator>
            <pubDate>Tue, 16 Jun 2020 19:47:23 GMT</pubDate>
            <atom:updated>2020-06-16T20:09:10.842Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Secrecy of Appium &amp; Native Framework</strong></h3><p>Nowadays for Mobile App Automation Testing, all scale of companies are building solutions &amp; frameworks on top of existing open sources tool such as <a href="http://appium.io/">Appium</a> &amp; Native Mobile Frameworks like <a href="https://developer.apple.com/documentation/xctest">XCTest</a> &amp; <a href="https://developer.android.com/training/testing/espresso">Espresso</a> and providing services to automate mobile app for both iOS and Android platform. In this article let me highlight benefits &amp; tradeoffs of both approaches and help to solve the puzzle between Appium or Native Frameworks.</p><p>Let’s see some of the critical aspects of any test automation project and see where both these approaches will fit.</p><p><strong>Automation Code</strong></p><p>One of the myth about Native Framework is that the test code will be developed alongside of application project source code and you will need access to the source code of application under test. Without source code also we can build test code and automate application using Native Frameworks. But before you choose Native Framework to test your mobile app, you should consider some the below key aspects.</p><p><em>1. Engineers who develop test code must be familiar with the language in which source code is developed (Objective C/Swift for iOS &amp; Java for Android).</em></p><p><em>2. With Native Frameworks, you need to develop and maintain tests separately for each platform you support.</em></p><p><em>3. There are test recorders available to simplify test authoring on both platforms. However, you will soon hit the limitations as you attempt to scale and maintain your test automation and eventually end up tweaking or writing new test code.</em></p><p>With Appium, you do not need access to the application source code to develop test code. Appium can only access the application UI just like any end user. Test code developed are all external to the AUT. Appium supports the multiple languages such as Ruby, Python, Java, JavaScript (Node.js), PHP and C# to develop your test code. Appium enables you to write tests against multiple platforms such as iOS and Android, using the same API. This enables code reuse between iOS and Android platforms.</p><p><strong>Test Builds</strong></p><p>One of the Appium philosophy is you shouldn’t have to recompile your app or modify it in any way in order to automate it. To automate with Appium, you only need to build the AUT binary (APK/IPA). There is no need to compile in any Appium-specific or third-party code or frameworks to your app.</p><p>With native frameworks, you build 2 binaries for every platform: 1. Actual AUT and 2. Test Application. You install both these apps on Device Under Test.</p><p><strong>Execution Speed</strong></p><p>Appium works on a Client/Server model. Appium Server receives connections from a client, listens for commands, executes those commands on a mobile device, and responds with an HTTP response representing the result of each command execution.</p><p>In case of Native Frameworks, all the test steps are executed on the device and test results are generated. There is no interruption once the tests start to execute unlike Appium. Hence test execution speed is much faster with native frameworks. In general, I see that the native frameworks are 3 to 4 times faster than Appium in most scenarios.</p><p><strong>Test Stability</strong></p><p>Appium takes a black-box approach to identify UI elements relying on XPath. This sometimes led to synchronization issues where test code is trying to perform on an action or access an element that is not on the screen. Though some of this can be mitigated with a resilient automation framework, this can render tests flaky if not handled correctly. Native Frameworks are more reliable in this regard due to the nature in which they identify the UI elements through a white box approach.</p><p><strong>Test Maintenance</strong></p><p>Appium relies on native libraries under the hood. But it provides platform agnostic APIs for you to consume and develop your test automation for multiple platforms. In the event that an underlying native library changes, amount of changes you need to make to your script would be minimal as this is abstracted by Appium. However, you will be dependent on Appium to provide a compatible version that works with the changed underlying native library. With native frameworks, those updates are usually available through the IDE upgrade and there is no delay. However, you might still need script modification for leveraging the updated test library in native case as well.</p><p><strong>Continuous Testing</strong></p><p>While setting up of CI pipelines for Appium/Espresso/XCUITest is definitely possible, the tools and set up time will vary. CI with XCUITest used to be much harder to set up but this has been alleviated mostly and is possible through a couple of options today.</p><p>Native Frameworks give you the ability to get fast feedback on your test results up on every commit. E.g. You could set up CI pipelines to execute Unit &amp; UI Tests with mock data every time code is committed to your dev branch. Appium is more suited for regression tests that could be executed nightly on the code that is committed to release branch (may be in higher environment where integration testing is feasible).</p><p><strong>Parallel Testing</strong></p><p>Native frameworks do allow you to execute the tests in parallel on multiple devices. However, it is not possible to verify your application functionality that needs to have your AUT working on 2 devices (like an end user). E.g. Perform some action on your AUT on device 1 and verify expected result on another instance of your AUT on device 2.</p><p>With Appium, it is possible to execute the tests in parallel on multiple devices as well the case where your AUT working on 2 devices with help of resilient automation frameworks.</p><p><strong>Hybrid App Automation</strong></p><p>If some portions of your native app have any web view components or you have a hybrid application, Appium make it lot simpler to automate. Appium allows you to switch from native to web view and leverage XPath/CSS/Id etc. to identify the web UI elements. However, with Native Frameworks, you need to handle web UI element developing custom JavaScript or reply on some developer toolkits.</p><p><strong>Conclusion</strong></p><p>Both approaches come with its own trade-offs and there is no “one size fits all” solution while selecting a framework.</p><p><strong>Native Frameworks if:</strong></p><p><em>1. If your AUT only supports one platform</em></p><p><em>2. Your developers are also writing test code for their platform and you do not have a dedicated QA Team</em></p><p><em>3. Test execution time is more critical than the cost of maintaining platform specific experts</em></p><p><strong>Appium if:</strong></p><p>1. <em>Want to get maximum re-usability from one code base to automate for various platforms.</em></p><p><em>2. You have a dedicated QA team who specialize in test automation and not familiar with the language in which your AUT is developed</em></p><p><em>3. Bang for the buck is more critical than test execution speed</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42865329756c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>