Skip to content

Browserstack Flutter Action

Actions
Uploads a Flutter Android/iOS app to Browserstack and runs the tests
v1.5
Latest
Star (2)

Browserstack Flutter Action

This action fulfils the following objectives in your runner environment:

  • Uploading the app/testsuite paths provided to browserstack
  • Starting the testrun on browserstack
  • Waiting until the tests are done and checking the result

Prerequisites

Inputs

  • browserstackUsername:
    • Browserstack Username
  • browserstackAccessKey:
    • Browserstack Access Key
  • testPackagePath:
    • Path to the iOS testPackage that will be uploaded
  • appFilePath:
    • Path to the android app that will be uploaded
  • testFilePath:
    • Path to the android test apk that will be uploaded
  • devices:
  • locale:
    • The locale of the app, defaults to US
  • language:
    • The language of the app, defaults to en
  • project:
    • Optional projectname that will be shown on browserstack
  • buildTag:
    • Optional buildTag for the testrun that will be shown on browserstack
  • customId:
    • Optional customId for the uploaded packages that will be shown on browserstack

Outputs

  • app_url:
    • The app url for the Android APK on Browserstack
  • test_suite_url:
    • The test file url for the Android APK on Browserstack
  • test_package_url:
    • The test package url for the iOS App on Browserstack
  • build_id:
    • The build id for the triggered testrun
  • test_result:
    • The test result from browserstack (json)

Usage

Use the code snippet below in your workflow to upload run a flutter android test:

  name: Upload and Run Tests on Browserstack
  uses: Grodien/browserstack-flutter-action@v1.3
  with:
    browserstackUsername: ${{ secrets.BROWSERSTACK_USERNAME }}
    browserstackAccessKey: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
    project: example
    customId: example_android
    buildTag: example_android
    appFilePath: ${{ github.workspace }}/build/app/outputs/flutter-apk/app-dev-debug.apk
    testFilePath: ${{ github.workspace }}/build/app/outputs/apk/androidTest/dev/debug/app-dev-debug-androidTest.apk
    devices: Samsung Galaxy Tab S9-13.0,Samsung Galaxy Tab S8-12.0

Use the code snippet below in your workflow to upload run a flutter ios test:

- name: Upload and Run on Browserstack
  uses: Grodien/browserstack-flutter-action@v1.3
  with:
    browserstackUsername: ${{ secrets.BROWSERSTACK_USERNAME }}
    browserstackAccessKey: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
    project: example
    customId: example_ios
    buildTag: example_ios
    testPackagePath: ${{ github.workspace }}/build/ios_integration/Build/Products/app-integrationtest-release.zip
    devices: iPad 9th-15

Browserstack Flutter Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Uploads a Flutter Android/iOS app to Browserstack and runs the tests
v1.5
Latest

Browserstack Flutter Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.