Access Detox test logs
Access test logs for your Detox test executions on BrowserStack App Automate. Test your apps on a real device cloud.
Test logs are a comprehensive record of your Detox test execution, including the Detox client and server logs. Use them to identify the steps run during a test and troubleshoot errors for any failed steps. Test logs are accessible both from the App Automate dashboard, and using our REST API.
Detox testing on BrowserStack is supported on Android devices.
Test logs are available on the BrowserStack dashboard for 30 days. These logs will be deleted after 30 days from the day they were generated.
Test logs are captured during your Detox test execution.
Access test logs using the REST API
To retrieve test logs, send a request to the get session details endpoint using your session ID. The session_terminal_logs_url attribute in the response contains a link to download the test logs for your session.
REST API endpoint:
GET /app-automate/detox/v2/android/sessions/<session-id>.json
Example cURL request:
Get the session details, including the test 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 test logs on the dashboard
On the session details page of the App Automate dashboard, you can view the test 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
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!