From 7cc2b5db124567df899d4062f6838129066638b8 Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Thu, 21 Mar 2024 15:50:20 +0500 Subject: [PATCH 1/4] work around for docker --- env_configs/android_mobile_docker.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env_configs/android_mobile_docker.json b/env_configs/android_mobile_docker.json index 5e034291..3d57e9e1 100644 --- a/env_configs/android_mobile_docker.json +++ b/env_configs/android_mobile_docker.json @@ -6,7 +6,7 @@ "noReset": false, "newCommandTimeout": 300, "adbExecTimeout": 2400000, - "appWaitDuration": 120000, - "uiautomator2ServerInstallTimeout": 1200000 + "appWaitDuration": 2400000, + "uiautomator2ServerInstallTimeout": 2400000 } } From d0b407c7ec619d2eaca274325e9558d903928002 Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Thu, 21 Mar 2024 17:13:06 +0500 Subject: [PATCH 2/4] work around for docker --- .github/workflows/docker_android_workflow.yml | 6 +++--- env_configs/android_mobile_local.json | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker_android_workflow.yml b/.github/workflows/docker_android_workflow.yml index 9b891763..3c6df195 100644 --- a/.github/workflows/docker_android_workflow.yml +++ b/.github/workflows/docker_android_workflow.yml @@ -52,7 +52,7 @@ jobs: run: | appium driver install xcuitest appium driver install uiautomator2 - appium --log-level debug & + appium --allow-cors --log-level debug & sleep 10 appium -v @@ -129,7 +129,7 @@ jobs: run: | appium driver install xcuitest appium driver install uiautomator2 - appium --log-level debug & + appium --allow-cors --log-level debug & sleep 10 appium -v @@ -155,7 +155,7 @@ jobs: sleep 5 ./emulator -list-avds sleep 5 - ./emulator -avd test -no-snapshot-save -no-window -grpc-use-jwt -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none & + ./emulator -avd test -no-snapshot-save -no-window -grpc-use-jwt -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none - name: Check out code diff --git a/env_configs/android_mobile_local.json b/env_configs/android_mobile_local.json index d4cfaaad..6a79c0d2 100644 --- a/env_configs/android_mobile_local.json +++ b/env_configs/android_mobile_local.json @@ -1,9 +1,12 @@ { - "capabilities": { - "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", - "noReset": false, - "newCommandTimeout": 3600 - } - } + "capabilities": { + "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", + "noReset": false, + "newCommandTimeout": 300, + "adbExecTimeout": 2400000, + "appWaitDuration": 2400000, + "uiautomator2ServerInstallTimeout": 2400000 + } +} From 18ecc80b95bc35d9754770f3fcb8d1728e0c662f Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Thu, 21 Mar 2024 17:15:28 +0500 Subject: [PATCH 3/4] work around for docker --- env_configs/android_mobile_docker.json | 6 +++--- env_configs/android_mobile_local.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/env_configs/android_mobile_docker.json b/env_configs/android_mobile_docker.json index 3d57e9e1..1afa2ce6 100644 --- a/env_configs/android_mobile_docker.json +++ b/env_configs/android_mobile_docker.json @@ -5,8 +5,8 @@ "app": "/Users/runner/work/pytest-automation-boilerplate/pytest-automation-boilerplate/app files/builds/Android-MyDemoAppRN.1.3.0.build-244.apk", "noReset": false, "newCommandTimeout": 300, - "adbExecTimeout": 2400000, - "appWaitDuration": 2400000, - "uiautomator2ServerInstallTimeout": 2400000 + "adbExecTimeout": 3000000, + "appWaitDuration": 3000000, + "uiautomator2ServerInstallTimeout": 3000000 } } diff --git a/env_configs/android_mobile_local.json b/env_configs/android_mobile_local.json index 6a79c0d2..2246baf7 100644 --- a/env_configs/android_mobile_local.json +++ b/env_configs/android_mobile_local.json @@ -5,8 +5,8 @@ "app": "/Users/tauqirsarwar/Documents/Automation/Bench/Boilerplate/pytest-automation-boilerplate/app files/builds/Android-MyDemoAppRN.1.3.0.build-244.apk", "noReset": false, "newCommandTimeout": 300, - "adbExecTimeout": 2400000, - "appWaitDuration": 2400000, - "uiautomator2ServerInstallTimeout": 2400000 + "adbExecTimeout": 3000000, + "appWaitDuration": 3000000, + "uiautomator2ServerInstallTimeout": 3000000 } } From e4968c2fdadeb75210253b0122da80061fd6e22a Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Thu, 21 Mar 2024 17:22:33 +0500 Subject: [PATCH 4/4] work around for docker --- frontend/test_project/locators/Android_locators.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/test_project/locators/Android_locators.json b/frontend/test_project/locators/Android_locators.json index 72964777..36b806f8 100644 --- a/frontend/test_project/locators/Android_locators.json +++ b/frontend/test_project/locators/Android_locators.json @@ -39,7 +39,7 @@ }, "an-Review_Order": { "Review": "//android.view.ViewGroup[@content-desc='Review Order button']", - "Total": "//android.widget.TextView[@content-desc='total price']", + "Total": "//*[@content-desc='total price']", "Place_Order": "//android.view.ViewGroup[@content-desc='Place Order button']", "Order_Complete": "//android.widget.TextView[@text='Checkout Complete']" }