Dockerizing appium tests

Please reply its is very important for me

docker@boot2docker:~$ docker run --rm -ti --net container:adbd sorccu/adb adb devices
List of devices attached
ZY2232TB7B device

I have connected two devices. but it is showing only one

@banthia can you please clarify below

  1. ā€œā€¦The only way to reduce run time is by parallelisationā€¦ā€ , does this mean each container run tests on individual emulator or physical device ?

  2. If Iā€™ve 10 android devices , how do I allocate each to individual container ?

  3. Iā€™m using Docker technology to run web automation in parallel with help of selenium grid. One container works as Hub and others are node.

  4. Does this project also uses similar technique ?

Thanks in advance.

Regards,
Vikram

I have a docker container on azure cloud with appium, and My Device is not displayed.
Steps to reproduce:

  1. Run docker with " docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb -p 4723:4723 -it appium/appium-docker-android bash "
  2. Then i input, " docker exec ā€œdocker container numberā€ adb devices "
  3. I then get List of devices attached
  • daemon not running. starting it now on port 5037 *
  • daemon started successfully *
  1. Then i input, " docker exec ā€œdocker container numberā€ adb devices "
  2. I get List of devices attached but its BLANK.

What do i need to do in order for my devices to be displayed when i run " docker exec ā€œdocker container numberā€ adb devices "??? Iā€™ve also tried adb connect 11.11.11.11:5555 and the request times out
Please Help @banthia

1 Like

Hi @banthia

I am using windows 7.I have automated simple app with appium.Can i implement the same using docker? i have installed docker using docker tool box.

Can you help me to proceed further?

Could Docker run Appium tests without emulators?

If so, Iā€™m interested to hear solutions. My job wonā€™t allow me to download HAXM for Android Emulators.