Skip to content

maxim-filkov/android-driver-multi-device

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

android-driver-multi-device

Framework supporting multiple connected Android devices. The framework allows switching between devices during test. When this can be useful? For example, when testing some messaging software - chats. You can type a message on one device, send it, and then switch to the other device to verify the message is delivered.

Technology stack:

There is a simple test delivered with the framework. The test starts working with calculator on one device (emulator) and then switches to the other device to finish testing.

alt multi-device

How to install and run

  • Download Brew package manager
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev \
    libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
  • Install Brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
  • Set Path for Brew in /etc/environment
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
  • Then reload /etc/environment:
source /etc/environment
  • Install nodejs
brew update
curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
sudo apt-get install -y nodejs
$ node -v
v0.12.7
$ npm info generator-meanjs version
0.4.1
npm info npm version
3.3.4
  • Install Appium
npm install -g appium
npm install wd
  • Download Selenium server
cd /opt/
sudo wget https://selenium-release.storage.googleapis.com/2.47/selenium-server-standalone-2.47.1.jar
sudo chown jenkins:jenkins selenium-server-standalone-2.47.1.jar
  • Run Selenium server
nohup java -jar /opt/selenium-server-standalone-2.47.1.jar >/dev/null 2>&1 &
nohup node ~/.npm-packages/lib/node_modules/appium/bin/appium.js -a localhost -p 3482 \
    --udid emulator-5554 --command-timeout 2000000 2>&1 &
nohup node ~/.npm-packages/lib/node_modules/appium/bin/appium.js -a localhost -p 3483 \
    --udid emulator-5555 --command-timeout 2000000 2>&1 &
  • Run the test
mvn clean test

About

Framework supporting multiple connected Android devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages