Compare commits

...
33 Commits
Author SHA1 Message Date
budtmo d69e7c7dd0 Updated base image to version v2.2.2-p0 2023-11-22 10:15:08 +01:00
Budi UtomoandGitHub 8f15a2845f Merge pull request #391 from budtmo/dependabot/pip/master/coverage-7.3.2
[pip] Bump coverage from 7.3.1 to 7.3.2
2023-10-04 17:50:49 +02:00
dependabot[bot]andGitHub 9cee77998f [pip] Bump coverage from 7.3.1 to 7.3.2
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.1...7.3.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 23:38:55 +00:00
budtmo 13bd9611d7 Updated Appium base image 2023-09-22 12:23:13 +02:00
Budi UtomoandGitHub 9d5ab2dbe1 Merge pull request #386 from budtmo/dependabot/pip/master/coverage-7.3.1
[pip] Bump coverage from 7.3.0 to 7.3.1
2023-09-07 08:33:43 +02:00
dependabot[bot]andGitHub 9a5f560a73 [pip] Bump coverage from 7.3.0 to 7.3.1
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.0 to 7.3.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.0...7.3.1)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 23:22:54 +00:00
Budi UtomoandGitHub c1538606d2 Merge pull request #385 from budtmo/dependabot/github_actions/master/actions/checkout-4
[github-action] Bump actions/checkout from 3 to 4
2023-09-05 08:04:22 +02:00
dependabot[bot]andGitHub e706fedd12 [github-action] Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 23:54:20 +00:00
budtmo 4eb85fbf28 Updated base image to version 2.1.3-p0 2023-08-30 15:46:39 +02:00
Budi UtomoandGitHub 64b922c734 Merge pull request #384 from budtmo/dependabot/pip/master/autopep8-2.0.4
[pip] Bump autopep8 from 2.0.2 to 2.0.4
2023-08-28 08:03:07 +02:00
dependabot[bot]andGitHub c8ec687300 [pip] Bump autopep8 from 2.0.2 to 2.0.4
Bumps [autopep8](https://github.com/hhatto/autopep8) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/hhatto/autopep8/releases)
- [Commits](https://github.com/hhatto/autopep8/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: autopep8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-27 23:08:55 +00:00
Budi UtomoandGitHub 4feb3a1c08 Merge pull request #383 from budtmo/dependabot/pip/master/click-8.1.7
[pip] Bump click from 8.1.6 to 8.1.7
2023-08-18 09:34:06 +02:00
dependabot[bot]andGitHub cb87d43aab [pip] Bump click from 8.1.6 to 8.1.7
Bumps [click](https://github.com/pallets/click) from 8.1.6 to 8.1.7.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/8.1.6...8.1.7)

---
updated-dependencies:
- dependency-name: click
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-17 23:56:08 +00:00
Budi UtomoandGitHub d4e7a95a8c Merge pull request #382 from budtmo/dependabot/pip/master/coverage-7.3.0
[pip] Bump coverage from 7.2.7 to 7.3.0
2023-08-14 07:24:42 +02:00
dependabot[bot]andGitHub 72418957d5 [pip] Bump coverage from 7.2.7 to 7.3.0
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.7 to 7.3.0.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.7...7.3.0)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-13 23:46:22 +00:00
budtmo 725138794b Updated documentation about Selenium 4.x integration 2023-08-08 11:25:59 +02:00
budtmo 92a5487df3 Added documentation about Selenium 4.x integration 2023-08-08 11:21:51 +02:00
budtmo 0a026decdc Typo 2023-08-07 15:13:15 +02:00
budtmo 01d12a2263 New release format 2023-08-07 14:20:03 +02:00
budtmo 92a406e3ba Fixed typo 2023-08-04 14:37:34 +02:00
budtmo 56c8deedd2 Updated base image to 2.0.1-p0 2023-08-04 14:33:41 +02:00
budtmo 7a4933c63a Updated base image to 2.0.0-p1 2023-08-04 14:29:53 +02:00
Budi UtomoandGitHub e268a43141 Merge pull request #379 from foureight84/wsl2-nestedVirtualization
[documentation] WSL2 - added instructions to enable hw accelerated kvm via nestedvirtualization flag
2023-08-04 12:44:08 +02:00
Khoa Truong 87bebdf4ea [documentation] added instructions to enable hw accelerated kvm via nestedvirtualization flag 2023-08-03 01:42:06 -07:00
Budi UtomoandGitHub 52642214ed Merge pull request #374 from budtmo/dependabot/pip/master/click-8.1.6
[pip] Bump click from 8.1.5 to 8.1.6
2023-07-19 07:35:54 +02:00
dependabot[bot]andGitHub f0985a3898 [pip] Bump click from 8.1.5 to 8.1.6
Bumps [click](https://github.com/pallets/click) from 8.1.5 to 8.1.6.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/8.1.6/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/8.1.5...8.1.6)

---
updated-dependencies:
- dependency-name: click
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 23:19:20 +00:00
Budi UtomoandGitHub b082c0545f Merge pull request #372 from budtmo/dependabot/pip/master/coverage-7.2.7
[pip] Bump coverage from 7.2.5 to 7.2.7
2023-07-14 12:33:07 +02:00
dependabot[bot]andGitHub 6625803431 [pip] Bump coverage from 7.2.5 to 7.2.7
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.5 to 7.2.7.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.5...7.2.7)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-14 10:26:01 +00:00
Budi UtomoandGitHub 6918f1519f Merge pull request #371 from budtmo/dependabot/pip/master/click-8.1.5
[pip] Bump click from 8.1.3 to 8.1.5
2023-07-14 12:25:29 +02:00
Budi UtomoandGitHub 92c655cad2 Merge pull request #370 from budtmo/dependabot/pip/master/mock-5.1.0
[pip] Bump mock from 5.0.2 to 5.1.0
2023-07-14 12:24:52 +02:00
dependabot[bot]andGitHub 9ad0f32d93 [pip] Bump click from 8.1.3 to 8.1.5
Bumps [click](https://github.com/pallets/click) from 8.1.3 to 8.1.5.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/8.1.5/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/8.1.3...8.1.5)

---
updated-dependencies:
- dependency-name: click
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-14 10:18:02 +00:00
dependabot[bot]andGitHub e77bb73077 [pip] Bump mock from 5.0.2 to 5.1.0
Bumps [mock](https://github.com/testing-cabal/mock) from 5.0.2 to 5.1.0.
- [Changelog](https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/testing-cabal/mock/compare/5.0.2...5.1.0)

---
updated-dependencies:
- dependency-name: mock
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-14 10:17:59 +00:00
budtmo 6e9d4767f6 Added dependabot to update dependencies 2023-07-14 12:17:33 +02:00
9 changed files with 108 additions and 14 deletions
+40
View File
@@ -0,0 +1,40 @@
version: 2
updates:
- package-ecosystem: docker
directory: "/docker"
schedule:
interval: daily
time: '01:00'
timezone: "Europe/Berlin"
commit-message:
prefix: "[docker] "
target-branch: "master"
open-pull-requests-limit: 99
reviewers:
- "budtmo"
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: '01:00'
timezone: "Europe/Berlin"
commit-message:
prefix: "[pip] "
target-branch: "master"
open-pull-requests-limit: 99
reviewers:
- "budtmo"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: '01:00'
timezone: "Europe/Berlin"
commit-message:
prefix: "[github-action] "
target-branch: "master"
open-pull-requests-limit: 99
reviewers:
- "budtmo"
+4 -4
View File
@@ -13,7 +13,7 @@ jobs:
python-version: ["3.8"]
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
@@ -35,7 +35,7 @@ jobs:
needs: run_test
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
@@ -54,7 +54,7 @@ jobs:
android: ["9.0", "10.0", "11.0", "12.0", "13.0"]
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
@@ -70,7 +70,7 @@ jobs:
needs: release_base
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build base image
run: script -e -c "./app.sh build base test"
+32
View File
@@ -73,6 +73,37 @@ Quick Start
docker exec -it android-container cat device_status
```
WSL2 Hardware acceleration (Windows 11 only)
-----------
Credit goes to [Guillaume - The Parallel Interface blog](https://www.paralint.com/2022/11/find-new-modified-and-unversioned-subversion-files-on-windows)
[Microsoft - Advanced settings configuration in WSL](https://learn.microsoft.com/en-us/windows/wsl/wsl-config)
1. Add yourself to the `kvm` usergroup.
```
sudo usermod -a -G kvm ${USER}
```
2. Add necessary flags to `/etc/wsl2.conf` to their respective sections.
```
[boot]
command = /bin/bash -c 'chown -v root:kvm /dev/kvm && chmod 660 /dev/kvm'
[wsl2]
nestedVirtualization=true
```
3. Restart WSL2 via CMD prompt or Powershell
```
wsl --shutdown
```
`command = /bin/bash -c 'chown -v root:kvm /dev/kvm && chmod 660 /dev/kvm'` sets `/dev/kvm` to `kvm` usergroup rather than the default `root` usergroup on WSL2 startup.
`nestedVirtualization` flag is only available to Windows 11.
Use-Cases
---------
@@ -124,6 +155,7 @@ The differences between normal version and pro version are:
|language|No|Yes|Set up language on Android emulator on fly|
|root-privileged|No|Yes|Able to run command with security privileged|
|headless-mode|No|Yes|Save resources by using headless mode|
|Selenium 4.x integration|No|Yes|Running Appium UI-Tests againt one (Selenium Hub) endpoint for Android- and iOS emulator(s) / device(s)|
|multiple Android-Simulators|No|Yes (soon)|Save resources by having multiple Android-Simulators on one docker-container|
|Google Play Store|No|Yes (soon)|-|
|Video Recording|No|Yes (soon)|Helpful for debugging|
+1 -1
View File
@@ -27,7 +27,7 @@ fi
is_str_in_list ${p} ${projects[@]}
if [ -z "${3}" ]; then
read -p "Release Version (v2.0-p0|v2.0-p1|etc) : " r_v
read -p "Release Version (v2.0.0-p0|v2.0.0-p1|etc) : " r_v
else
r_v=${3}
fi
+4 -4
View File
@@ -1,6 +1,6 @@
autopep8==2.0.2
click==8.1.3
coverage==7.2.5
mock==5.0.2
autopep8==2.0.4
click==8.1.7
coverage==7.3.2
mock==5.1.0
nose==1.3.7
requests==2.31.0
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:v2.0.0-p0
FROM appium/appium:v2.2.2-p0
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
+9 -3
View File
@@ -12,6 +12,7 @@ The differences between normal version and pro version are:
|language|No|Yes|Set up language on Android emulator on fly|
|root-privileged|No|Yes|Able to run command with security privileged|
|headless-mode|No|Yes|Save resources by using headless mode|
|Selenium 4.x integration|No|Yes|Running Appium UI-Tests againt one (Selenium Hub) endpoint for Android- and iOS emulator(s) / device(s)|
|multiple Android-Simulators|No|Yes (soon)|Save resources by having multiple Android-Simulators on one docker-container|
|Google Play Store|No|Yes (soon)|-|
|Video Recording|No|Yes (soon)|Helpful for debugging|
@@ -31,10 +32,11 @@ List of Docker-Images
|11.0|30|Headless|budtmo2/docker-android-pro:emulator_headless_11.0|budtmo2/docker-android-pro:emulator_headless_11.0_<release_version>|
|12.0|32|Headless|budtmo2/docker-android-pro:emulator_headless_12.0|budtmo2/docker-android-pro:emulator_headless_12.0_<release_version>|
|13.0|33|Headless|budtmo2/docker-android-pro:emulator_headless_13.0|budtmo2/docker-android-pro:emulator_headless_13.0_<release_version>|
|-|-|Selenium|budtmo2/docker-android-pro:selenium|budtmo2/docker-android-pro:selenium_<release_version>|
***Note: Headless mode does not have any Web-UI***
You can always pull the latest image tag. In case you want to see the release version that has been built with a changelog note and use that specific release version, ythe information will be sent to you as well.
You can always pull the latest image tag. In case you want to see the release version that has been built with a changelog note and use that specific release version, the information will be sent to you as well.
List of Devices
@@ -77,9 +79,13 @@ You can change the language setting of Android Emulator on the fly by passing fo
- EMULATOR_COUNTRY="\<country>"
Version
-------
Selenium
--------
Pull and run image that contains Selenium with Appium urls and its capabilities which is stored inside node.json file:
```
docker run -t --rm --name selenium -p 4444:4444 -v $PWD/pro-example/node.json:/home/seleniumusr/selenium_node_config/node.json budtmo2/docker-android-pro:selenium
```
[<- BACK TO README](../README.md)
+16
View File
@@ -0,0 +1,16 @@
[
{
"appium_url": "http://xx.xx.xx.xx:4723",
"capability_platform": "android",
"capability_platform_version": "11.0",
"capability_device_name": "samsung_galaxy_s6_11.0",
"capability_automation_name": "UIAutomator2"
},
{
"appium_url": "http://xx.xx.xx.xx:4724",
"capability_platform": "android",
"capability_platform_version": "10.0",
"capability_device_name": "nexus_5_10.0",
"capability_automation_name": "UIAutomator2"
}
]