<?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 Snehal Salunke on Medium]]></title>
        <description><![CDATA[Stories by Snehal Salunke on Medium]]></description>
        <link>https://medium.com/@snehalsalunke?source=rss-23fc6adeaae1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_EBRTlCHWk2uVDmKtn7Nlg.jpeg</url>
            <title>Stories by Snehal Salunke on Medium</title>
            <link>https://medium.com/@snehalsalunke?source=rss-23fc6adeaae1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:34:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@snehalsalunke/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 software testing easy?]]></title>
            <link>https://medium.com/@snehalsalunke/is-software-testing-easy-e575f63b3dae?source=rss-23fc6adeaae1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e575f63b3dae</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Snehal Salunke]]></dc:creator>
            <pubDate>Mon, 08 May 2023 06:42:55 GMT</pubDate>
            <atom:updated>2023-05-08T06:42:55.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ah8WPZdKp4HArcFOho5A5w.png" /></figure><p>It is a common misconception that Software Testing is an easy job that can be done by anyone. Those who haven’t really practiced testing may think it is boring, and may think that you don’t need any technical background to be good at it. People who think software testing is easy, the playground is open to try your hands on.</p><p>As any other skill, testing needs experience, practice, and involves a lot of learning. Being a real good tester requires a specific mindset. Testers are the one who provides assurance for the product. A career in Software Testing can be hectic, interesting, crazy, funny and thrilling like any other job.</p><p>Let’s explore the hurdles in the software tester’s journey and ways to ease them.</p><h3><strong>What makes testing a hard job?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*11jApmHbKYtjC2nKeTW1qg.png" /><figcaption>Multitasking</figcaption></figure><h4><strong>Can’t make a zero-defect product</strong></h4><p>No matter how experienced the test engineer is and how much effort they put into testing, giving a defect-free product is hard to achieve. <br>Despite using a rich toolkit which includes test case management, test execution, test reporting, and automation, it is challenging to find out the defects in one go.</p><h4><strong>Less involvement and more expectations</strong></h4><p>Expectations from the testing team are to prepare test plans which cover all possible areas, find out risk-taking bugs in an early stage, follow up on bug fixes along with testing work and finally act as a gatekeeper for the quality.</p><p>Expectations are high, but very few people are interested in involving the tester from the early phases of the release cycle till finalizing the release scope. And this is a significant loss.</p><h4><strong>Lack of ownership</strong></h4><p>Bugs are considered as tester’s fault. With few exceptions, most of the time testers are considered problem makers. In every software test engineer’s journey, they face the issue that whenever any production issue occurs, the first person to be questioned is the TESTER.</p><h4><strong>Keeping knowledge about the entire product</strong></h4><p>When the product becomes vast, it becomes hard to keep track of every aspect of the product. While creating test specification, not having a thorough understanding of the product area is a problem.<br>You need to think as a tester, as a user, and as a stakeholder while considering the product.</p><h4><strong>Dev-QA ratio</strong></h4><p>The general ratio of developers to the testers in most organisations seems to be 4:1. This might vary as well. With such a skewed ratio, a tester can struggle with juggling multiple large projects in addition to their own work of improving the test infrastructure.</p><h4><strong>Recruitment is a nightmare</strong></h4><p>There are many testers in the industry who have the impression that testing is an easy job. There is too much focus on testing tools rather than testing skills. Finding a good tester is a difficult job for the team and the recruiter.</p><h3>How we can make testing a little easy?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*eXZLKIYoOR83DuzqcJBHRQ.jpeg" /><figcaption>Skill based Career</figcaption></figure><h4><strong>Keep calm</strong></h4><p>You may face situations in which production issue occurs, first and the main thing to ease the life is by accepting that there is some issue. Keep calm and don’t panic. Here you need to understand that if there is an issue, it is the team’s responsibility and as a tester, you are helping in making the product qualitative.</p><h4><strong>Communicate better</strong></h4><p>When you think something is missing, logically wrong, poorly implemented or an unhandled condition, communicate about it.<br>Debate about things that aren’t in place, and escalate the issue appropriately. Good testers do not only test better, they need to argue better too!</p><h4><strong>Be good at delivering the bad news</strong></h4><p>Telling developers that the code they have written doesn’t work as expected is a piece of bad news. Telling about not meeting the deadlines is bad news. Telling the team that you have not considered this aspect while development or in test specification which will need a lot of re-work is bad news. Telling team that you need more time than estimation for testing is a bad news. You need to be good at delivering the bad news.</p><h4><strong>Focus on coverage rather than test case count</strong></h4><p>While performing testing, focus on all aspects of the test coverage instead of just writing hundreds of test cases on a single area. Understand which area is getting impacted due to code change and focus on that.</p><h4><strong>Automate test suite</strong></h4><p>Doing the same thing repeatedly becomes time-consuming and sometimes boring. Automate the repeated manual tasks. Build the automation frameworks which you can use in the testing cycle and keep increasing your automation test suite.</p><h4>Keep learning</h4><p>No matter if you are a fresher or experienced person, you should never stop learning. Being in Testing provides you much freedom to learn new skills and extend your thinking which in the end helps you in testing and finding good issues or improving the testing process. We should use this freedom to improve ourselves.</p><p>In summary, getting started with software testing is not difficult, but trying to be a good software tester is. It is a passion-driven profession. Whether you choose it by chance or by choice, you can always excel if you want to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e575f63b3dae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Appium together with AltTester Unity SDK]]></title>
            <link>https://medium.com/helpshift-engineering/appium-together-with-alttester-unity-sdk-c2d51306bd02?source=rss-23fc6adeaae1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2d51306bd02</guid>
            <dc:creator><![CDATA[Snehal Salunke]]></dc:creator>
            <pubDate>Fri, 05 May 2023 05:21:22 GMT</pubDate>
            <atom:updated>2023-05-05T05:22:03.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*z-9RHth2u8H3WR0p4VjjGg.png" /><figcaption>Mobile Automated Test with AltTester Unity and Appium</figcaption></figure><p>When it comes to mobile automation testing, there are many different choices for a test tool. One popular option is <a href="http://appium.io/">Appium</a>, an open-source project which enables running automated tests on both <strong>Android</strong> and <strong>iOS</strong> devices.</p><p>Whereas AltTester Unity SDK is a free, open-source asset. Its main goal is to enable UI test automation for Unity applications, by instrumenting games to get access and programmatically control the Unity objects.</p><p>Appium and AltTester Unity SDK can be used together to create a comprehensive and effective automation solution for testing Unity applications on mobile devices.</p><h4>What is AltTester Unity SDK?</h4><ul><li>AltTester Unity SDK is an open-source UI-driven test automation tool which helps you find objects in your game and interacts with them using tests written in supported languages like C#, Python or Java.</li><li>It allows automating interactions with Unity game objects, such as clicking buttons, setting values in unity, and asserting expected behaviour.</li><li>It provides cross-platform support which allows you to automate the testing of Unity applications on Android and iOS platforms as well as on PCs</li><li>It can be integrated with Appium to interact with native elements</li></ul><h4><strong>How AltTester Unity SDK works?</strong></h4><p>AltTester Unity SDK framework contains the following modules:</p><ul><li>AltDriver</li><li>AltTester Package (Unity)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*1TFBs_G2xTXkfCfyVmQzdg.png" /><figcaption>AltTester Unity SDK</figcaption></figure><p>AltTester Unity SDK is used to instrument your Unity App to expose access to all the objects in the Unity hierarchy. The instrumented Unity App opens up a Web socket connection on the device and waits for an AltDriver to connect after starting the application.</p><p>AltDriver module is used to connect to the instrumented Unity App, access all the Unity objects and interact with them to simulate any kind of device input through tests written in C#, Java or Python.</p><p>AltTester Package contains the AltTester Editor window which is the GUI used for instrumenting a Unity game and running C# tests directly from Unity Editor.</p><h4>Why use Appium together with AltTester Unity SDK?</h4><ul><li><strong>Cross-platform testing:</strong> Combined with Appium, which is a widely used cross-platform mobile automation framework, we can create automated tests for Unity applications on both Android and iOS devices.</li><li><strong>Native and Unity interactions: </strong>Appium is designed for automating native mobile applications, while AltTester Unity SDK is specifically tailored for automating Unity applications.<br>By using Appium in combination with AltTester Unity SDK, we can automate interactions not only with the native UI elements of our mobile app but also with the Unity game objects and UI elements within our Unity application.</li><li><strong>Comprehensive testing coverage:</strong> This allows for comprehensive end-to-end testing coverage of the Unity application, including interactions between native and Unity components.</li><li><strong>Flexibility and Scalability:</strong> Both these tools provide flexibility and scalability in automation testing. Appium supports multiple programming languages, including Java, Ruby, Python, and C#, allowing you to choose the language that best fits your team’s expertise. AltTester Unity SDK provides C# scripts and Unity components for automating Unity applications, which can be easily integrated into your existing Unity projects.</li><li><strong>Easy setup and configuration: </strong>AltTester Unity SDK provides easy setup and configuration within the Unity environment, with clear documentation and examples available on developer’s guide.</li></ul><h4>How to integrate AltTester and instrument your game?</h4><ol><li>Open the AltTester Editor window from Unity Editor -&gt; AltTester -&gt; AltTester Editor</li><li>In the Build Settings section set <strong>AltTester Port</strong> to 13000</li><li>In the Scene Manager section select the scenes you want to include in your build</li><li>In the Platform section select desired platform and set the path to where you want to save the build</li><li>Press “Build Only” to instrument the game or “Build &amp; Run” to start your instrumented game after the build succeeded</li><li>Check the console to see if the build was successful.</li></ol><p>To integrate and to create instrumented app, you can follow below video as well.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FqUuR9Z6g3pA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DqUuR9Z6g3pA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FqUuR9Z6g3pA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b4cd06c49115c36ce197b0ac5f8f442/href">https://medium.com/media/2b4cd06c49115c36ce197b0ac5f8f442/href</a></iframe><h4>How to integrate AltTester in Appium?</h4><ol><li>Integrate AltTester Unity SDK dependency in POM.xml file of your Appium framework.</li></ol><pre>&lt;!-- https://mvnrepository.com/artifact/com.altom/altunitytester-java-client --&gt;<br>  &lt;dependency&gt;<br>   &lt;groupId&gt;com.alttester&lt;/groupId&gt;<br>   &lt;artifactId&gt;alttester&lt;/artifactId&gt;<br>   &lt;version&gt;1.8.0&lt;/version&gt;<br>  &lt;/dependency&gt;</pre><p>2. Add the created instrumented app in the Capabilities files for Android and iOS platforms.</p><pre>DesiredCapabilities capabilities = new DesiredCapabilities();<br>capabilities.setCapability(&quot;deviceName&quot;, &quot;WKZLMJLB7L8TR8SW&quot;);<br>capabilities.setCapability(&quot;platformName&quot;, &quot;Android/iOS&quot;);<br>capabilities.setCapability(&quot;appPackage&quot;, &quot;com.example.unity&quot;);<br>capabilities.setCapability(&quot;appActivity&quot;, &quot;com.unity3d.player.UnityPlayerActivity&quot;);<br>capabilities.setCapability(&quot;app&quot;, &quot;#path_to_apk/ios_app_file&quot;);</pre><p>3. Run the test suite written in Appium framework</p><p>The use of AltUnityTester and Appium together can be a powerful combination for mobile app testing. However, it is important to note that using these tools together may require some technical expertise and configuration. Additionally, the effectiveness of the combination will depend on the specific requirements of the testing project and the quality of the test scripts and scenarios developed.</p><p>Thanks to <a href="https://medium.com/u/da90dfca5b34">Pankaj Dusane</a> for helping in all the work required in integrating AltTester with Appium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2d51306bd02" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helpshift-engineering/appium-together-with-alttester-unity-sdk-c2d51306bd02">Appium together with AltTester Unity SDK</a> was originally published in <a href="https://medium.com/helpshift-engineering">helpshift-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Shadow DOM]]></title>
            <link>https://medium.com/helpshift-engineering/automating-shadow-dom-b6f1a251f65b?source=rss-23fc6adeaae1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6f1a251f65b</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[shadow-dom]]></category>
            <dc:creator><![CDATA[Snehal Salunke]]></dc:creator>
            <pubDate>Tue, 30 Aug 2022 08:08:20 GMT</pubDate>
            <atom:updated>2022-08-30T08:08:20.360Z</atom:updated>
            <content:encoded><![CDATA[<p>While writing the automation test script for <a href="https://developers.helpshift.com/sdkx_android/getting-started/">a hybrid app</a> using Appium, I encountered the challenge of handling Shadow DOM web elements. Appium, which derives its roots from Selenium, does not provide explicit support for working with Shadow DOM elements. If you try to find out shadow DOM element with locators, you will get “NoSuchElementException”. To access these elements, we need to use the JavascriptExecutor executeScript() function.</p><h4><strong>Let’s understand what shadow DOM is?</strong></h4><p>Shadow DOM serves for encapsulation. It allows a component to have its very own “shadow” DOM tree, that can’t be accidentally accessed from the main document, may have local style rules, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*SPkQXCwUXFOOA3GIaDPFhg.png" /><figcaption>Visual representation of Shadow DOM</figcaption></figure><p>This is the visual representation of how Shadow DOM allows hidden DOM trees to be attached to elements in the regular DOM tree.</p><p>There are some bits of shadow DOM terminology -<br><strong>Shadow host:</strong> The regular DOM node that the shadow DOM is attached to.<br><strong>Shadow tree:</strong> The DOM tree inside the shadow DOM.<br><strong>Shadow boundary:</strong> the place where the shadow DOM ends, and the regular DOM begins.<br><strong>Shadow root</strong>: The root node of the shadow tree.</p><h4><strong>Explore Shadow DOM with example</strong></h4><p>We will look into Helpshift’s Help Center page, where FAQ Article feedback section is inside shadow root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iapia62ZkTS5zhYWYz0KLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ChL9zWx-jjhN9ANSD2VYA.png" /></figure><p>Here, the left side image shows the FAQ article screen of the hybrid mobile app and on the right side you can see to get FAQ feedback questions or FAQ feedback buttons. To access these elements, we need to navigate through the shadow root element.<br>We can access the elements only if shadow-root DOM has open mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwQKpUOH7GArqs7D4UX7bA.png" /><figcaption>Find shadow root element via Console</figcaption></figure><p>To achieve this, we can use the console to traverse to the root element as above. Once we can traverse until our required path, we will get the WebElement of shadow-root using JavascriptExecutor executeScript() function inside our page classes to perform actions on that web element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxu9M9Iht4SlsJcY8B9dAQ.png" /><figcaption>Code snippet: Click FAQ feedback button which is inside shadow root</figcaption></figure><p>The shadow-root handling is encapsulated in the page classes, which make the test scripts easier to read, and more importantly, easier to maintain.</p><p>Happy testing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6f1a251f65b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helpshift-engineering/automating-shadow-dom-b6f1a251f65b">Automating Shadow DOM</a> was originally published in <a href="https://medium.com/helpshift-engineering">helpshift-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dev-QA Relationship]]></title>
            <link>https://medium.com/helpshift-engineering/dev-qa-relationship-2032c9a05f09?source=rss-23fc6adeaae1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2032c9a05f09</guid>
            <category><![CDATA[process]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Snehal Salunke]]></dc:creator>
            <pubDate>Fri, 24 Jun 2022 07:41:12 GMT</pubDate>
            <atom:updated>2022-06-24T07:41:12.933Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NCv1CCcDAHPYeyaB3kZ6lg.jpeg" /><figcaption>Photo by <a href="http://twitter.com/bamagal">@bamagal</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><blockquote>Developer: There is no I in TEAM.<br>Tester: We can’t spell BUGS without U</blockquote><p>Well, Dev-QA cannot work without each other. To have a healthy process and great end product, the developer and QA relationship should be one of mutual respect. Developers and QAs, both, serve crucial roles in the SDLC. Two heads are better than one, so by working together, the result can be great. Dev-QA sync-up means less stress, more productivity, and a smoother experience for everyone from the engineering team to the end users.</p><p>To make this relationship stronger, a few things that we need to keep in mind are following.</p><p><strong># Be a Proactive dev</strong><br>In this age of Agile and the constantly evolving needs of customers, it is hard to deliver a production-ready and error-free application. So be proactive, test what you have built, and resolve the issues you find along the way, even if they’re not necessarily part of your code.</p><p>Developers can try, with small mindset changes, to not only work more efficiently with QA, but leave enough room for each team member to feel comfortable, appreciated, and effective.</p><p><strong># When is “done” really done?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*jxFsyuWfZlcjHvg0FuBGog.jpeg" /></figure><p>As a developer, you know all the details of implementation, so before you say <br>that you are done, consider if any changes introduced might cause some random regression, and investigate that. Ask yourself how well you’re prepared for integration, since the bug in your code could affect other teams.<br>Test your code and think of ways to break your castle before you push the code out.</p><p><strong># To Bug or Not To Bug</strong><br>Sometimes, QA will report user experience issues that a developer may not think of as bugs. When this happens, it is best to let the Product Manager decide the priority.</p><p>As a gatekeeper, you can’t fight over every single defect. Understand which fights are worth fighting and where you can let go. Otherwise, everyone will spend a lot of time fixing things that are not that important.</p><p><strong># Testers to Trouble-shooters</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*8sTFVbWclISiRe1svxf9QQ.png" /><figcaption>Source: <a href="http://www.facebook.com/">www.facebook.com</a></figcaption></figure><p>It’s funny, how almost all developers worldwide consider Testers to be the troublemakers. Actually, it’s not their fault, no one likes to hear faults in his/her baby. But we need to understand, testers are not troublemakers, they are troubleshooters.</p><p><strong># Effective collaboration</strong> <br>Software development is not a place for optimism, it’s a place for doubt.<br>To ship quality product, Dev-QA both must have effective collaboration. A QA Team member can shed light on the suggested approach, can identify edge cases and bring business knowledge and end user perspective to the mix.</p><p><strong># Be open with information</strong><br>On asking questions by QA, if dev gives the answers in helpful and open manner, it increases the team bond. When QA feels discouraged from asking questions, it definitely leads to risk of bugs in production. Helping QA to understand why certain things were set up the way will maximize the product quality.</p><p>Similarly, QA should be open to provide all the required details about the bug they are raising including logs, network calls, recordings, screenshots, stack-trace etc to ease the developers lives.</p><p><strong># Shared responsibility </strong><br>Dev-QA relationship goes hand in hand, and it is shared responsibility. A good developer should know the basics of testing and can do some of the things that a tester does. In the same vein, a good tester should know the basics of development, and the pain points that a developer faces.</p><p><strong># Cheers for peers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JUE4izXz42pvb-b2XZhEA.jpeg" /></figure><p>Raising bugs are always going to happen but if QA finds the build which was near to production quality, appreciate devs for the amazing work.</p><p>Although finding bug is part of QA process, on finding out some edge case which would have impacted on larger area in production should be appreciated by devs. This helps in keeping the team motivated.</p><p><strong>Conclusion</strong></p><p>Delivering quality product is teamwork. When Dev-QA are co-operative enough to look at the final target, the process of product delivery becomes smoother. After-all, Teamwork makes the dream work!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2032c9a05f09" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helpshift-engineering/dev-qa-relationship-2032c9a05f09">Dev-QA Relationship</a> was originally published in <a href="https://medium.com/helpshift-engineering">helpshift-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Singleton Framework for Mobile and Web Apps with Appium]]></title>
            <link>https://medium.com/helpshift-engineering/singleton-framework-for-mobile-and-web-apps-with-appium-bf37f1a1ed5d?source=rss-23fc6adeaae1------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf37f1a1ed5d</guid>
            <category><![CDATA[testing-framework]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Snehal Salunke]]></dc:creator>
            <pubDate>Thu, 12 May 2022 08:45:50 GMT</pubDate>
            <atom:updated>2022-05-12T08:45:50.009Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hXLW1k2ymtL3hZxm" /><figcaption>Appium: Cross-platform solution for mobile test automation</figcaption></figure><p>The mobile market is no longer just communication. It is the internet, music, video, games, web, social networks, navigation, and everything else. Due to the increasing volume of mobile applications in development, we’ve seen several tools for testing appearing on the market. Choosing the right tool can be difficult because of high customer expectations and growing market requirements.</p><blockquote><strong><em>While a good reputation precedes you, a bad reputation will follow you for a long time</em></strong></blockquote><p>Hence, it’s essential to have your applications tested to provide the best user experience. In our organization <strong>Helpshift</strong>, we are using the Appium automation framework mainly due to its cross-platform nature which allows writing tests on iOS and Android platforms using the same API.</p><p>Helpshift’s newest mobile SDK is hybrid, called <a href="https://developers.helpshift.com/sdkx_android/getting-started/">SDK X</a>. Its native layer wraps two web apps for the main functionality. This hybrid SDK is available on Android and iOS platforms. We need to test mobile apps on various device and platform combinations, including phones, tablets, iPad, and mobile browsers along with the web app which is embedded into the hybrid SDK. The prime objective of the framework is to get high-quality output that reduces the cost and time required for project delivery.</p><p>Thanks to the Appium framework we created, we can achieve a <em>single test case</em> which executes on all different platforms for SDK X, mobile browsers, and desktop browsers. As the title indicates, it is a singleton framework for all 3 different platforms. <em>Isn’t it exciting?!</em></p><p><strong>Let’s walk you through our framework structure:</strong></p><p>The Appium framework that we have created has the following components.</p><ol><li><strong>Appium</strong></li></ol><p>To run mobile test cases, you need two things:</p><p>i) <a href="https://appium.io/">Appium</a> is a web server that exposes REST APIs. It establishes a connection with the client, captures the commands, executes those commands on a device, and sends the result of the command execution via an HTTP response.</p><p>ii) <a href="https://mvnrepository.com/artifact/io.appium/java-client">Java Client</a>: This is the Java language binding for writing Appium tests. This is a .jar file that we need to add in pom.xml as a maven dependency.</p><p><strong>2. Maven</strong></p><p>We use Maven as the dependency management tool in our framework. Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting, and documentation from a central piece of information.</p><p>All the dependencies in the framework are managed in the pom.xml file. We have used a concept of parameterization using maven where we are passing some properties in the maven execution command as the following block. These properties are platform, env, mobileweb, istablet, browser.</p><pre><strong>&lt;properties&gt;<br>   &lt;platform&gt;${android}&lt;/platform&gt;<br>   &lt;env&gt;${local}&lt;/env&gt;<br>   &lt;mobileweb&gt;${false}&lt;/mobileweb&gt;<br>   &lt;istablet&gt;${false}&lt;/istablet&gt;<br>   &lt;browser&gt;${chrome}&lt;/browser&gt;<br>&lt;/properties&gt;</strong></pre><p>Using these properties, the command execution will be:</p><pre><strong>$ mvn -Dplatform=android -Denv=local -Dmobileweb=false -Distablet=false clean test</strong></pre><p>Default initialization properties are defined in the constants file, which will get utilized when anyone wants to run a test directly from IDE. It is defined as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Kdq0vrvz2ybJgCJ_.png" /><figcaption>Initializing default properties</figcaption></figure><p><strong>3. POM with page factory</strong></p><p>The framework is based on the Page Object Model (POM) model. In the Page Object Model framework, we create a class file for each web page. This class file consists of different web elements present on the web page. Moreover, the test scripts then use these elements to perform different actions. Since each page’s web elements are in a separate class file, the code becomes easy to maintain and reduces code duplicity.</p><p>The Page Factory Model design pattern helps to develop faster, easier, and cleaner tests. In Page Factory, we use <a href="http://twitter.com/FindBy">@FindBy</a> annotation. The initElements method is used to initialize web elements. Below is a brief representation of POM model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5wnrfWE1LS642Sbx.png" /><figcaption>Page Object Model in Test Scripts</figcaption></figure><p>As mentioned in the above image, the initialization of web drivers and everything needed is done in BaseTest.java file as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S_qgNGPdOipyulqj.png" /><figcaption>Web Driver Initialization</figcaption></figure><p><strong>4. TestNG</strong></p><p>The framework consists of TestNG as a testing framework. TestNG eliminates most of the limitations of the older framework and gives us the ability to write more flexible and powerful tests with help of easy annotations, grouping, sequencing &amp; parametrizing.</p><p><strong>5. Allure Report</strong></p><p>After trying out multiple reporting tools, we finalized Allure Reports. Allure Framework is a flexible lightweight multi-language test report tool. It not only shows a concise representation of what has been tested in a neat web report form, but also allows everyone participating in the development process to extract maximum useful information from the everyday execution of tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9j7qghiBnfLMruH1.png" /><figcaption>Allure report graph</figcaption></figure><p><strong>Wrapping up</strong></p><p>Woo, you just learned how we created the singleton framework to run the automation test suite on mobile and web apps. You can run the suite in headless mode as well as per the need. If you want to establish a powerful framework, consider using the above tools to make the testing framework reliable and easy to maintain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf37f1a1ed5d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helpshift-engineering/singleton-framework-for-mobile-and-web-apps-with-appium-bf37f1a1ed5d">Singleton Framework for Mobile and Web Apps with Appium</a> was originally published in <a href="https://medium.com/helpshift-engineering">helpshift-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>