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












10 comments:

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

    ReplyDelete
  3. Thank you for another informative website. Places you need to visit in 2020? Upgrade your travel photos with these lightweigh camera that pack a punch. Enjoy the world 's best reviews to travel with Things to do.

    ReplyDelete
  4. You don know what will happen. And you alone."Noor has been preparing for her oral doctoral exam which took place the week of May 11 while in lockdown. Coach Outlet Now she just wants to see thembefore she continues her studies."I hope the borders become open and I can go to my family and then come back.

    Dozens of Tory MPs have called for Mr Cummings to quit his post, but senior ministers and the Prime Minister have backed the controversial adviser.With the controversy over Mr Cummings raging on, it is understood MPs will have a maximum of 20 minutes in a 90 minute session to probe the situation when Mr Johnson appears before the Commons Liaison Committee on Wednesday. Other aspects of the Coronavirus crisis will also be discussed in the 20 minute slot.Senior Coach Outlet Store Tory backbencher Tobias Ellwood took to Twitter to note he would be among the chairs of Commons committees on the Liaison Committee not able to ask questions.Asked about the situation regarding Mr Cummings, Liaison Committee chairman Sir Bernard Jenkin said: "I have got no intention of preventing any subject any member of the committee wants to raise."The comments follows controversy over Sir Bernard's appointment Yeezy Boost 350 to the committee, with some MPs saying he is close to the Prime Minister.Government approval ratings have plummeted since Boris Johnson defended Dominic Cummings amid claims he breached the coronavirus lockdown (AFP via Getty Images / PA)Former minister Mr Ellwood, chair of the Defence Select Coach Handbags Clearance Committee, tweeted on Tuesday that he was looking forward to questioning the PM, but posted on social media later: "So I'm not invited to attend."He listed Ray Ban Outlet a number of questions he would have asked, including: "Why was no single situation centre established?"In statement, Mr Jenkin said that the whole committee had agreed the format for Ray Ban Glasses the session.And that the "evidence session with the Prime Minister should, in its entirety, cover New Jordan Shoes 2020 the Government handling of the coronavirus pandemic".Among those questioning the PM will Yeezy Discount be Labour chairwoman of the Home Affairs Committee Yvette Cooper, and Tory chairman of the Committee Jeremy Hunt.Douglas Ross, the parliamentary under secretary of state for Scotland, said on Tuesday that he could not remain in government after hearing Mr Cummings' efforts to defend his trip from London to Durham despite the coronavirus lockdown.Dozens of Conservative MPs have said Mr Cummings should go despite ministers seeking to protect the controversial adviser. Darlington MP Peter Gibson, part of the 2019 intake of so called Red Wall Tories, said after developing a cough, he travelled 250 miles by train from the capital to the North East of England prior to lockdown to isolate at home.

    ReplyDelete
  5. As the calendars confirm, that weekend before a brutal football training camp schedule was no time for parties. So let me emphasize this point, if the party described by Dr. Ford happened in the summer of 1982 happened on a weekend night, my calendar shows all but definitively that I was not there.

    Asked if there was Cheap Michael Kors Handbags ever a Nike Air Force 1 Cheap Outlet time Coach Outlet Clearance Sale when she thought, perhaps, she just wouldn't be able to get a task done, she says, "Never. OK, maybe. But I take my MK Outlet Online job very seriously and I don't like to disappoint. Years and years ago, I used to think that "be prepared" meant to bring everything you might possibly need in any situation. Not so. That leads to over packing and making things too complicated. Ray Ban Outlet

    On paper, the 2019 X7 definitely seems to most closely align with Coach Outlet Online the Mercedes Benz GLS Class. Their similar dimensions, interior space, engine choices and price would certainly imply where BMW placed the target when developing X7. We used those same elements to determine Best Yeezys three row vehicles likely to be cross shopped or that should be cross Jordan Shoes For Sale shopped..

    ReplyDelete
  6. How to Resolve ATT Email Not Working on Mac?

    Instances occur when users encounter with the issue of ATT email not working on Mac device. In such cases, you need to make sure that the external mail server has messages in it. Make sure to enter the correct information while configuring the external mail settings. in case, you enter the wrong mail server address, username, port number, and password. Lastly, check whether the issue on local network or external mail server. These are the steps that users need to follow to resolve the issue.

    Why is My Canon Printer Not Printing the Right Colors?

    If Canon printer users are encountering with the challenge related to why is my Canon printer not printing the right colors then in such situations, users need to perform printer firmware update process. printer drivers formulate a link between the system and printer and hence it plays a crucial role. To make sure about the proper functioning of Canon printer driver, you need to either update or install the new drivers from the Canon printer official website. These are the steps that users need to follow to resolve the issue of Canon printer not printing the accurate colors.

    How to Disable Calendar Notifications in Outlook?

    If you are a Mac user and have the query about how to disable calendar notifications in Outlook then start by Outlook and log into your account. Click to preferences in the Outlook menu. After that, click to notifications and sound under the personal settings. Now, change the settings that you want for the new messages under the message arrival section.Lastly, under the sounds section, you can uncheck the boxes next to sound that users want to disable. These are the steps to follow to smoothly disable the calendar notifications in Outlook. Check out the steps and follow them properly to not to face such issues again.

    How to Change Gmail Profile Picture on Computer?

    Users who want to access the Gmail account on desktop computers or laptop then users can change Gmail profile picture on computer. Although,they might get some list of results online then follow the correct steps for changing Gmail profile picture on computer or changing the profile picture on PC. Changing or setting the profile picture of Gmail then you need to log into the Gmail account by using the correct login credentials. Once you are logged into Gmail account then follow the steps mentioned below to change Gmail profile picture on computer smoothly.

    ReplyDelete
  7. Learn to Solve Yahoo Mail Loading Slow on Android

    Often, Android users face issues like Yahoo Mail loading slowly on their devices. If you are an Android user and experience a Yahoo mail loading problem, the most likely cause is that the outdated Yahoo Mail app is installed on your device. If you want to use Yahoo Mail on your Android device without errors, make sure that you have the most recent version installed. To upgrade, select 'Applications' and type 'Yahoo Mail' on the search bar. Check for the 'Update' button under 'Yahoo Mail' in your list of suggestions. If you see the 'Update' button, the app needs to be updated. If it does, tap on 'Update' to do so. Once Yahoo is updated, relaunch the application and check if it works properly.

    ReplyDelete
  8. The information you have produced is so good and helpful, I will visit your website regularly.

    ReplyDelete
  9. Having read your article. I appreciate you are taking the time and the effort for putting this useful information together.

    ReplyDelete

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