Code Monkey home page Code Monkey logo

calabash-sample's Introduction

calabash-sample

Discussion and help - https://groups.google.com/forum/?fromgroups=#!topic/calabash-android/Elm-HzlXULw

Calabash android installation: https://github.com/calabash-driver/calabash-driver/wiki/Setup

Installation: Test ng pluing to eclipse TestNG - http://beust.com/eclipse

STEPS

  1. Clone my project from git using 'git clone https://github.com/tejasv02/calabash-sample.git' command.

  2. Set path for - CALABASH_DRIVER_APPS enviroment variable.

  3. Import project into eclipse.

  4. create test server for apk file to be tested using command 'calabash-android build path-to-apk-file' and place the testserver apk into CALABASH_DRIVER_APPS folder. Also add application apk (pickerviews.pak) in this case to CALABASH_DRIVER_APPS folder

  5. Start emulator with AVD(android virtual device) having SDK greater than or equal to ginger bread (2.3.3)

  6. RUN SELENIUM GRID: C:\Users\xxx\workspace\greenhouse-android-test\lib>java -Dfile.encoding=UTF-8 -cp "selenium-server-standalone-2.28.0.jar" org.openqa.grid.selenium.GridLauncher -role hub host 127.0.0.1 -port 4444 & sleep 8

  7. Run Pickerjavatest.java as testng test Test must be running fine !!

PROBLEM : if this doesnt work verify calabash server installation and instrumentation is fine run this command from command line - It must launch application in emulator application apk and test server apk must be installed before running below command

'adb shell am instrument -e target_package com.sai.samples.views -e main_activity com.sai.samples.views.PickerViewSample -e class sh.calaba.instrumentationbackend.InstrumentationBackend sh.calaba.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner'

REFERENCE:

This project is cloned from - https://github.com/calabash-driver/gdg-devfest-zrh

PROBLEMS THAT MIGHT NEED TO BE FIXED: I will try to put some help on problems, I faced during installation in this blog - http://mytechlifez.blogspot.co.uk/2013/01/calabash-android-driver-java.html Hope that helps

calabash-sample's People

Contributors

tejasv02 avatar

Watchers

James Cloos avatar Sai Krishna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.