mobile test automation
Mobile App Testing Book Recommendation
Yesterday Daniel Knott announced that he has published his book Hands-On Mobile App Testing. Daniel writes on his book page: “This book is aimed at anyone interested in mobile apps and mobile testing, ranging from junior to expert mobile testers who are already involved in mobile development teams. This book is also ideal for software test managers who need to manage mobile testing teams or to select a mobile test strategy.
I’m happy to announce that I will give a lightning talk at Google’s Test Automation Conference (GTAC) about selendroid. The schedule of this year’s conference you find here In the mean while I have written together with Michael Palotas an article about Mobile Test Automation with Selendroid in the Methods and Tools Magazine.
Mobile webdriver Selendroid
In this blog post I would like to write again about mobile test automation. In the last months I spent a lot of my time working on a new test automation framework: Selendroid - a mobile WebDriver implementation for native and hybrid Android apps. Selendroid is an implementation of the Selenium WebDriver JSON Wire protocol, which is about to become a W3C Standard. Main features of selendroid are: Full compatibility with the JSON Wire Protocol.
GDG Devfest in Zurich
Yesterday and today I attended the Google Developer Group (GDG) DevFest in Zürich and I really enjoyed it! I have seen good presentations, met really nice people and I had great discussions. This afternoon I did a presentation about how to automate native Android apps using Calabash-Driver and how to leverage an existing Selenium Grid2 architecture to allow scaling and parallel testing. Here you find my slides of today’s presentation:
Howto inspect Android Activities
For writing good automated mobile end-to-end tests I personally prefer to use e.g. the IDs of the elements. For doing this, you can have a look at the application’s source code and analyze the corresponding layout.xml file. But sometimes, if e.g. on the screen are dynamic lists like search results displayed, it is quite helpful to inspect the dialog on the mobile device that is currently displayed. The Android platform has a tool called hierarchy viewer - which is working quite well.
Speed up the development of Calabash-Android tests
In one of my previous blog posts I described about how to use Calabash-Android in general. In today’s post I’m describing about how to speed up the development of automated mobile tests using Calabash-Android using and mostly configuring the interactive Ruby shell (IRB). IRB is a shell allows the execution of Ruby commands with immediate response, experimenting in real-time. This is pretty useful if you are about to automate an Android application screen that is part of an flow and you are in the process of finding for the UI elements the right commands e.
In today’s post I’m describing about how to setup calabash-ios to automate your functional end-to-end test for iOS applications. In my previous post I described about how to setup the Greenhouse application.If you are interested in how to automate an Android app, checkout this blogpost. For using Calabash-ios, you need to have access to the app source code. The XCode project must modified, which means in detail, that a http server is added through linking with the the calabash.
In my previous post I blogged about open source frameworks for mobile end-to-end testing and in the other past post I described about how to setup the Greenhouse sample app environment. In this post I would like to describe how to test an Android app with Calabash-Android, which was open sourced in the beginning of March. The basic architecture of Calabash is described in this figure, which I have taken from the Less Painful homepage:
In my past blog entry I listed different Open Source Frameworks that can be used for mobile testing on Android and iOS. For showcasing the different frameworks, I will use the Open Source project Greenhouse that SpringSource has created some while ago to: Serve as a open-source, public-facing reference and driver for Spring technology, including Spring MVC, Security, Integration, and the new Spring Social and Mobile projects. For making the demonstration easier, I have forked the corresponding projects on Github and in the following lines you find all the details you need to follow to setup everything:
Overview about Open Source mobile test automation Frameworks
The mobile market is changing. In the past a lot of mobile solutions has been created and a lot of them has been used to gather experience in the mobile field. Now more and more companies like car manufacturers or banks ( PayPal, Barclays)are creating mobile solutions that really have an impact on their main business. If you look e.g. at eBay’s mobile facts, the numbers are just impressing: 2011 there was a transation volumne of 5 billion USD worldwide 1 million Listings every weeks are done via mobile 176 Number of dollars spent every second through mobile purchases From a test automation perspective, I’m looking into this area from a functional end-to-end testing perspective, there are different open source tools available to write automated tests for iOS and Android: