Search This Blog

Tuesday, December 8, 2015

Automated acceptance tests in Calabash

The Mobilengers team at StxNext has recently moved to Calabash as our automated acceptance testing framework. All tests are written in Gherkin - simple, descriptive language that Cucumber can understand. Gherkin gives the ability to describe the desired behaviour in plain text preserving the possibility to run such a test on real devices. It serves two purposes - as a documentation tool and as automated tests framework. It has been translated to over 60 spoken languages (with leading English) so that your team can use the keywords in their own language.

Automated tests follow two simple conventions - that source file should be saved as .feature and that one source file should only contain description of a single feature.

Calabash is the mobile implementation of Cucumber. It enables native apps testing and is cross-platform - Android/iOS. It’s also open-source with all the code available freely on GitHub.

With Calabash we’re able to implement simple gestures (like - swipe down, button-clicks, go back etc.), make assertions concerning displayed content as well as take screenshots whenever something goes wrong in the app.

Running tests in the cloud on the real devices gives us the possibility to cover more devices without buying every phone available on the market. We use Amazon AWS Device Farm which has the possibility to run Calabash tests and covers most popular device models. It also gives detailed tests results, takes screenshots as well as pinpoints references to lines of source code where specific errors have originated from. AWS has the option to test apps in different device locales, GPS locations and specific “other apps” dependencies.

Simple tutorial on how to install Calabash (OsX/Ubuntu) and run basic tests can be downloaded here.

Reference: (ios)



  1. Replies
    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
      or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

  2. The watch bezel uses a compass instead of a number, and replica watches the Super-LumiNova? green hourglass-coated minute hand arrow allows you to quickly identify the time and direction in the dark. Adventurers will replica watches uk love other extras such as the extended Velco leather strap, which makes it easy to wear the watch out of the mountaineering gear, or when you need to release your rolex replica hands on your backpack. In addition, 20 essential touch-screen functions for everyday use such as perpetual calendar, week and week numbers, two alarm clocks, dual time zones, weather forecasting with relative pressure, altimeter with altimeter, logging The compass, the azimuth replica rolex meter, the boat race function and the back light and so on, above these functions simply is specially designed for the outdoor adventure.

  3. Team Bentley maakte zijn grote comeback autosport vorig jaar, scoren de grote overwinningen in Silverstone en Le Castellet met Bentley's nieuwe high-performance racemachine, de Bentley Continental G3. De nieuwe Breitling for Bentley GT3 Chronograph - het nieuwste product samenwerking tussen de Zwitserse replica horloges nederland fabricage en het Britse luxe automaker - een eerbetoon aan deze uitzonderlijke auto.

    De Breitling for Bentley GT3, een gelimiteerde oplage van 500 stuks wereldwijd, vervolgt de goedkope Breitling Replica voor Bentley traditie begon in 2003, toen Breitling, hoofdsponsor aan Team Bentley, onthulde de oorspronkelijke Bentley Le Mans chronograaf horloge in de viering van het team vegen van de replica horloges rolex eerste twee plaatsen in dat jaar 24 Uren van Le Mans. De nieuwe horloge - met zwarte titanium, carbon fiber dial, de twee tegengesteld stopwatch systeem en chronometer gecertificeerd beweging - toont duidelijk het design-DNA van de GT3 raceauto.

  4. dat het voor haar status met imitatie horloges kopen klanten of als gevolg van hun liefde voor replica horloges, maar een dwingende factor imitatie horloges rolex van alles veel te duur aankoop is om het tegenovergestelde geslacht aan te trekken.


If you like this post, please leave a comment :)