Device logs
Device logs are system logs specific to your application generated by Android logcat
. They can help you access your application logs and are especially helpful if the application under test crashes during test execution.
Device logs are available on the BrowserStack dashboard for 30 days. These logs will be deleted after 30 days from the day they were generated.
Device logs are disabled by default. To enable them, use the deviceLogs
parameter when running a build using the builds REST API.
Example cURL
request to enable device logs:
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/flutter-integration-tests/v2/builds" \
-d '{"deviceLogs": true, "devices": ["Samsung Galaxy S8-7.0"], "app": "bs://f7c874f21852ba57957a3fdc33f47514288c4ba4", "testSuite": "bs://e994db8333e32a5863938666c3c3491e778352ff"}' \
-H "Content-Type: application/json"
Viewing device logs
You can access device logs for each executed test case on the App Automate dashboard or get them using the sessions REST API.
Select the Device Logs tab on the App Automate dashboard and click View Raw Device Logs.
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!