Automatic Regresiontests with Calabash

PK
by Peter Krauß0 views·Updated Mar 9, 2015
Powered by AI

Need to present on this topic?

Create your own polished presentation in minutes. Just describe what you need.

Free to try, no credit card required

Transcript

Calaba.sh

Demo

High Level Architecture

Querying

What is

Device / Emulator

Host

all expressions are of these types:

Classname, Filter or DOM

App

Calabash

Server

Query all visible elements

  • tool for automated cross plattform mobile acceptance testing
  • testing native and hybrid apps
  • development by
  • implemented in Java, Ruby and Objective-C
  • tests are written in Ruby
  • it allows to use Page Object Pattern beyond plattform boundaries

Test Structure

Test Structure

Feature Definition

Step Definition

App

Calabash

Android

Query all elements from the button class

Calabash

iOS

Gherkin

Calabash

  • tests are written in Gherkin
  • implemented in Ruby
  • and run in the context of the Cucumber Framework

Cucumber Tests

Query all elements with the id 'video_icon'

JSON

over

HTTP

Query the input web view element with id 'Name'

Returns the text of the queried element

The server is an instrumentation app with the permission to access your app

The host sends commands and is responsible

for installing, starting, etc. the server

Interact with objects

Interact with objects

Sleep or Wait

Everything you can query you can interact with

Everything you can query you can interact with

text:

Sleep - but How long?

touch:

scrolling:

...

Waiting - is much more robust

Page Object Pattern in Calabash

  • Reuse
  • Encapsulation
  • Maintenance

CI

Results

Cucumber Reports

Links

Thanks for your

attention!!!

http://developer.xamarin.com/guides/testcloud/calabash/

https://github.com/calabash/x-platform-example

Andreas Kranki

andreas.kranki@asideas.de

head of QA & dev

Peter Krauß

peter.krauss@asideas.de

Dev

1

Peter Krauß

peter.krauss@asideas.de

2

Build Slave

UT / ART

3

Developers