Enable screenshots for XCUITests
Enable screenshots for your XCUITest executions on BrowserStack App Automate. Test your apps on a real device cloud.
Visual logs debug feature allows you to save the screenshots that are automatically captured by XCode. Visual logs are disabled by default. To enable it, you need to pass the debugscreenshots parameter in the REST API request to start XCUITest execution.
Visual logs are available on the BrowserStack dashboard for 30 days. These logs will be deleted after 30 days from the day they were generated.
Enable visual logs using REST API
To enable visual logs for your XCUITest execution, set the debugscreenshots parameter to true in the request body while triggering a new XCUITest build using the REST API.
| Parameter | Description | Values |
|---|---|---|
debugscreenshots |
Capture the screenshots for your test |
true, false Default: false |
Example cURL request:
View results on the dashboard
You can view the visual logs for every test case execution from the test details page of App Automate dashboard.

Related topics
-
Manage your uploaded app or test suite using our upload app REST API and upload test suite REST API.
-
Use the get app API endpoint and list test suites API endpoint to list your recently uploaded apps and test suites.
-
Delete your uploaded app or test suite using the delete app API endpoint and delete test suite 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!