Skip to content

Commit

Permalink
chore: run android ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-yangy committed Nov 11, 2024
1 parent 49af077 commit 778906f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
- targetPlatform: StandaloneWindows64
runs-on: [self-hosted, windows]
test_script: test_windows.ps1
- targetPlatform: Android
runs-on: [ self-hosted, macOS ]
test_script: pytest test/test_android.py
concurrency:
group: test-${{ matrix.targetPlatform }}
runs-on: ${{ matrix.runs-on }}
Expand All @@ -89,6 +92,8 @@ jobs:
UNITY_APP_PATH: SampleApp.app
UNITY_APP_NAME: SampleApp
MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }}
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
working-directory: sample/Tests
run: ./${{ matrix.test_script }}
run: ${{ matrix.test_script }}

2 changes: 1 addition & 1 deletion sample/Tests/browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ source: pytest-browserstack:sample-sdk:v1.0
# Set `app` to define the app that is to be used for testing.
# It can either take the id of any uploaded app or the path of the app directly.
#app: ./WikipediaSample.apk
app: ./build/output/Android/SampleApp.apk #For running local tests
app: SampleApp.apk #For running local tests

# =======================================
# Platforms (Browsers / Devices to test)
Expand Down
5 changes: 0 additions & 5 deletions sample/Tests/test/test_android.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ def setUpClass(cls):
@classmethod
def tearDownClass(cls):
print("\nEnding")
try:
AltReversePortForwarding.remove_reverse_port_forwarding_android()
print("Reverse port forwarding removed")
except:
print("No adb forward was present")
cls.altdriver.stop()
cls.appium_driver.quit()

Expand Down

0 comments on commit 778906f

Please sign in to comment.