Skip to main content
🚀 re:Imagine QA - See how AI reshapes your SDLC @ AWS re:Invent. Visit BrowserStack Booth!
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Integrate accessibility test suite with Fastlane

Integrate your accessibility test suite with Fastlane using the BrowserStack Fastlane plugin.

Fastlane automates beta deployments and releases for iOS and Android apps. It handles tasks such as generating screenshots, managing code signing, and releasing applications. The BrowserStack Fastlane plugin lets you upload your app to BrowserStack directly through Fastlane. After uploading the app, you can run automated or manual accessibility tests on the app using BrowserStack real devices.

BrowserStack provides this integration as a standalone Fastlane plugin. You must explicitly install it in your Fastlane project.

Install the BrowserStack Fastlane plugin

  1. Run the following command to add the BrowserStack Fastlane plugin to your Fastlane project:
     fastlane add_plugin browserstack
    
  2. Configure the BrowserStack Fastlane plugin by adding the following action to your Fastfile to upload your app:
     upload_to_browserstack_app_automate(
         browserstack_username: ENV["BROWSERSTACK_USERNAME"],
         browserstack_access_key: ENV["BROWSERSTACK_ACCESS_KEY"],
         file_path: "<path_to_your_apk_or_ipa_file>",
         custom_id: "<custom_id_name>"
     )
    
  • The custom_id parameter is optional. You can upload multiple builds using the same custom_id. Use custom_id in the app capability for your accessibility test runner to always pick the last uploaded build.
  • The file_path parameter is not required if the you built the app in the same lane using the Gradle or Gym plugin.

After you have successfully uploaded the app, you can use the BROWSERSTACK_APP_ID environment variable in subsequent Fastlane steps or test workflows as needed.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle