Network Logs


Testsigma allows you to capture and analyse network traffic during test execution with its network log feature. Enabling the network log provides valuable insights into the interactions between your application and the server, helping you debug issues related to network requests and responses.

This documentation will guide you on how to enable the network log in Test Case and Test Plan, access, view the status, and download network logs in the ad-hoc run page and the run test case page.


Prerequisites

Before you begin, ensure that you have referred to:

  1. Documentation on creating projects.
  2. Documentation on creating test cases.
  3. Documentation on creating test plans.
  4. Documentation on creating Ad-Hoc runs.
  5. Documentation on creating test machines.
Note:

By default, Network Log is enabled for Web and Mobile Web applications, but for Android and iOS applications, you need to enable it manually.


Enable Network Logs in Test Case

  1. Click Run at the top-right corner of the Test Case details page. Run
  2. In the Ad-hoc Run overlay, select BrowserStack as Test Lab. BrowserStack
  3. Enable the Network Log toggle, and click Run Now to start test execution. Enable Network Log in Test Case

Enable Network Logs in Test Plan

  1. Navigate to the Add Test Suites & Link Machine Profiles tab on the Create or Edit Test Plan page. Edit Test Plan
  2. Click the Test Machine Settings icon, and the Add or Edit test machine/device profile overlay will appear. Test Machine Settings
  3. In the Add or Edit test machine/device profile overlay, select BrowserStack as Test Lab. BrowserStack
  4. Enable the Network Log toggle, and click Create/Update Profile. Network Logs

Network Log Management

After completing the test execution on the Run Test Case Page, you should follow these steps to access and analyse the captured network logs:

  1. Click the Show Logs button in the Run Results page. This opens the Logs page. Logs
  2. The Logs page provides a centralized view where you can access Appium, Device, and Network logs helping you monitor different parts of test execution in one place. Network
  3. Click Download log file at the top-right corner of the Logs screen to retrieve the network log file in HAR format. You can then analyse the network logs offline. Download log file