Enable Browser Console Debug Logs


Browser Console Debug logs can help you more effectively identify and troubleshoot issues in your web application tests. In Testsigma, enabling Browser Console - Extended Debugging can help you capture and view these logs during test execution. This documentation will guide you on how to use Browser Console Debug Logs in Testsigma.


Prerequisites

Before you begin, grasp the basics of creating Test Cases and Test Plans and performing Ad-hoc Runs and Test Machines.


Desired Capabilities for Console Logs

Pass the desired capabilities below for their respective test lab types.

Test Lab Type Capability - Key Data Type Value
  • Testsigma Lab
  • Sauce Lab
  • extendedDebugging Boolean True
    BrowserStack Lab browserstack.console String warnings

    Enable Console Log in Ad-hoc Runs

    To enable Browser Console - Extended Debugging for a specific test case in Testsigma, follow these steps:

    1. Create a Test Case with a list of the test steps and then click Run in the top right of the screen to initiate an Ad-hoc Run overlay.
    2. Select Test Lab and Test Machines. Click on Desired Capabilities (Optional).
    3. Enter the Desired Capabilities Key, Data Type, and Value above the selected Test Lab Type, and provide the Desired Capabilities for the Lab. Then, click on Run Now. Console for Ad-hoc run

    Enable Console Log in Test Plan

    Follow these steps to enable Browser Console - Extended Debugging for a specific Test Plan in Testsigma:

    1. Navigate to the Add Test Suites & Link Machine Profiles tab on the page for Create or Edit Test Plan.
    2. Click on Test Machine Settings for the test machine. An overlay screen for Editing the test machine/device profile will appear.
    3. Select Test Lab and Test Machines. Click on Desired Capabilities (Optional).
    4. Enter the Desired Capabilities Key, Data Type, and Value above the selected Test Lab Type, and provide the Desired Capabilities for the Lab. Then, click on Update Profile. Console for Test Plan

    View Console Logs on Result Page

    After enabling Browser Console - Extended Debugging and running a test case or test plan, follow these steps to check the captured Browser Console Debug Logs:

    1. Click the Show Logs button on the test execution results page and look for a section dedicated to the Console Logs under the Logs tab.
    2. Click the Download log file in the top right corner of the screen to analyse the Browser Console logs offline if needed. View Console Logs