Run your tests on BrowserStack
To run your Flutter integration tests on BrowserStack App Automate, follow these steps:
Upload your app and test suite
Before running your tests, ensure that you have uploaded your app and Flutter test suite to BrowserStack App Automate.
Run your Flutter integration tests
Use the builds API to execute your tests. The builds
API mandates the following parameters:
app
: Set this to either the app URL, the custom ID, or the shareable ID of your app. To learn more, refer to the upload apps.
testSuite
: Set this to either the test suite URL, the custom ID, or the shareable ID of your test suite. To learn more, refer to the upload test suites.
devices
: Specify the device and the OS version on which you want to test your app. Use the device selector below to select your device.
To specify devices using regular expressions (regex), refer to this page.
The above command uses sample values for app
and testSuite
. Use actual values when running your tests.
You can execute tests on multiple devices too. For more information, refer to the Execute a build API documentation.
Review the API response
Upon executing a successful API request, you receive a response similar to the following:
{
"message": "Success",
"build_id": "741c219db523cb51d4cdf35723ce3bfc592fb74a"
}
The build_id
returned in the API response is a unique identifier for your test execution. Each test build represents the execution of your Flutter test suite on all selected devices.
Once you start the Flutter test execution using REST API, you can access the test execution results on the App Automate dashboard.
For a complete list of parameters that you can use for your Flutter integration test execution, refer to our Flutter Build API reference.
Related topics
-
Manage your uploaded apps using our REST API.
-
Use the recent apps API endpoint to list your recently uploaded apps.
-
Delete your uploaded apps using the delete app API endpoint.
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!