Skip to content

Commit

Permalink
Docker IOS Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tauqirsarwar1 committed Mar 21, 2024
1 parent 278be09 commit cbcd4f7
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 18 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/docker_android_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Docker Android Tests Workflow
env:
TAGS: "android_mobile_tests"
PROJECT_LOCATION: ${{ github.workspace }}
# USING_DOCKER: 'True'

on:
schedule:
Expand Down Expand Up @@ -41,14 +40,6 @@ jobs:
if: steps.setup_python.outcome == 'success'
uses: actions/checkout@v4

- name: Set up JDK 21
id: setup_java
if: steps.co_code.outcome == 'success'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21

- name: Install and Run Appium Server
id: setup_appium
if: steps.setup_java.outcome == 'success'
Expand All @@ -57,7 +48,14 @@ jobs:
appium --log-level debug &
sleep 10
appium -v
curl 'http://127.0.0.1:4723/wd/hub/sessions'
- name: Install drivers
id: install_drivers
if: steps.setup_appium.outcome == 'success'
run: |
appium driver install xcuitest
appium driver install uiautomator2
sleep 5
- name: Run Emulator
id: run_emulator
Expand Down Expand Up @@ -128,7 +126,14 @@ jobs:
appium --log-level debug &
sleep 5
appium -v
curl 'http://127.0.0.1:4723/wd/hub/sessions'
- name: Install drivers
id: install_drivers
if: steps.setup_appium.outcome == 'success'
run: |
appium driver install xcuitest
appium driver install uiautomator2
sleep 5
- name: Run Android Emulator
id: run_emulator
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/docker_ios_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ jobs:
appium --log-level debug &
sleep 5
appium -v
curl 'http://127.0.0.1:4723/wd/hub/sessions'
- name: Install drivers
id: install_drivers
if: steps.setup_appium.outcome == 'success'
run: |
appium driver install xcuitest
appium driver install uiautomator2
sleep 5
- name: Set up X Code
id: setup_xcode
Expand Down Expand Up @@ -119,7 +126,15 @@ jobs:
appium --log-level debug &
sleep 5
appium -v
curl 'http://127.0.0.1:4723/wd/hub/sessions'
- name: Install drivers
id: install_drivers
if: steps.setup_appium.outcome == 'success'
run: |
appium driver install xcuitest
appium driver install uiautomator2
sleep 5
- name: Set up X Code
id: setup_xcode
Expand Down
2 changes: 1 addition & 1 deletion bp_core/frontend/frontend_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def driver_kwargs(capabilities, host, port, **kwargs):
_ = capabilities, kwargs
protocol = "http"
host = host if host.startswith(protocol) else f"{protocol}://{host}"
executor = f"{host}:{port}/wd/hub"
executor = f"{host}:{port}"
kwargs = {"command_executor": executor, "options": options}

return kwargs
Expand Down
1 change: 0 additions & 1 deletion configs/android_mobile_docker.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"capabilities": {
"browserstack": "False",
"deviceName": "emulator-5554",
"platformName": "android",
"app": "/home/runner/work/pytest-automation-boilerplate/pytest-automation-boilerplate/app files/builds/Android-MyDemoAppRN.1.3.0.build-244.apk",
Expand Down
1 change: 0 additions & 1 deletion configs/android_mobile_local.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"capabilities": {
"browserstack": "False",
"deviceName": "emulator-5554",
"platformName": "Android",
"app": "/Users/tauqirsarwar/Documents/Automation/Bench/Boilerplate/pytest-automation-boilerplate/app files/builds/Android-MyDemoAppRN.1.3.0.build-244.apk",
Expand Down
1 change: 0 additions & 1 deletion configs/ios_mobile_docker.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"capabilities": {
"browserstack": "False",
"platformVersion": "17.0",
"deviceName": "iPhone 14 Pro",
"platformName": "ios",
Expand Down
1 change: 0 additions & 1 deletion configs/ios_mobile_local.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"capabilities": {
"browserstack": "False",
"platformVersion": "17.0",
"deviceName": "iPhone 15 Plus",
"platformName": "ios",
Expand Down

0 comments on commit cbcd4f7

Please sign in to comment.