How do I store NetGauge results using Javascript?

You must enable local storage via Javascript by editing your configuration file.

Open the settings.xml file in a text editor.

Look for the line that begins with

<reporting

change jsreporting to 3

The line in the configuration should look like:

<reporting jsreporting="3" />

With the reporting setting now in place, as soon as the test completes, NetGauge will call the JavaScript function "test_completed" and pass an array containing the test results. This array contains the following key value pairs:

clientip

customer

download

firewall

hash

jitter

latency

methodid

packetloss

serverid

serverport

testmethod

upload

Each value can be referenced using its key name. For example, the following function will simply alert the download speed: