Appendix A. API Input/Output Reference Guide

Examples of Test Results

The following are the verbose output of examples used in Chapter 9.

When Test Is Not Complete

When requesting test results on an unfinished/unstarted test, you may get a partial response:

{
  "data": {
    "statusCode": 100,
    "statusText": "Test Started 4 seconds ago",
    "id": "150109_DE_ZW7",
    "testInfo": {
      "url": "http://www.example.com",
      "runs": 1,
      "fvonly": 0,
      "web10": 0,
      "ignoreSSL": 0,
      "label": "",
      "priority": 5,
      "location": "Dulles:Chrome",
      "browser": "Chrome",
      "connectivity": "Cable",
      "bwIn": 5000,
      "bwOut": 1000,
      "latency": 28,
      "plr": "0",
      "tcpdump": 0,
      "timeline": 0,
      "trace": 0,
      "bodies": 0,
      "netlog": 0,
      "standards": 0,
      "noscript": 0,
      "pngss": 0,
      "iq": 0,
      "keepua": 0,
      "mobile": 0,
      "scripted": 0
    },
    "testId": "150109_DE_ZW7",
    "runs": 1,
    "fvonly": 0,
    "remote": false,
    "testsExpected": 1,
    "location": "Dulles:Chrome",
    "startTime": "01/09/15 17:51:16",
    "elapsed": 4,
    "fvRunsCompleted": 0,
    "rvRunsCompleted": 0,
    "testsCompleted": 0
  },
  "statusCode": 100,
  "statusText": "Test Started 4 seconds ago"
}

When Test Is Complete

The following is the complete test results used in the Chapter 9 examples. Some repetitive data is replaced by detailed comments for code readability:

Warning

Test result properties may change upon new releases of WebPageTest. Metrics may be added, removed, renamed, or moved. Check WebPageTest releases for more details.

{
  "data": {
    "id": "150109_DE_ZW7",
    "url": "http://www.example.com",
    "summary":

Get Using WebPageTest now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.