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:
https://github.com/kosiara/calabash-android-example-projects
https://github.com/calabash/calabash-android
https://github.com/calabash/calabash-ios
https://cucumber.io/
https://github.com/cucumber/cucumber/wiki/Gherkin
http://www.slideshare.net/Codemotion/calabash-codemotion-2012 (ios)
http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html

Books:
https://pragprog.com/book/hwcuc/the-cucumber-book












3 comments:

  1. 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.

    ReplyDelete
  2. 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.

    ReplyDelete

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