Compare commits

..
8 Commits
Author SHA1 Message Date
butomo1989 cde35287c7 Using the latest base image 2018-05-12 13:13:21 +02:00
butomo1989 29898ba91e Fixed issue #52 2018-05-11 00:43:16 +02:00
butomo1989 2d25517bfa Using the latest version of docker-appium 2018-04-29 20:06:17 +02:00
Budi UtomoandGitHub e3219ac24b Changed order 2018-04-23 19:25:24 +02:00
Budi UtomoandGitHub c4fb6243c5 Fixed tag 2018-04-23 19:23:54 +02:00
Budi UtomoandGitHub d021fd69e6 Added video conference 2018-04-23 19:22:10 +02:00
butomo1989 cacfe568a2 Added video image 2018-04-23 21:17:41 +02:00
butomo1989 cb100330ad Using appium-docker-android docker image for executing Appium UI-Test 2018-03-21 19:08:48 +01:00
7 changed files with 37 additions and 14 deletions
+5 -1
View File
@@ -10,6 +10,10 @@
Docker-Android is a docker image built to be used for everything related to mobile website testing and Android project.
<p align="center">
<a href="https://youtu.be/pQdpjuYwvp8"><img src="./images/appiumconf2018.png" alt="Appium Conference 2018" width="600"></a>
</p>
Emulator - Samsung Device | Emulator - Nexus Device | Real Device
:---------------------------:|:---------------------------:|:---------------------------:
![][emulator samsung] |![][emulator nexus] |![][real device]
@@ -303,7 +307,7 @@ Special Thanks
[emulator nexus]: <images/emulator_nexus_5.png>
[real device]: <images/real_device.png>
[compose]: <images/compose.png>
[line]: <https://github.com/butomo1989/docker-android/blob/master/docker-compose.yml#L29>
[line]: <https://github.com/butomo1989/docker-android/blob/master/docker-compose.yml#L70>
[example of compose file]: <docker-compose.yml>
[docker-compose]: <https://docs.docker.com/compose/install/>
[1.13.0]: <https://github.com/docker/compose/releases/tag/1.13.0>
+26 -8
View File
@@ -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:
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:1.7.2-p1
FROM appium/appium:1.8.0-p1
LABEL maintainer "Budi Utomo <budi.ut.1989@gmail.com>"
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:1.7.2-p1
FROM appium/appium:1.8.0-p1
LABEL maintainer "Budi Utomo <budi.ut.1989@gmail.com>"
+2 -2
View File
@@ -1,4 +1,4 @@
FROM appium/appium:1.7.2-p1
FROM appium/appium:1.8.0-p1
LABEL maintainer "Budi Utomo <budi.ut.1989@gmail.com>"
@@ -38,7 +38,7 @@ WORKDIR /root
# Sed for JSON data
#==================
RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
xterm \
xterm \
supervisor \
socat \
x11vnc \
Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

+2 -1
View File
@@ -105,7 +105,8 @@ def appium_run(avd_name: str):
:param avd_name: Name of android virtual device / emulator
"""
cmd = 'appium'
DEFAULT_LOG_PATH = '/var/log/supervisor/appium.log'
cmd = 'appium --log {log}'.format(log=os.getenv('APPIUM_LOG', DEFAULT_LOG_PATH))
default_web_browser = os.getenv('BROWSER')
if default_web_browser == 'chrome':