question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Single Appium server to handle tests to multiple Android instances in parallel

See original GitHub issue

I have many Android containers running in the cloud which I want to control remotely, in parallel, through Appium. However it’s not obvious how I can use a single Appium server (which can easily be scaled later on) to route commands through to an individual Android instance.

Right now I have a Docker image with ADB and Appium installed which basically (1) connects to the ADB daemon on the Android container and (2) launch the Appium server

#!/bin/sh
adb connect "$1"
appium

Then I launch one of these Docker containers per each Android instance that I want to control. But this is not very easy to scale and there is still a lot of work in managing used ports (when port forwarding Appium’s 4723 port to a unique port for each Android instance).

What is the canonical way to do this in the Appium ecosystem?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
simoreiracommented, Jun 29, 2020

Any reason to not use Selenium Grid for this? You can then automate the capabilities generation and manage the ports through it.

1reaction
mykola-mokhnachcommented, Jun 23, 2020

It will anyway be necessary to manage ports/devices acquisition. A testing session will be just using the particular device udid, that is passed to it. It does not care whether this device is already used by other instances.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup for Parallel Testing - Appium
Appium provides a way for users to automate multiple Android sessions on a single machine on single server instance. All it involves is...
Read more >
Appium Parallel Tests on Multiple Emulators
Appium Parallel Tests on Multiple Emulators article, I will explain how to set up and then run your Appium Tests on multiple virtual...
Read more >
Running Multiple Appium Tests in Parallel - HeadSpin
This is a detailed guide on how to run multiple Appium tests in parallel.
Read more >
Complete Tutorial On Appium Parallel Testing [With Examples]
This Appium testing tutorial takes you through the journey of running automation tests while performing Appium parallel testing.
Read more >
Parallel execution in Appium 1.7 - Medium
Up to Appium 1.7 release, parallel test execution has always been a painful experience. Without using any commercial device cloud solutions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found