2016-12-22 13:29:57 +00:00
|
|
|
Docker-Android-Appium
|
|
|
|
=====================
|
|
|
|
|
2016-12-22 13:33:30 +00:00
|
|
|
[](https://travis-ci.org/butomo1989/docker-appium)
|
|
|
|
[](https://codecov.io/gh/butomo1989/docker-appium)
|
|
|
|
|
2016-12-22 13:29:57 +00:00
|
|
|
Android emulator and Appium server in docker solution.
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
|
|
|
Docker is installed in your system.
|
|
|
|
|
|
|
|
Quick Start
|
|
|
|
-----------
|
|
|
|
|
|
|
|
1. Run docker-appium with command:
|
|
|
|
|
2016-12-22 13:36:09 +00:00
|
|
|
```bash
|
|
|
|
docker run -d -p 4723:4723 -v <apk_path_that_will_be_tested>:/target_apk -e ANDROID_VERSION=<target_android_version> --name appium-container butomo1989/docker-appium
|
|
|
|
```
|
2016-12-22 13:29:57 +00:00
|
|
|
|
2016-12-22 13:36:09 +00:00
|
|
|
***Note: There is an example apk in folder example.***
|
2016-12-22 13:29:57 +00:00
|
|
|
|
2016-12-22 13:36:09 +00:00
|
|
|
An Example:
|
2016-12-22 13:29:57 +00:00
|
|
|
|
2016-12-22 13:36:09 +00:00
|
|
|
```bash
|
2016-12-22 14:44:23 +00:00
|
|
|
docker run -d -p 4723:4723 -v $PWD/example/sample_apk:/target_apk -e ANDROID_VERSION=4.2.2 --name appium-container butomo1989/docker-appium
|
2016-12-22 13:36:09 +00:00
|
|
|
```
|
2016-12-22 13:29:57 +00:00
|
|
|
|
|
|
|
2. See the docker logs with command:
|
|
|
|
|
2016-12-22 13:36:09 +00:00
|
|
|
```bash
|
|
|
|
docker logs appium-container -f
|
|
|
|
```
|
2016-12-22 13:29:57 +00:00
|
|
|
|
|
|
|
3. Wait until you see this following example messages in logs that showing that appium server is ready to use:
|
|
|
|
|
2016-12-22 13:36:09 +00:00
|
|
|
```bash
|
|
|
|
INFO:android_appium:Android emulator is created
|
|
|
|
INFO:android_appium:android emulator name: emulator_4.2.2
|
|
|
|
[Appium] Welcome to Appium v1.6.3
|
|
|
|
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
|
|
|
|
```
|
2016-12-22 13:29:57 +00:00
|
|
|
|
|
|
|
4. Run your UI tests by using docker-appium.
|
|
|
|
|
2016-12-22 13:36:56 +00:00
|
|
|
***Note: There is an example UITests in folder example.***
|