<?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 Amna Bibi on Medium]]></title>
        <description><![CDATA[Stories by Amna Bibi on Medium]]></description>
        <link>https://medium.com/@amna.bibi?source=rss-f4c777e5594a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QTFTTkyosxc_jA_EHhY11g.jpeg</url>
            <title>Stories by Amna Bibi on Medium</title>
            <link>https://medium.com/@amna.bibi?source=rss-f4c777e5594a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:39:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amna.bibi/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[Getting started with Cypress 10 and Cucumber]]></title>
            <link>https://medium.com/emumba/getting-started-with-cypress-10-and-cucumber-6b43ff68633b?source=rss-f4c777e5594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b43ff68633b</guid>
            <category><![CDATA[web-automation-testing]]></category>
            <category><![CDATA[cypress]]></category>
            <category><![CDATA[cucumber]]></category>
            <dc:creator><![CDATA[Amna Bibi]]></dc:creator>
            <pubDate>Wed, 21 Sep 2022 05:38:54 GMT</pubDate>
            <atom:updated>2022-09-26T12:13:45.378Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dop8WNIrizj25g3FQhQVHQ.png" /></figure><p>Among the most popular test automation frameworks for the web, Cypress saves one of the top spots. As mentioned in the <a href="https://docs.cypress.io/guides/overview/why-cypress#What-you-ll-learn">official docs</a> of cypress, it provides time travel, debuggability, automatic waiting, flake-free and reliable tests, network traffic control, cross-browser testing, and much more! making it the perfect choice for web automation testers.</p><p>Not long ago, cypress 10 had been released with breaking changes so it&#39;s better for the folks who are just planning to get their hands dirty on cypress to install the latest version. The process of installation of cypress is quite simple and easy but we’ll look at how to install and configure cucumber with it.</p><p>Wait a minute..!!</p><p>We haven’t yet discussed what cucumber is and why we are using it here. Before starting, let’s quickly discuss cucumber.</p><h4><strong>What is cucumber BDD?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*q8zFvXcTyw9XZRI2SRUB2Q.png" /></figure><p>Based on Behavior Driven Development, cucumber is a testing framework that uses simple English sentences to define the behavior of any application. With the help of a Gherkin script, it brings all the technical and non-technical people to the same page about the product hence making it simple for the team members to understand what’s going to be created.</p><p>You can further read about cucumber <a href="https://cucumber.io/docs/cucumber/">here</a></p><h4>Installation steps</h4><p>Now, let’s move on to the installation of cypress and cucumber step by step. Starting with the prerequisites, you need to have these tools to initiate project setup</p><ul><li><a href="https://code.visualstudio.com/download">VS Code</a></li><li><a href="https://nodejs.org/en/download/">Node.js</a> 12 or 14 and above</li></ul><ol><li><strong>Create a project and install cypress</strong></li></ol><ul><li>Create an empty project folder in your local machine and open that project in VS Code</li><li>Open the terminal and enter the command</li></ul><pre>npm init</pre><p>Answer the questions that it asks or just keep pressing Enter. After the last step, it’ll add a package.json file to your project with the information you have added so far, like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/0*9Fmnk9QYfa6rIqp2" /><figcaption>package.json</figcaption></figure><ul><li>Type the following command on the terminal to install the latest version of cypress</li></ul><pre>npm install cypress --save-dev</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/0*wCsX_UUR5E1WkKFG" /><figcaption>package.json after installation of cypress</figcaption></figure><p>At this point, add the script to run cypress. You can directly open cypress Launchpad from here</p><pre><em>“cypress:open”: “cypress open”</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/0*8ar7Nu5zYvBR2uKj" /><figcaption>packgae.json after adding cypress:open script</figcaption></figure><p>It’ll give you the option to select either E2E Testing or Component Testing. We’ll go with the E2E Testing here</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/0*NJL6ma-mamIs-NRz" /><figcaption>Cypress Launchpad</figcaption></figure><p>For first-time users, there’s an onboarding screen, you can read and click the Continue button which takes you to the selection of Browser screen. We’ll go with Chrome, click “Start E2E Testing” in Chrome and it’ll take you to this screen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KIhF-6D0oOVG2-EG" /><figcaption>Cypress Spec Explorer</figcaption></figure><p>After setting up cucumber and creating new feature files, we’ll return to this screen, so let’s close it for now.</p><p>You’ll notice that the above step has automatically added the cypress folder and cypress.config.js file into your root directory.</p><p><strong>2. Install cucumber</strong></p><ul><li>Type this command on the terminal to install cucumber</li></ul><pre>npm i @badeball/cypress-cucumber-preprocessor</pre><pre>npm i cypress @bahmutov/cypress-esbuild-preprocessor esbuild</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/0*iRB_NQGde9OTr_fL" /><figcaption>package.json after installation of cucumber libraries</figcaption></figure><ul><li>The next step is to set the configurations in cypress.config.js file</li></ul><pre>const createBundler = require(“@bahmutov/cypress-esbuild-preprocessor”);</pre><pre>const addCucumberPreprocessorPlugin = require(“@badeball/cypress-cucumber-preprocessor”).addCucumberPreprocessorPlugin;</pre><pre>const createEsBuildPlugin = require(“@badeball/cypress-cucumber-preprocessor/esbuild”).createEsbuildPlugin;</pre><pre>module.exports = defineConfig({</pre><pre>e2e: {</pre><pre>async setupNodeEvents(on, config) {</pre><pre>// implement node event listeners here</pre><pre>const bundler = createBundler({</pre><pre>plugins: [createEsBuildPlugin(config)],</pre><pre>});</pre><pre>on(‘file:preprocessor’, bundler);</pre><pre>await addCucumberPreprocessorPlugin(on, config);</pre><pre>return config;</pre><pre>},</pre><pre>specPattern: ‘cypress/e2e/features/*.feature’</pre><pre>},</pre><pre>});</pre><p>Add your feature file path in the <strong>specPattern</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bhJqgOZxKSIgvDx_" /><figcaption>cypress.config.js</figcaption></figure><ul><li>Create a new file named .cypress-cucumber-preprocessorrc.json inside the root directory of your project and specify the location of step definitions as follows</li></ul><pre>{</pre><pre>“stepDefinitions”: [</pre><pre>“cypress/stepDefinitions/*.js”</pre><pre>]</pre><pre>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*K3r91w5SpBxNQGP2h3fOgg.png" /><figcaption>.cypress-cucumber-preprocessorrc.json</figcaption></figure><p>Installing a cucumber support plugin in VS Code will come in handy as it’ll make you write the features and step definitions files more effortlessly. I’m using the one shown in the screenshot below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iZDkVFWXXWnj6WtK" /><figcaption>Cucumber (Gherkin) plugin</figcaption></figure><p><strong>3. Write scripts</strong></p><p>Now, the project is ready to add features and step definitions. I have used <a href="https://automationexercise.com/">https://automationexercise.com/</a> for practice purposes and automated the Login test case for demonstration.</p><p>Here’s the login.feature file snippet and screenshot</p><pre>Feature: Login</pre><pre>Scenario: Login user with correct email and password</pre><pre>Given I navigate to automation exercise website</pre><pre>When I enter login credentials</pre><pre>Then I should be logged in</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*oRAcbpGV0UmCIiPG9clT2g.png" /><figcaption>login.feature</figcaption></figure><p>and below is the loginSteps snippet with screenshot</p><pre>/// &lt;reference types=”Cypress” /&gt;</pre><pre>import {Given, When, Then} from ‘@badeball/cypress-cucumber-preprocessor’;</pre><pre>Given(‘I navigate to automation exercise website’, () =&gt; {</pre><pre>cy.visit(‘https://automationexercise.com/&#39;);</pre><pre>})</pre><pre>When(‘I enter login credentials’, () =&gt; {</pre><pre>cy.get(‘a[href=”/login”]’).click();</pre><pre>cy.contains(‘Login to your account’).should(‘be.visible’);</pre><pre>cy.get(‘input[data-qa=”login-email”]’).type(‘example1@test.com’);</pre><pre>cy.get(‘input[data-qa=”login-password”]’).type(‘foobar’);</pre><pre>cy.get(‘button[data-qa=”login-button”]’).click();</pre><pre>})</pre><pre>Then(‘I should be logged in’, () =&gt; {</pre><pre>cy.contains(‘ Logged in as ‘).should(‘be.visible’);</pre><pre>})</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nHWrHeF_PiJtmK_Q8oHfOw.png" /><figcaption>loginSteps.js</figcaption></figure><p><strong>4. Run scripts</strong></p><p>Run the below script from package.json file directly using</p><pre>npm run cypress:open </pre><p>and select login.feature from your feature files inside the Spec Explorer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k6FFEVjDgs7ckWXKSY-fpA.png" /><figcaption>login.feature file in specExplorer</figcaption></figure><p>Now, you can see your test running in the test runner.</p><p>One point to note here is that when you run the test you’ll see all of the xhr calls that are not necessary to view so it’s better to hide them as they’ll cause a nuisance while viewing your individual test actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xP8LUPuLUiFNil2sZFd04w.png" /><figcaption>xhr calls in test runner</figcaption></figure><p>In order to hide them, simply copy the following code in <em>cypress/support/e2e.js</em></p><pre>// Hide fetch/XHR requests</pre><pre>const app = window.top;</pre><pre>if (!app.document.head.querySelector(‘[data-hide-command-log-request]’)) {</pre><pre>const style = app.document.createElement(‘style’);</pre><pre>style.innerHTML =</pre><pre>‘.command-name-request, .command-name-xhr { display: none }’;</pre><pre>style.setAttribute(‘data-hide-command-log-request’, ‘’);</pre><pre>app.document.head.appendChild(style);</pre><pre>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mUuHhTTk6ZuRG8D9VDCNcA.png" /><figcaption>e2e.js</figcaption></figure><p>Then again run the test and notice that there are no xhr calls anymore</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-mnIycjbLDrF_uWKXH4CUw.png" /><figcaption>Test runner without xhr calls</figcaption></figure><p>I hope you found this blog helpful. Follow the above steps and run your first test case with cypress and let me know how it went in the comments.</p><p>Happy Testing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b43ff68633b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/getting-started-with-cypress-10-and-cucumber-6b43ff68633b">Getting started with Cypress 10 and Cucumber</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Xcode and Appium for iOS Automation (Real device)]]></title>
            <link>https://medium.com/emumba/setup-xcode-and-appium-for-ios-automation-real-device-6d6d86874ae1?source=rss-f4c777e5594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d6d86874ae1</guid>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[ios-automation]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Amna Bibi]]></dc:creator>
            <pubDate>Mon, 24 Jan 2022 10:37:26 GMT</pubDate>
            <atom:updated>2023-03-03T08:09:16.008Z</atom:updated>
            <content:encoded><![CDATA[<p>Passing software through rounds of automation testing, before it is released into the market, has become a key requirement in recent years. Running automated test cases for regression cycles saves a lot of time and effort for the software testers. Developing an automation script requires different tools and frameworks and for mobile testing, Appium is probably the most used and liked software for automation engineers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*NHg9Tx6X7LEXj7w3uSJGHQ.png" /></figure><p>Appium is a free, open-source, and cross-platform automation tool that is used to test native, hybrid, mobile web, and desktop applications. Being a very versatile tool, Appium isn’t dependent on the framework that is being used for testing as it offers support for multiple programming languages including but not limited to Java, Javascript, Python, PHP, Ruby, and C#.</p><p>In this blog, our main goal will be to go through the steps required to set up Appium for iOS automation testing on macOS but before that let’s go through the required prerequisites to work with Appium and create an environment for testing a hybrid iOS app.</p><h4><strong>Prerequisites</strong></h4><p><strong>1. Install Homebrew</strong></p><p>If you haven’t had homebrew already installed on your macOS, copy and paste the command written below on your Mac terminal. You can also retrieve this command from the <a href="https://brew.sh/">Homebrew official website</a></p><pre>/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</pre><p><strong>2. Install Node.js</strong></p><p>Head on over to the <a href="https://nodejs.org/en/download/">Node official website</a> and click on macOS Installer. Your file will start downloading automatically. Once the download is completed, run the node package. It’ll install both node and npm. Running the following commands on your terminal is a great way to make sure that the node is successfully installed on your system.</p><pre><em>node -v</em></pre><pre><em>npm -v</em></pre><p><strong>3. Install Carthage</strong></p><p>Install Carthage using the following command</p><pre><em>brew install carthage</em></pre><p><strong>4. Install JDK (Java Development Kit)</strong></p><p>To download JDK, go to this link<a href="https://www.oracle.com/java/technologies/javase/jdk15-archive-downloads.html"> JDK-15</a> and install <strong>Java SE Development Kit 15.0.1 </strong>for<strong> macOS Installer.</strong></p><p>I use JDK-15 for my project. You can use the latest version as well.</p><p>It’ll ask for a license agreement first then ask you to sign in to your oracle account. If you don’t have an Oracle account, you can create a free one by just simply signing up. Once you’ve signed in, the download will start automatically.</p><p>Once the file is downloaded, open the setup, follow the steps for installation, and when the installation is successful open the terminal and confirm that it is installed properly using the following command</p><pre><em>javac -version</em></pre><p>If it shows output like the following then it’s successfully installed.</p><pre><em>javac 15.0.1</em></pre><p>The next step is to find where java is installed and it can be confirmed with the following command</p><pre>where java</pre><p>It’ll show you a path like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/0*ilBIrF_2q1v4uOnJ" /></figure><p>Copy this as you’ll have to set the JAVA_HOME path.</p><p><strong>Set JAVA_HOME Path on Mac</strong> — —<strong> </strong>Open .bash_profile and type</p><pre>export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home</pre><p><em>If it’s not set, then try to restart your system to reflect this change.</em></p><p><strong>5. Download Android Studio</strong></p><p>Download Android Studio from their official website <a href="https://developer.android.com/studio">Android Studio</a></p><p>And install it following the installation steps.</p><p><strong>Set Android SDK Path</strong></p><ul><li>Open Android Studio, click <strong><em>More Actions</em></strong> and then click<strong> <em>SDK Manager</em></strong></li><li>Copy<strong> <em>Android SDK Location</em></strong></li><li>Open .bash_profile and paste the following</li></ul><pre>export ANDROID_HOME=/Users/{user_name}/Library/Android/sdk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*-T74FRqGW_DAjv6r" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*z7NMWPYxWcOqWZh1" /></figure><p><strong>6. Install ios-deploy</strong></p><p><a href="https://github.com/ios-control/ios-deploy">ios-deploy</a> is used to install and debug iOS apps through the command line without using the Xcode. Paste the following command on the terminal to install it</p><pre>brew install ios-deploy</pre><p><strong>7. Install ideviceinstaller</strong></p><p><a href="https://github.com/libimobiledevice/ideviceinstaller">ideviceinstaller</a> is an application that allows the iOS device to install, upgrade, uninstall, archive, restore and enumerate apps. It can be installed using</p><pre>brew install ideviceinstaller</pre><p>After the prerequisites are done installation now it’s time to install and configure Appium and Xcode.</p><h4><strong>Install Appium through Terminal</strong></h4><p>To install the latest appium, run the following command on terminal</p><pre>npm install -g appium</pre><p>In case you face permission problems then first run the following</p><pre>sudo chown -R [owner] /usr/local/lib/node_modules</pre><p>And then run</p><pre>npm install -g appium</pre><p>The benefit of installing appium globally is that you can start the appium server programmatically later on.</p><p><strong>Install Appium GUI</strong></p><p>You can download .dmg file of appium for mac from their <a href="https://github.com/appium/appium-desktop/releases/tag/v1.21.0">official link</a>. Once downloaded, follow the installation instructions. Sometimes you may face an error that <strong>You don’t have permission to open the Application “Appium.app” </strong>in that case</p><ul><li>Click the Apple icon at the top left corner of your mac.</li><li>Click <strong><em>System Preferences</em> </strong>and click <strong><em>Security and Privacy</em></strong></li><li>Go to the <strong><em>General</em> </strong>tab</li><li>Click the lock icon to make changes</li><li>Click on Allow permissions to run Appium</li></ul><p>This way you’ll be able to launch Appium. After installation, launch the Appium application and click <strong><em>Edit Configurations</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*62aXYtFtNdTm8SL2Tl8Q-Q.png" /></figure><p>and set <strong><em>ANDROID_HOME </em></strong>and<strong><em> JAVA_HOME </em></strong>as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*fIP03XisagCPq5XhGp8YZw.png" /></figure><p>Enter the user_name of your machine in the red-colored text place and click <strong><em>Save and Restart.</em></strong></p><h4><strong>Connect the real iOS device with Appium using Xcode</strong></h4><p>1. Go to the below folder and search for WebdriverAgent.xcodeproj</p><pre>​​/Users/{user_name}/.npm-global/lib/node_modules/appium/node_modules/appium-webdriveragent</pre><p>This is usually the folder where appium is installed</p><p>2. Select WebdriverAgent.xcodeproj to run in Xcode</p><p>3. Go to Xcode then click <strong><em>Preferences</em></strong></p><p>4. In the <strong><em>Accounts</em></strong> tab, click <strong>+</strong> sign</p><p>5. Select Apple ID and click Continue</p><p>6. Enter your Apple ID and click Next</p><p>7. Enter Password and click Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/0*l2GqNhXoiI0NF6Q3" /></figure><p>8. The result will be just like the screenshot below. When Apple ID has been added successfully you can close this window</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/0*lodDp6xEDjvkWbtn" /></figure><p>9. The main project name is WebDriverAgent. Inside this project, there are two Targets</p><p>a. <em>WebDriverAgentLib</em></p><p>b. <em>WebDriverAgentRunner</em></p><p>10. Click on <strong>WebDriverAgentLib</strong></p><p>11. Click on <strong>Build settings</strong>.</p><p>12. Scroll to Packaging and in<em> </em><strong><em>Product Bundle Identifier,</em> </strong>there’s written some string like <em>com.facebook.WebDriverAgentLib</em>. Change “facebook” to some unique string like “<em>abc123”</em> so that it becomes like this <em>com.abc123.WebDriverAgentLib</em></p><p>13. Click <strong><em>Signing &amp; Capabilities</em> </strong>and select <strong><em>Automatically manage signing</em></strong></p><p>14. Select the account that you created at step 8 in the<em> </em><strong><em>Team</em> </strong>dropdown</p><p>15. <strong><em>Bundle Identifier</em></strong> should be the one you have given in step <em>12</em></p><p>16. Select Development in <strong><em>Signing Certificate</em>. </strong>It’ll generate a signing certificate for you</p><p>17. Now select <strong><em>WebDriverAgentRunner</em> </strong>and repeat the steps from <em>11</em> to <em>16</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/0*kMq03O7mJsrxVak4" /></figure><p><strong>Note: </strong>If an error appears like <strong><em>No profiles were found for com.abc123.WebDriverAgentLib</em></strong> you need to change the string “abc123” to something else. It should be unique.</p><p>If an error pops up like <strong><em>Your maximum App ID limit has been reached. You may create up to 10 App IDs every 7 days</em></strong>, then unfortunately you’ll have to wait till said days. This problem appears when you have a free developer account.</p><p>18. Now connect your real iOS device with your mac using cable and open terminal and paste the following</p><pre>xcrun xctrace list devices</pre><p>This command will list down the udid of all available devices. Copy the udid of the connected real device and save it somewhere.</p><p>19. Now open the terminal and paste the following and then press Enter</p><pre>cd /Users/{userName}/.npm-global/lib/node_modules/appium/node_modules/appium-webdriveragent</pre><p>Then paste the following and hit Enter again</p><pre>xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id={Enter udid from step 18 here } test</pre><p>The above command will install the WebDriverAgentRunner app into your real device</p><p><strong>Note: </strong><em>You’ll have to build the Xcode project by running the above command every time you connect your real device with your mac</em></p><h4><strong>Desired capabilities in Appium Desktop</strong></h4><p>Start Appium server from the Appium desktop application and enter the following desired capabilities one by one</p><pre>{</pre><pre>“deviceName”: “{your device name}”, //e.g. iPhone 8 Plus</pre><pre>“platformName”: “iOS”,</pre><pre>“platformVersion”: “{your device OS version}”, //e.g. 14.7.1</pre><pre>“automationName”: “XCUITest”, //or Appium</pre><pre>“udid”: “{your phone’s udid}”,</pre><pre>“bundleId”: “{bundleID of your app}”</pre><pre>}</pre><p>Finally, start the Session.</p><p>Hope you found this blog helpful. Till next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d6d86874ae1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/setup-xcode-and-appium-for-ios-automation-real-device-6d6d86874ae1">Setup Xcode and Appium for iOS Automation (Real device)</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Things to Add in your Mobile App Testing Arsenal]]></title>
            <link>https://medium.com/emumba/things-to-add-in-your-mobile-app-testing-arsenal-12655267476c?source=rss-f4c777e5594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/12655267476c</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[mobile-app-testing]]></category>
            <category><![CDATA[ios-testing]]></category>
            <category><![CDATA[android-testing]]></category>
            <dc:creator><![CDATA[Amna Bibi]]></dc:creator>
            <pubDate>Mon, 25 Oct 2021 12:23:28 GMT</pubDate>
            <atom:updated>2021-10-25T12:23:28.547Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YU7cnJALw6tkeNi4-yLKvg.png" /></figure><p>Testing plays an integral role in the software development life cycle. Detecting bugs early on and fixing them before releases builds the confidence of your customers in you. On the other hand, faulty software does the opposite. Mobile testing is no different from these predicaments.</p><p>Testing of mobile applications is as crucial as testing web and desktop apps although scenarios may vary. Before rolling out mobile applications on respective stores it is necessary to test their functionality and usability to avoid any future disasters. But the question that needs to be asked and subsequently answered is What to test in mobile applications?</p><p>In this blog, I will not cover the testing of business logic and UI testing according to mocks/designs but some extra stuff that is equally important as testing workflows.</p><p>Let’s first dive into the prerequisites of developing and testing mobile applications.</p><p><strong>Platform Specifications</strong></p><p>First of all, you need to know which <strong>platform</strong> you are going to support for your application. Two major platforms for mobile are iOS and android and the behavior especially the UI of the application can vary significantly based on which one you’re using.</p><p>When the OS is decided, the next step is to decide which <strong>version</strong> to select. For a better user experience, both Android and iOS versions get upgraded over time. The applications that were supported in previous versions might not be supported in the latest ones. This puts constraints on the selection of versions so it’s better to decide beforehand.</p><p>The third and most important point is to select the <strong>device</strong>. There are numerous different devices available in the market and they vary from each other in terms of their features, usage, and performance. Even devices from the same manufacturer cannot provide the same experience and it creates a real challenge for both mobile app developers and testers to build an application and portfolio of tests respectively that covers the behavior of all the devices across the board.</p><p>Speaking of devices, testing can be done on both emulators and real devices with each having its pros and cons. I prefer testing on real devices because real devices provide you with the actual scenario of how your app is going to behave when a user uses it. Also, real devices can detect issues of UI and crashes that cannot be found on emulators.</p><p>So, after the platform, its version, and the devices are selected, we are finally ready to dig into another important aspect of testing which is UI testing, and talk about the scenarios that can affect the UI of the application.</p><p><strong>Various screen sizes and resolutions</strong></p><p>The UI can significantly differ on different screen sizes. Many a time you’ll hear yourself saying that “Oh! This text is not appearing full on this device but looks fine on that device” and when you further investigate you’ll come to know that the screen size is different so the text doesn’t fit well on devices with smaller displays. Testers have to make sure that the UI of the app looks good, if not on all, then on most of the devices that are commonly in use.</p><p><strong>Autorotation (Portrait/Landscape mode)</strong></p><p>If your app supports both portrait and landscape modes then as a tester you have an extra task to ensure that UI looks good on both modes. Exactly fitting the app’s various screens and pages on the device’s screen and aligning the texts and spaces especially on the device screen’s top, bottom, left and right sides are kind of problems that may appear during testing.</p><p><strong>Split screens</strong></p><p>To support multitasking, different device manufacturers provide support for split screens and that brings forth another area for the tester to exert extra efforts to test the application in split-screen mode. The reason why this test case is so important is that in split-screen mode the app’s screen size reduces to almost half either horizontally or vertically depending upon the portrait and landscape modes, hence putting the UI at a risk.</p><p><strong>Dark/Light theme</strong></p><p>The main issue that can arise if both themes are supported on your application is the difference in the colors. Bright colors should be used in case of dark themes as dark shades cannot be seen with a dark background. Red, green, blue, white are the main colors that can be viewed without any effort with a dark background. This piece of information can help in creating a more complete and profound set of test cases that cover the device theme as well.</p><p>The next thing that comes after UI testing is to test the application against various real-time scenarios that may appear during usage. Of course, users use the application on a real device and at a time multiple apps can be running in the background even if the user is using your app, and because of this, the behavior of your app can possibly get affected. The other possible disruptions include the interruptions of calls and messages and potential failures like low battery, heated hardware, internet connectivity issues, etc.</p><p>The next thing is to test the application for in-app permissions to open:</p><p><strong>Device’s built-in apps</strong> that<strong> </strong>include the camera, photos/gallery, contacts, location/GPS, microphone, files, etc.</p><p><strong>Any Third-party apps </strong>Gmail for instance, if it’s not a built-in app</p><p><strong>Push Notifications </strong>both related to your app and any other apps that are running in the background</p><p>The last thing that is very important to test is the installation, update, and uninstallation of your mobile application.</p><p><strong>Install </strong>Android apps are mostly available through Google Play Store or in the form of .apk files, while iOS apps can be downloaded as .ipa files, from the App Store, or TestFlight (for testing). The installation process of your app should be smooth.</p><p><strong>Update </strong>Make sure your app</p><ul><li>Notifies when there is an update available on the Stores</li><li>Clearly shows an option to update and skip it</li><li>Doesn’t need to be deleted before an update</li></ul><p><strong>Uninstall </strong>Uninstalling your app should throw a confirmation message before the uninstallation.</p><p>These are most of the things that you need to cover if you’re a mobile app tester. Keeping an eye on these can definitely help you test your apps and make them better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12655267476c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/things-to-add-in-your-mobile-app-testing-arsenal-12655267476c">Things to Add in your Mobile App Testing Arsenal</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>