Device logs
Device logs 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/ios/build" \
-d '{"deviceLogs": true, "testPackage": "<test-package-id>", "devices": ["iPhone 15 Pro Max-17"]}' \
-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 test package using our REST API.
-
Use the list test package API endpoint to list your recently uploaded test package.
-
Delete your uploaded test package using the delete test package 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!