This post is for testers who are new to programming and looking to learn mobile test automation. Qxf2 Services has developed an Android application – Weather Shopper, to help testers practice Android app automation using Appium and learn programming languages simultaneously. You can get the application from Google Play Store here. Weather Shopper application offers a rich set of mobile […]
Weather Shopper: Practical way to learn Appium and Programming Language
Python and Appium: Scroll through search result table
In this post we show you how to scroll through a table and identify elements. We also tackle the case where the table spans multiple pages. This is a natural and common workflow on most mobile devices. A typical use case involves the user performing a search within a mobile application. The app returns a table of results. The user […]
Android and Appium: Press Enter on the soft keyboard
Problem: Use Appium and press ‘Enter’ on the soft keyboard. This post continues our series on intermediate level problems when automating mobile application tests using Appium. We thought of sending a KeyEvent to an input (textbox) element using Appium. Superficially this appears to be trivial, but while writing the script, figured out otherwise. To our surprise, it failed. And there […]
Python Appium tests on different Android versions
Problem: UI element identifiers are not consistent across mobile platforms. Mobile is eating the world. However mobile operating systems are not yet fully mature. For example, UI element identifiers change between versions of the same OS. They also look different across Android and iOS. This causes automation scripts to be brittle. We hit this problem recently. We were writing automation […]
Pinch, Zoom and Swipe using Appium
Problem: Documentation on automating mobile gestures is not extensive. In this post, we show how to automate mobile gestures like tap, swipe, pinch and zoom using Appium. Why this post? I watched Steve Jobs introduce the iPhone back in 2007. Among the jaw dropping moments were using the best stylus ever invented (our fingers) and the multi-touch pinch-to-zoom feature. Mobile […]
Android unit testing: Android testing framework and Robolectric
Problem: There are not many good tutorials on Android unit testing Android applications are written in Java. So you probably think if you know JUnit, you can unit test Android applications. Surprise! JUnit is not sufficient for unit testing Android applications. Junit works when the code runs within a JVM. Android applications interact with the Android OS. So you need […]
Ways to identify UI elements in mobile apps
Problem: Many testers do not know how to identify UI elements in mobile apps. In this post, I explain about different ways to find UI elements in Android’s calculator app. I also show you examples of using Appium’s API with the different locator strategies. Why this post? Identifying UI elements is a key component of writing UI automation. Most testers […]
Appium tutorial: Execute Python tests on mobile devices
This Appium tutorial will show you how to run automated tests on a real physical device. We estimate skimming through this post will take you 10 minutes. We estimate working through this post, step by step, will take you about 90 minutes. In this post we will cover getting setup with Appium, interfacing with real devices, writing and running Appium […]
Mobile automation: Run Appium tests on Sauce Labs
Problem: Maintaining infrastructure for testing your mobile applications on different platforms and browser versions is time consuming. Why this post? This post was written for the hands on tester looking to explore different tools testers can use for mobile automation. In this post we will show you how to run your Appium tests on Sauce Labs. We estimate that you […]
Get started with mobile automation: Appium & Python
Problem: There is a perception among testers that getting started with mobile automation is hard. Why this post? I strongly believe that a tester must have a wide range of skills. You do not need to be an expert in all of them, but it is extremely important to have contemplated a spectrum of concepts and explored a variety of […]