Skip to main content

Network Logs

warning

Network logs are currently available on WebOS and Tizen only. Additional platform support will be rolled out incrementally.

Overview

Network logs detailing HTTP / HTTPS traffic are available for Appium sessions after the session has ended. They are securely stored and can be accessed by members of your organization via the TV Labs sessions dashboard.

Enabling network logging

Network logging is enabled by setting the tvlabs:log_network capability to true in the Appium session capabilities.

{
"tvlabs:constraints": {
"platform_key": "web_os"
},
"tvlabs:build": "...",
"tvlabs:log_network": true
}

The session will run as normal, but during the session the network traffic will be recorded. At the end of the session, the network events are dumped to an HTTP archive (HAR) file, which is stored and available for download from the TV Labs sessions dashboard.

Viewing network logs

To download the HAR file for a session where network logging was enabled, navigate to the session in the TV Labs sessions dashboard. Scroll down and find the "Network Logs" section, and select the HTTP archives you wish to download.

Download network logs

note

Network logs may take a few moments to be available for download after the session ends.

There are many online tools available to view HAR files, but the easiest way is to import them into the Chrome DevTools. Open the DevTools within Chrome, select the "Network" tab, and look for the "Import HAR" button

Network logs in Chrome DevTools