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
- Run the following command to add the BrowserStack Fastlane plugin to your Fastlane project:
fastlane add_plugin browserstack - 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_idparameter is optional. You can upload multiple builds using the samecustom_id. Usecustom_idin theappcapability for your accessibility test runner to always pick the last uploaded build. - The
file_pathparameter 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
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!