<?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[Mobile Application Test Automation - Medium]]></title>
        <description><![CDATA[Test automation tools, frameworks, services - Medium]]></description>
        <link>https://medium.com/mobile-application-test-automation?source=rss----c43f73587e17---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Mobile Application Test Automation - Medium</title>
            <link>https://medium.com/mobile-application-test-automation?source=rss----c43f73587e17---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:28:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/mobile-application-test-automation" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Appium Architecture for Android Testing]]></title>
            <link>https://medium.com/mobile-application-test-automation/android-testleri-i%C3%A7in-appium-mimarisi-d4097d97626e?source=rss----c43f73587e17---4</link>
            <guid isPermaLink="false">https://medium.com/p/d4097d97626e</guid>
            <category><![CDATA[mobile-test-automation]]></category>
            <category><![CDATA[selenium-test-automation]]></category>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-testing]]></category>
            <dc:creator><![CDATA[Ahmet Koçu]]></dc:creator>
            <pubDate>Tue, 04 Apr 2017 10:40:09 GMT</pubDate>
            <atom:updated>2024-05-29T09:37:13.863Z</atom:updated>
            <content:encoded><![CDATA[<p>Appium is certainly one of the first tool to come to mind when it comes to mobile test automation. It continues to evolve rapidly with the advantage of open source development.</p><p>In this article, I would like to talk about architecture on Appium Android side. Those who want to develop their own automation framework or use this tool more effectively should look at the handy libraries that Appium has in the backplane.</p><p>Let’s first look briefly at the Android test libraries, Instrumentation, and UIAutomator’s libraries. Along with allowing you to develop UI test automation in two libraries, there are some differences. The Instrumentation library has been supported since the first versions of Android and many operations can be automated on the application front. However, except for the application context, the native elements such as the alert window, notification, etc. can not be accessed. UIAutomator is a test library which is used together with API 18 and allows easy automation of test automation on the UI of the application and operation system. API 18 and above are able to write much stronger tests with these two libraries.</p><p>The Appium is based on small modules that run on the application with the WebDriver protocol. Through these modules, take screenshots of the device, click on the application elements, and so on. Commands are being processed on the device.</p><p>On the Android side, I want to talk first about the Appium Android Bootstrap. This module allows handling of commands sent using Android’s UIAutomator test framework. It is a Java application that runs on Android and has a Javascript interface to access it on the nodejs side.</p><p>This module technically works like this;<br>- The Java application contains a test derived from the com.android.uiautomator.testrunner.UiAutomatorTestCase class. This test works to run a socket server listening on port 4724 on the device. Uses the Appium UI Automator interface to load and run the test on the device.<br>- This server gets the commands, converts them to the appropriate Android UI Automator commands and runs them on the device.<br>- Commands are sent via the JavaScript interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*zBx3Br-CiJKdO_CXKG6Gyg.png" /></figure><p>Secondly, let’s look at the <a href="https://github.com/appium/appium-uiautomator2-server">Appium UIAutomator 2 Server</a> module. The logic of this librarian is the same as Bootstrap, except that this module was developed to work with UI Automator 2.0. Unlike the Bootstrap module, it is used as an Android package, not as a jar library. When the module is compiled, two (application and application test) APKs are generated. After installing them on the device, we run the application test and activate the socket server to the 6790 port. It also has a Javascript interface (<a href="https://github.com/appium/appium-uiautomator2-driver">appium-uiautomator2-driver</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*1gZfS_pQJyZAAjWVdF_5aA.png" /></figure><p>Appium includes a small nodejs module for running tests written in UI Automator on Android. With the <a href="https://github.com/appium/appium-uiautomator">appium-uiautomator</a> module, you can send and run the jar package containing your test to the device. In Appium, this module is used to run the Bootstrap module.</p><p>Finally, let’s talk about Selendroid, which is used to support older versions of Android within Appium. Selendroid is another test tool that you can automate your Android tests on your own. Again with WebDriver protocol, the desired commands can be run on the device. This test framework is built on the Android Instrumentation library. For this reason, it is a good tool for those who want to test on old Android versions with some limitations. His work is as follows;</p><ul><li>The APK to be tested is re-signed.</li><li>The Selendroid test server APK is signed with the same key. (Instrumentation library and target application must be signed with the same key.)</li><li>These APKs are installed on the device.</li><li>The instrumentation test is run via ADB and the server is removed from the device.</li></ul><p>This test tool is used by Appium with the <a href="https://github.com/appium/appium-selendroid-driver">appium-selendroid-driver</a> JavaScript interface. This interface performs the above steps to run the Selendroid server on the device and sends the test commands to the device over this server.<br>After the Appium 1.5. * Version, it was a completely new architecture. Thanks to its modular structure, a number of useful tools that you may need in test development are available on their own and are open source. It would be useful to examine the modules within the Appium architecture in order to be able to use this tool more effectively in developing mobile application test frameworks or in testing processes.</p><p><a href="https://robotqa.com/"><strong>RobotQA</strong></a><strong> and Running Appium tests in the cloud</strong><br>With <a href="https://robotqa.com/">RobotQA</a> test services, you can run your Appium tests in parallel on hundreds of different devices in the cloud. You can get test results as a detailed report consisting of screen images, video, device logs and performance logs.<br>We will also be able to provide RestApi to access our device lab and create test scripts, or you can run your tests on our devices from your own development environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4097d97626e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mobile-application-test-automation/android-testleri-i%C3%A7in-appium-mimarisi-d4097d97626e">Appium Architecture for Android Testing</a> was originally published in <a href="https://medium.com/mobile-application-test-automation">Mobile Application Test Automation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Test Automation with Espresso Testing Framework]]></title>
            <link>https://medium.com/mobile-application-test-automation/android-test-automation-with-espresso-testing-framework-1dfee9261e23?source=rss----c43f73587e17---4</link>
            <guid isPermaLink="false">https://medium.com/p/1dfee9261e23</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[roboticmob]]></category>
            <category><![CDATA[android-testing]]></category>
            <category><![CDATA[mobile-testing]]></category>
            <category><![CDATA[espresso-test-framework]]></category>
            <dc:creator><![CDATA[Ahmet Koçu]]></dc:creator>
            <pubDate>Tue, 21 Mar 2017 21:11:38 GMT</pubDate>
            <atom:updated>2024-05-29T09:39:07.161Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<p>If you’re an Android developer, you’re probably familiar with Google’s Espresso test automation framework. As an open-source tool, it’s very easy for developers to use and extend within their working environment.</p><p>Firstly, we discuss about the importance of test automation in application development cycle. Development with manual way;</p><ul><li>develop a feature</li><li>deploy to device</li><li>test manually</li><li>fix of wrong implementation</li><li>deploy to device and so on…</li></ul><p>So how do you automatize such an inelegant mobile development process<em>?</em> How can you reduce your manual testing effort? Well, you can start doing what every software developer should do: Start writing tests.</p><p><strong>What is the Espresso Framework</strong></p><p><em>Testing user interactions within a single app helps to ensure that users do not encounter unexpected results or have a poor experience when interacting with your app. You should get into the habit of creating user interface (UI) tests if you need to verify that the UI of your app is functioning correctly. (</em><a href="http://developer.android.com/training/testing/ui-testing/espresso-testing.html"><em>Android Developer</em></a><em>)</em></p><p><em>Espresso is targeted at developers, who believe that automated testing is an integral part of the development lifecycle. While it can be used for black-box testing, Espresso’s full power is unlocked by those who are familiar with the codebase under test. (</em><a href="https://google.github.io/android-testing-support-library/docs/espresso/index.html"><em>Android Testing Support Library</em></a><em>)</em></p><p>As quoted above, this framework is used to simulate the user input on the UI. With the use of the Espresso Framework you can perform manipulations on the UI and after assert the correct outcome of your input with a JUnit 4 Syntax. The Espresso Framework can be categorized between back-box and white box testing, commonly called as gray-box testing framework. With some modification in test code, it can be used for back-box tests.</p><p><strong>How to setup the Espresso Framework</strong></p><p>Firstly, On virtual or real device, it should be turn off system animations, because Espresso can not wait until the animation is finished.</p><p>On your device, under <em>Settings</em>-&gt;<em>Developer options</em> disable the following 3 settings:</p><ul><li>Window animation scale</li><li>Transition animation scale</li><li>Animator duration scale</li></ul><p>New versions of Android Studio will add test frameworks and configurations. If you have not test framework, you should add following libraries and configurations;</p><ul><li>Make sure you have installed the latest <em>Android Support Repository</em> under <em>Extras</em> (see <a href="https://google.github.io/android-testing-support-library/downloads/index.html">instructions</a>).</li><li>Open your app’s build.gradle file. app/build.gradle.</li><li>Add the following lines inside dependencies:</li></ul><blockquote>androidTestCompile ‘com.android.support.test.espresso:espresso-core:2.2.2’<br>androidTestCompile ‘com.android.support.test:runner:0.5’</blockquote><ul><li>All other espresso framework libs:</li></ul><blockquote><em>// Android JUnit Runner</em><br>androidTestCompile ‘com.android.support.test:runner:0.5’</blockquote><blockquote><em>// JUnit4 Rules</em><br>androidTestCompile ‘com.android.support.test:rules:0.5’</blockquote><blockquote><em>// Espresso core</em><br>androidTestCompile ‘com.android.support.test.espresso:espresso-core:2.2.2’<br><em>// Espresso-contrib for DatePicker, RecyclerView, Drawer actions, Accessibility checks, CountingIdlingResource</em><br>androidTestCompile ‘com.android.support.test.espresso:espresso-contrib:2.2.2’<br><em>// Espresso-web for WebView support</em><br>androidTestCompile ‘com.android.support.test.espresso:espresso-web:2.2.2’<br><em>// Espresso-idling-resource for synchronization with background jobs</em><br>androidTestCompile ‘com.android.support.test.espresso:espresso-idling-resource:2.2.2’<br><em>// Espresso-intents for validation and stubbing of Intents</em><br>androidTestCompile ‘com.android.support.test.espresso:espresso-intents:2.2.2’</blockquote><blockquote><em>// UiAutomator</em><br>androidTestCompile ‘com.android.support.test.uiautomator:uiautomator-v18:2.1.2’</blockquote><ul><li>Add to the same build.gradle file the following line in android.defaultConfig:</li></ul><blockquote>testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”</blockquote><h4>Add the first test</h4><p>Android Studio creates tests by default in src/androidTest/java/com.example.package/</p><p>Example JUnit4 test using Rules:</p><p>@RunWith<strong>(</strong>AndroidJUnit4<strong>.</strong>class<strong>)</strong><br>@LargeTest<br><strong>public</strong> <strong>class</strong> <strong>HelloWorldEspressoTest</strong> <strong>{</strong></p><p>@Rule<br> <strong>public</strong> ActivityTestRule<strong>&lt;</strong>MainActivity<strong>&gt;</strong> mActivityRule <strong>=</strong> <strong>new</strong> ActivityTestRule<strong>(</strong>MainActivity<strong>.</strong>class<strong>);</strong></p><p>@Test<br> <strong>public</strong> <strong>void</strong> <strong>listGoesOverTheFold()</strong> <strong>{</strong><br> onView<strong>(</strong>withText<strong>(</strong>“Hello world!”<strong>)).</strong>check<strong>(</strong>matches<strong>(</strong>isDisplayed<strong>()));</strong><br> <strong>}</strong><br><strong>}</strong></p><h4>Running tests</h4><p>It can be run multiple ways;</p><p>In android studio:</p><p>Create a test configuration</p><ul><li>Open <em>Run menu</em> -&gt; <em>Edit Configurations</em></li><li>Add a new <em>Android Tests</em> configuration</li><li>Choose a module</li><li>Add a specific instrumentation runner: android<strong>.</strong>support<strong>.</strong>test<strong>.</strong>runner<strong>.</strong>AndroidJUnitRunner</li></ul><p>From command-line via Gradle</p><p>./gradlew connectedAndroidTest</p><p>From command-line via adb instrument</p><p>Build your app and test apks and install both apks to test device, after that execute this command:</p><blockquote>adb shell am instrument -w com.x.test/android.support.test.runner.AndroidJUnitRunner</blockquote><p><a href="https://developer.android.com/studio/test/command-line.html#AMOptionsSyntax">More details about instrument</a></p><h3><a href="http://robotic.mobi/">RobotQ</a>A Cloud Real Device Test Automation Solution</h3><p>You can automate your application build process with CI tools, and integrate with our testing solution RobotQA.</p><p><a href="https://robotqa.com/">RobotQA</a> has more than 350 real devices and can run common test framework scripts. Espresso is our highly supported Android testing framework. You can upload application and test file to our service via web UI or RestApi, schedule a test run and get detailed report log files, video, screenshots, performance data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q_eL32WM0qk_uGgQ." /></figure><p>As well as, you can use our record and play tool, record your test cases and manage it on cloud with collaboration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tMD7B1yV7KmnBCfw." /></figure><p>Also, RobotQA can be integrated with your development lifecycle. Your test issues automatically transfer to your source control system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xgCfDhis9LP8PJR5." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dfee9261e23" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mobile-application-test-automation/android-test-automation-with-espresso-testing-framework-1dfee9261e23">Android Test Automation with Espresso Testing Framework</a> was originally published in <a href="https://medium.com/mobile-application-test-automation">Mobile Application Test Automation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>