From cb100330adb285cb6f36eadd4963bdff3df776e5 Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Wed, 21 Mar 2018 19:08:48 +0100 Subject: [PATCH] Using appium-docker-android docker image for executing Appium UI-Test --- README.md | 2 +- docker-compose.yml | 34 ++++++++++++++++++++++++++-------- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 719574b..4df39f7 100644 --- a/README.md +++ b/README.md @@ -303,7 +303,7 @@ Special Thanks [emulator nexus]: [real device]: [compose]: -[line]: +[line]: [example of compose file]: [docker-compose]: [1.13.0]: diff --git a/docker-compose.yml b/docker-compose.yml index 83b9769..5dbd89e 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,24 +10,42 @@ services: ports: - "4444:4444" + # There is a bug for using appium. Issue: https://github.com/butomo1989/docker-android/issues/73 # Real devices + #real_device: + # image: butomo1989/docker-android-real-device + # privileged: true + # depends_on: + # - selenium_hub + # ports: + # - 6080:6080 + # volumes: + # - ./video-real-device:/tmp/video + # - /dev/bus/usb:/dev/bus/usb + # - ~/.android:/root/.android + # environment: + # - CONNECT_TO_GRID=True + # - APPIUM=true + # - SELENIUM_HOST=selenium_hub + # - AUTO_RECORD=True + # - BROWSER_NAME=chrome + + # Using Appium Docker Android real_device: - image: butomo1989/docker-android-real-device - privileged: true + image: appium/appium depends_on: - selenium_hub - ports: - - 6080:6080 + network_mode: "service:selenium_hub" + privileged: true volumes: - - ./video-real-device:/tmp/video - /dev/bus/usb:/dev/bus/usb - ~/.android:/root/.android + - $PWD/example/sample_apk:/root/tmp environment: - CONNECT_TO_GRID=True - - APPIUM=true - SELENIUM_HOST=selenium_hub - - AUTO_RECORD=True - - BROWSER_NAME=chrome + # Enable it for msite testing + #- BROWSER_NAME=chrome # Docker-Android for Android application testing nexus_7.1.1: