• Stars
    star
    110
  • Rank 316,770 (Top 7 %)
  • Language
    Ruby
  • Created over 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Run Appium test on OpenSTF Device

STF Appium Example

Video

In this tutorial, I am going to explain how to integrate Appium automated test to OpenSTF device using its REST API. Theoretically, it is possible to run automated test of any tool on OpenSTF device. The reason for choosing Appium here is because it is one of the most widely used mobile automated testing tool.

Prerequisites

  • Your device farm is ready and you are using v2.0 or above.
  • You have read OpenSTF API Doc.
  • You know about Appium and its usages.

Dependencies

Installation

  1. Git clone
git clone [email protected]:openstf/stf-appium-example.git
  1. Install appium & other node dependencies
npm install

Note You will also need to install all the Appium Dependencies for Android

  1. Install ruby dependencies
bundle install --path=bundler/vendor

## In case bundler is not installed, installed it using below command
gem install bundler

Running example tests

  1. Update SWAGGER_URL in stf_connect.js & stf_disconnect.js with your domain.
  2. Create a new Access Token from Settings > Keys > Access Tokens and update stf_connect.js & stf_disconnect.js
  3. Run below command
DEVICE_SERIAL=YOUR_DEVICE_SERIAL ./scripts/run_integration_test.sh
  1. Sample test result

More Repositories

1

stf

Control and manage Android devices from your browser.
JavaScript
13,308
star
2

minicap

Stream real-time screen capture data out of Android devices.
C++
1,715
star
3

adbkit

A pure Node.js client for the Android Debug Bridge.
CoffeeScript
826
star
4

minitouch

Minimal multitouch event producer for Android.
C
630
star
5

ios-minicap

iOS Minicap provides a socket interface for streaming realtime screen capture data out of iOS devices.
C++
433
star
6

STFService.apk

Monitor and perform various actions on your Android device. Not meant for actual user devices.
Java
235
star
7

android-libjpeg-turbo

Standalone Android.mk configuration for libjpeg-turbo.
Makefile
152
star
8

adbkit-apkreader

Extracts information from APK files.
JavaScript
133
star
9

stf-device-db

A JSON-based database of smartphones, tablets and wearables.
Makefile
73
star
10

docker-aosp

Docker images for checking out AOSP branches and building external code inside the source tree.
Shell
50
star
11

adbkit-monkey

A Node.js interface to the Android monkey tool.
CoffeeScript
47
star
12

setup-examples

STF Setup Examples using Vagrant and Docker
45
star
13

minirev

Minimal reverse port forwarding implementation for Android.
C
45
star
14

adbkit-logcat

A Node.js interface for working with Android's logcat output.
JavaScript
41
star
15

RotationWatcher.apk

Small CLI app for tracking Android rotation changes in real time.
Java
25
star
16

openstf.github.io

Public site for STF
JavaScript
22
star
17

stf-syrup

Provides a minimal Promise-based dependency injection framework for Node.js.
CoffeeScript
20
star
18

node-minicap

A minicap driver for Node.
JavaScript
15
star
19

stf-appium

Placeholder repository for any future stf-appium integration
11
star
20

docker-openstf-base

ABANDONED in favor of doing the whole thing in the main Dockerfile of openstf/stf.
6
star
21

stf-appstore-db

A small collection of different app stores for STF.
Makefile
6
star
22

docker-ambassador

Our own glorious ambassador to avoid external breakage.
Shell
3
star
23

stf-browser-db

A simple browser database for STF.
Makefile
3
star
24

eslint-config-stf

STF - ESLint Shareable Config
JavaScript
1
star