Skip to content

Commit ee794af

Browse files
authored
Enable BrowserStack testing stage (microsoft#25668)
### Description Tests previously not running in ADO pipelines correctly -- instead would time out
1 parent eff5b9a commit ee794af

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/browserstack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ platforms:
33
- platformName: android
44
deviceName: Samsung Galaxy S22 Ultra
55
platformVersion: 12.0
6-
browserstackLocal: true
6+
browserstackLocal: false
77
buildName: ORT android test
88
buildIdentifier: ${BUILD_NUMBER}
99
projectName: ORT-UITests
1010
debug: true
1111
networkLogs: false
1212
testContextOptions:
13-
skipSessionStatus: true
13+
skipSessionStatus: true

tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ stages:
4949
dotnet publish -c Release --property:UsePrebuiltNativePackage=true --property:CurrentOnnxRuntimeVersion=$(NuGetPackageVersionNumber) -f net8.0-android
5050
workingDirectory: '$(Build.SourcesDirectory)\csharp\test\Microsoft.ML.OnnxRuntime.Tests.MAUI'
5151

52+
- task: BrowserStackConfig@0
53+
inputs:
54+
BrowserStackServiceEndPoint: 'OnnxRuntimeBrowserStackConnection'
55+
56+
- task: BrowserStackAppUploader@0
57+
inputs:
58+
appPath: '$(Build.SourcesDirectory)\csharp\test\Microsoft.ML.OnnxRuntime.Tests.MAUI\bin\Release\net8.0-android\publish\ORT.CSharp.Tests.MAUI-Signed.apk'
59+
appCustomId: 'Appium-Android-CI'
60+
5261
- task: PowerShell@2
5362
displayName: Run BrowserStack test
5463
inputs:

0 commit comments

Comments
 (0)