API Documentation

Test Result Resource

Search our documentation:

Toggle Documentation Menu

API: Test Result Resource

Jump to...
  • Get - Fetch a single test result


Get Test Result

Fetch a single test result

Request
GET https://api.ghostinspector.com/v1/results/<resultId>/?apiKey=<apiKey>
Parameters
apiKey
Your API key provided in your account
resultId
The ID of the test result to fetch
Response
{
  "code": "SUCCESS",
  "data": {
    "_id": "5967f147bfebc5ba07c5b0f3",
    "uuid": "8085ac60-6578-4401-93bc-627efc51b10b",
    "test": {
      "_id": "5967e75abfebc5ba07c5b0e7",
      "suite": "5967e6e7bfebc5ba07c5b0e3",
      "organization": "547fb82d92423992d52a4fea",
      "name": "Test #2"
    },
    "suiteResult": "5967f147bfebc5ba07c5b0f1",
    "name": "Test #2",
    "browser": "slimerjs-52",
    "globalStepDelay": 250,
    "maxWaitDelay": 15000,
    "maxAjaxDelay": 10000,
    "finalDelay": 5000,
    "autoRetry": true,
    "failOnJavaScriptError": false,
    "screenshotCompareEnabled": true,
    "screenshotCompareThreshold": 0.1,
    "startUrl": "http://ghostinspector.com/docs/",
    "region": "us-east-1",
    "dateExecutionStarted": "2017-07-13T22:16:48.066Z",
    "executionHost": "prod012.ghostinspector.net",
    "dateExecutionFinished": "2017-07-13T22:17:00.081Z",
    "endUrl": "https://ghostinspector.com/docs/?q=frames",
    "executionTime": 12015,
    "extractions": {
      "pageTitle": "Documentation - Ghost Inspector"
    },
    "screenshot": {
      "small": {
        "path": "/screenshots/8085ac60-6578-4401-93bc-627efc51b10b-small.png",
        "defaultUrl": "https://ghostinspector-prod.s3.amazonaws.com/screenshots/8085ac60-6578-4401-93bc-627efc51b10b-small.png",
        "dims": {
          "w": 320,
          "h": 698
        },
        "size": 92210
      },
      "original": {
        "path": "/screenshots/8085ac60-6578-4401-93bc-627efc51b10b-original.png",
        "defaultUrl": "https://ghostinspector-prod.s3.amazonaws.com/screenshots/8085ac60-6578-4401-93bc-627efc51b10b-original.png",
        "dims": {
          "w": 1024,
          "h": 2232
        },
        "size": 237259
      }
    },
    "screenshotCompareBaselineResult": "5967ee29d078e8ba058b2458",
    "dateCreated": "2017-07-13T22:16:39.711Z",
    "video": {
      "path": "/videos/8085ac60-6578-4401-93bc-627efc51b10b.mp4",
      "url": "https://ghostinspector-prod.s3.amazonaws.com/videos/8085ac60-6578-4401-93bc-627efc51b10b.mp4",
      "dims": {
        "w": 1024,
        "h": 768
      }
    },
    "screenshotCompareDifference": 0.001,
    "screenshotComparePassing": true,
    "passing": true,
    "console": [
      {
        "output": "Sample console error...",
        "error": false,
        "url": "https://ghostinspector.com/docs/?q=frames",
        "dateExecuted": "2017-07-13T22:16:52.665Z"
      }
    ],
    "urls": [
      "http://ghostinspector.com/docs/",
      "https://ghostinspector.com/docs/?q=frames"
    ],
    "filters": [],
    "steps": [
      {
        "command": "assign",
        "target": ".header-search-input",
        "value": "frames",
        "variableName": "",
        "url": "https://ghostinspector.com/docs/",
        "dateExecuted": "2017-07-13T22:16:51.385Z",
        "passing": true,
        "optional": false,
        "private": false,
        "sequence": 0
      },
      {
        "command": "click",
        "target": ".header-search-button",
        "value": "",
        "variableName": "",
        "url": "https://ghostinspector.com/docs/",
        "dateExecuted": "2017-07-13T22:16:52.185Z",
        "passing": true,
        "optional": false,
        "private": false,
        "sequence": 1
      },
      {
        "command": "assertTextPresent",
        "target": ".content .search-input",
        "value": "frames",
        "variableName": "",
        "url": "https://ghostinspector.com/docs/?q=frames",
        "dateExecuted": "2017-07-13T22:16:54.028Z",
        "passing": true,
        "optional": false,
        "private": false,
        "sequence": 2
      },
      {
        "command": "extract",
        "target": "title",
        "value": "",
        "variableName": "pageTitle",
        "url": "https://ghostinspector.com/docs/?q=frames",
        "extracted": "Documentation - Ghost Inspector",
        "dateExecuted": "2017-07-13T22:16:54.503Z",
        "passing": true,
        "optional": false,
        "private": false,
        "sequence": 3
      }
    ],
    "viewportSize": {
      "height": 768,
      "width": 1024
    },
    "user": {
      "_id": "52df0d27fbaced54db000006",
      "name": "Sample User"
    }
  }
}