Similar to Time Watcher, Network Watcher allows measuring the load time of network elements during the execution of a certain range of steps within a monitoring script, grouped by type (set a mask, like *.png, *.js, etc.).

Using Network Watcher, you can measure the load time of various network elements during the execution of monitoring scripts, for example:

  • Load Time of Images (e.g., *.png, *.jpg) on your webpage;
  • Load Time of JavaScript Files  (*.js) used in your web application;
  • Load Time of CSS Files (*.css);
  • Font Load Time (*.woff, *.woff2);
  • AJAX Requests Execution Time;
  • Tracking API Calls (*.json, *.xml) made by your web application to external services.

To enable Network Watcher:

  1. Right-click the line (step), after which Network Watcher should start measures.
  2. Select Measure Time > Network > Start.
  3. Optional 1: Specify the watcher parameters on the editing pane, located to the left of the script code area.
  4. Optional 2: To collect, process, and aggregate Network Watcher results as a custom metric, ensure that you enable the Custom Metric option in the Network Watcher settings.
  5. Please visit the Custom Metrics in Web App Performance Testing article of our wiki to find more details on the custom metric analysis.
  6. Select a type to define how to apply threshold value:
    • Sum – apply the threshold to the sum of load times of all requests.
    • Average – apply the threshold to the arithmetic average of all requests.
    • Each – apply the threshold to each request.
  7. Right-click the line, after which the measurement must be stopped, select Measure Time > Network > Stop, and choose the name of the watcher to close.

Let’s assume we have an online store that relies on CDN where some of the portal images are placed. We want to measure if this particular CDN satisfies our claims regarding the speed of load.

All we need is to add Network Watcher configured to measure the load time of images for this CDN.

Image URLs have the next format:

http://1ba0.cdndomain.com/abc/1234567/image_1.png
http://f4d4.cdndomain.net/kh3/1234567/image_2.png

In this case URL mask for Watcher has to be:

*.cdndomain.*.png

Monitoring Solution: Task Consumption 

When the Custom Metric option is enabled, the custom metric check is counted as an additional step in the monitoring script and impacts overall UserView task consumption. Depending on your subscription package, upgrading to the next tier may be required to use the Custom Metric option in your monitoring scripts.