Skip to content

Commit 778906f

Browse files
committed
chore: run android ui tests
1 parent 49af077 commit 778906f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/ui-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ jobs:
6868
- targetPlatform: StandaloneWindows64
6969
runs-on: [self-hosted, windows]
7070
test_script: test_windows.ps1
71+
- targetPlatform: Android
72+
runs-on: [ self-hosted, macOS ]
73+
test_script: pytest test/test_android.py
7174
concurrency:
7275
group: test-${{ matrix.targetPlatform }}
7376
runs-on: ${{ matrix.runs-on }}
@@ -89,6 +92,8 @@ jobs:
8992
UNITY_APP_PATH: SampleApp.app
9093
UNITY_APP_NAME: SampleApp
9194
MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }}
95+
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
96+
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
9297
working-directory: sample/Tests
93-
run: ./${{ matrix.test_script }}
98+
run: ${{ matrix.test_script }}
9499

sample/Tests/browserstack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ source: pytest-browserstack:sample-sdk:v1.0
2626
# Set `app` to define the app that is to be used for testing.
2727
# It can either take the id of any uploaded app or the path of the app directly.
2828
#app: ./WikipediaSample.apk
29-
app: ./build/output/Android/SampleApp.apk #For running local tests
29+
app: SampleApp.apk #For running local tests
3030

3131
# =======================================
3232
# Platforms (Browsers / Devices to test)

sample/Tests/test/test_android.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ def setUpClass(cls):
3636
@classmethod
3737
def tearDownClass(cls):
3838
print("\nEnding")
39-
try:
40-
AltReversePortForwarding.remove_reverse_port_forwarding_android()
41-
print("Reverse port forwarding removed")
42-
except:
43-
print("No adb forward was present")
4439
cls.altdriver.stop()
4540
cls.appium_driver.quit()
4641

0 commit comments

Comments
 (0)