Skip to main content

Debug Failed Tests

BrowserStack provides a range of debugging tools to help you quickly identify and fix bugs discovered through your automated tests.

Video Recording

Every Cypress test run on BrowserStack is recorded exactly as it is executed on our remote machine. Video recordings are particularly helpful whenever a test fails as they help you retrace the steps which led to the failure. You can access the video recordings from Automate Dashboard for each session. You can also download the videos from the Dashboard.

Access video from Automate Dashboard: Access video from Automate Dashboard

Network Logs

Network Logs capture the browser’s performance data such as network traffic, latency, HTTP requests and responses in the HAR(HTTP Archive) format. You can leverage Network logs to get a clear picture of all the requests your web page is making, and the time taken for each of these requests. You can download network logs via the Automate Dashboard. You can visualize HAR files using the HAR Viewer.

Important: Install the latest version of BrowserStack Cypress CLI to use network logs: npm install -g browserstack-cypress-cli.

Network Logs are disabled by default. To enable Network Logs use the capability network_logs with the value true in browserstack.json.

Capability Description Expected values
network_logs Enable network logs A string or a boolean. Defaults to false

true or "true" if you want to enable the network logs. false or "false" otherwise.
browserstack.json
{
  ...
  "run_settings": {
    ...
    "network_logs": true/false/"true"/"false"
    ...
  }
}

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