Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy
No Result Found
Connect and get help from 7,000+ developers on our Discord community. Ask the CommunityAsk the Community

Access device logs for Detox tests

Access device logs for your Detox test executions on BrowserStack App Automate. Test your apps on a real device cloud.

Device logs are system logs specific to your application generated by Android logcat. They 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 captured during your Detox test execution. To retrieve them, send a request to the get session details endpoint using your session ID. The device_logs_url attribute in the response contains a link to download the device logs.

REST API endpoint:

GET /app-automate/detox/v2/android/sessions/<session-id>.json
Attribute Description
device_logs_url URL to download the device logs generated during the Detox test execution.

Example cURL request:

Get the session details, including the device logs link, for a Detox test execution:

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X GET "https://api-cloud.browserstack.com/app-automate/detox/v2/android/sessions/<session-id>.json"

View device logs on the dashboard

On the session details page of the App Automate dashboard, you can view the device logs for your session.

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