How to link BrowserStack results (App Automate) & Azure Devops Pipelines for Android

803 Views Asked by At

I upload my android test apk and my tests into BrowserStack through Azure Devops Pipelines.

Once the tests are done, I need to know if the tests have passed or not.

I use the "BrowserStack Results" task:

  - task: BrowserStackResults@1
    inputs:
      browserstackProduct: 'app automate'

But I have this error:

##[error] Build not found by name: "azure-[Android ------] Hourly Tests-20220131.15"

enter image description here

How can I resolve it?

2

There are 2 best solutions below

0
On

You need to give this in the browserstack capabilities for each browser

build: process.env.BROWSERSTACK_BUILD_NAME

0
On

​ Could you please let me know if you have followed the guide mentioned below while configuring BrowserStack on Azure:

https://www.browserstack.com/docs/app-automate/appium/integrations/azure

​Along with this, please ensure that BrowserStackConfig is placed before executing your test script in your pipeline.

​Hope this helps.