GithubHelp home page GithubHelp logo

srautiai / testdroid-appium-driver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spedepekka/testdroid-appium-driver

0.0 1.0 0.0 1.48 MB

Testdroid Appium driver for Java

License: Apache License 2.0

Java 100.00%

testdroid-appium-driver's Introduction

Testdroid Appium Driver

Testdroid Appium driver for Java.

Dependencies

Driver depends on testdroid-api.
Build testdroid-api and install it locally

mvn clean install -DskipTests

Install Testdroid API client

git pull [email protected]:bitbar/testdroid-appium-driver.git
cd testdroid-appium-driver && mvn -DskipTests clean install

Install Appium

OS X

Install Node.js

brew install node

Install Appium Safest version at the moment is 1.2.1.

npm install [email protected]

Ubuntu

TODO

Run tests

iOS application with Testdroid Cloud

Copy testdroid.properties.ios.example to testdroid.properties, edit the username etc.

Run test using device in properties

mvn -Dtest=BitbarIOSSampleTest test

Run test on particular device without editing testdroid.properties

mvn -Dtestdroid.device="iPad Air A1474 7.0.3" -Dtest=BitbarIOSSampleTest test

Android application with Testdroid Cloud

Copy testdroid.properties.android.example to testdroid.properties, edit the username etc.

There is one example test for two different applications (BitbarSampleAppTest and TestdroidTest).

mvn -Dtest=BitbarSampleAppTest test

Chrome test on Android with Testdroid Cloud

Copy testdroid.properties.android.chrome.example to testdroid.properties, edit the username etc.

mvn -Dtest=ChromeTest test

Local iOS

Start appium

appium -U <DEVICE_UUID> --port 4723

Execute IOS sample test

mvn -Dtest=BitbarIOSSampleTest -Dtestdroid.appiumUrl=http://localhost:4723/wd/hub clean test

Local Android

Start Appium

node ./appium.js --platform-name=Android --device-name=AndroidDevice --app=/path/to/apk/Testdroid.apk --app-activity=".MM_MainMenu"

Execute test

mvn -Dtest=TestdroidTest -Dtestdroid.appiumUrl=http://localhost:4723/wd/hub

Notes

testdroid.properties is read from current directory. Global properties are not supported at the moment.

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.