Skip to main content
No Result Found

Set debugging options

On BrowserStack App Automate, you can debug and fix your failed Maestro tests using screenshots, video recording and a variety of logs. While executing your Maestro tests, you can configure the debugging options that need to be enabled.

Network logs

Network Logs capture performance data such as network traffic, latency, HTTP requests and responses in the HAR (HTTP Archive) format. You can download network logs using both the App Automate dashboard, as well as using our REST API. You can visualise HAR files using a HAR Viewer.

Network Logs are disabled by default. To enable network logs, you need to pass the networkLogs parameter in the REST API request to start Maestro test execution. An example cURL request to enable network logs is shown below :

curl -u "username:accesskey" \
-X POST "https://api-cloud.browserstack.com/app-automate/maestro/v2/android/build" \
-H "Content-Type: application/json" \
-d '{
"networkLogs": true,
"devices": ["Samsung Galaxy S8-7.0"],
"app": "bs://f7c874f21852ba57957a3fdc33f47514288c4ba4",
"testSuite": "bs://e994db8333e32a5863938666c3c3491e778352ff"}'

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 disabled by default. To enable device logs, you need to pass the deviceLogs parameter in the REST API request to start Maestro test execution. An example cURL request to enable device logs is shown below :

curl -u "username:accesskey" \
-X POST "https://api-cloud.browserstack.com/app-automate/maestro/v2/android/build" \
-H "Content-Type: application/json" \
-d '{
"deviceLogs": true,
"devices": ["Samsung Galaxy S8-7.0"],
"app": "bs://f7c874f21852ba57957a3fdc33f47514288c4ba4",
"testSuite": "bs://e994db8333e32a5863938666c3c3491e778352ff"}'

Video recording

Every test run on the BrowserStack is recorded exactly as it is executed on remote device. This feature is particularly helpful whenever a test fails - it helps you see the entire test in action. You can access these videos from the App Automate dashboard. You can also download the videos from the dashboard or retrieve a link to download the video using our REST API.

Video logs are enabled by default. Note that video recording slightly increases the text execution time. To disable video recording, you need to set the video parameter to false in the REST API request to start Maestro test execution.

curl -u "username:accesskey" \
-X POST "https://api-cloud.browserstack.com/app-automate/maestro/v2/android/build" \
-H "Content-Type: application/json" \
-d '{
"video":false,
"devices": ["Samsung Galaxy S8-7.0"],
"app": "bs://f7c874f21852ba57957a3fdc33f47514288c4ba4",
"testSuite": "bs://e994db8333e32a5863938666c3c3491e778352ff"
}'
Note: Your video recordings are retained on BrowserStack for 30 days from the day of test execution. All other test execution data, including screenshots and logs, are retained on BrowserStack for 60 days from the day of test execution.

For more debugging options, refer to debug failed tests page.

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