Network Logs
Network logs include information about requests between the web browser and the site being tested. DevAssure provides powerful features for capturing and displaying network logs during test execution. By enabling network log tracing with specifing settings, you can gain insights into your application's network interactions.
Enabling Network Log Tracing:
-
Access the Project Preferences section in the side navigation within DevAssure.
-
Under the Web App settings , enable the "Trace Network Logs" option.
-
Trace Domains:
- Input the domains of your application to avoid tracking unwanted network logs.
- If left empty, all domains will be traced.
-
Request Types (Supported):
Currently, DevAssure traces network logs for the following request types:
- FETCH: For modern web API requests.
- XHR: For traditional XMLHttpRequest requests.
- WEBSOCKET: For WebSocket connections.
Other request types (e.g., document, javascript, css) are excluded to avoid memory overload.

Capturing Network Logs During Test Execution:
DevAssure provides a comprehensive set of test actions for interacting with network logs, allowing you to fetch and verify network interactions within your application.

Action | Description |
---|---|
Get Last Network Log Matching (http_method) (url)) | Retrieves the most recent network log that matches the specified HTTP method and URL. |
Get last n network logs (n) matching (http_method) (url)) | Retrieves the last n network logs that match the specified HTTP method and URL. |
Get all network logs | Fetches all network logs recorded during the test execution. |
Get last n network logs (n) | Retrieves the last n network logs that match the specified HTTP method and URL. |
Verify last network log status (comparator)(status) | Verifies if the text content of the HTTP response matches the expected text.. |
Print all network logs | Prints all network logs in the console for debugging purposes. |
Print network logs (logs) | Prints the specified network logs to the console. |
Get network log method (log)) | Retrieves the HTTP method (e.g., GET, POST) from the specified network log. |
Get network log status (log) | Retrieves the status code from the specified network log. |
Get network log URL (log) | RRetrieves the URL of the request from the specified network log. |
Get network log request headers (log) | Retrieves the request headers from the specified network log. |
Get network log response headers (log) | Retrieves the response headers from the specified network log. |
Get network log response body (log) | Retrieves the response body from the specified network log |
Get network log request payload (log) | Retrieves the payload sent in the request from the specified network log. |