No commit activity in last 3 years
No release in over 3 years
Custom methods for calabash ios and android
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.17
~> 5.0
~> 10.0
 Project Readme

SurfCustomCalabash

Installation

Add this line to your application's Gemfile:

gem 'SurfCustomCalabash'

And then execute:

$ bundle

Or install it yourself as:

$ gem install SurfCustomCalabash

Usage

This gem provides methods for easier use Calabash.

Install gem in your exist project, add in your ios or android ruby files.

$require 'SurfCustomCalabash/IosCommon' 

$require 'SurfCustomCalabash/DroidCommon' 

IosCommon contains custom swipe methods for ios.

DroidCommon contains custom swipe methods for android.

CommonMethods contains different methods (taps, swipes, waits and other) for both platforms.

Create new project

You should move to the directory which would contains folder with your tests and execute command and then enter folder name

$ SurfCustomCalabash gen

After that you'll see many folders inside them. Each of them will be describe below.

ci

It is used for all scripts for continuous integration. In Surfstudio we have .groovy files for them.

config

Contains only cucumber.yml file. It named arguments are called profiles - e.g. iOS or Android for run.

features

Main folder of all project. Every feature, step definition, support files and page objects are here. You can read about it more in each file of this folder.

irbrcs

Our own shtick. We change calabash-android console and calabash-ios console a little, so you can write your own complex functions, which you'll implement in the step_definitions or in page objects. So for the correct work we had to change irbrc-files of gems too.

reports

Folder with screenshots of errors.

test_servers

Standard calabash-android folder with signed apk-files.

TestFolder

Contains some additional files, e.g. jpg-pictures or other data which can be used in tests.

Backdoors list

We use backdoors for our applications for get around the limit of nativity of calabash.

Gemfile

All required gems for surf-calabash. You should run installing all gems by bundle after initializing project when you rename Change_it_to_your_own_project_name to your own name.

$bundle install

Scripts

Some shell scripts which can help to start tests faster because of typing smaller count of symbols. :) Also it shows some integration with Xray Jira plugin.

start.sh

Shell script for useful launch all helpful scripts of folder above.

Update infrastructure files

To check the relevance of the infrastructure files of your project with autotests, execute command:

$ SurfCustomCalabash update

If your project has files that are not up-to-date, you will be prompted to update them all or only those you need.