Webhooks

Search our documentation:

Toggle Documentation Menu

Jump to...
  • Test Webhook - The payload sent to any specified test webhook via POST


Test Webhooks

The payload sent to any specified test webhook via POST

Sample Payload
{
  "type": "result",
  "data": {
    "_id": "5967f2e3bfebc5ba07c5b0f4",
    "uuid": "69897062-ebf1-4081-acfb-12fb0049bf78",
    "test": {
      "_id": "5967e75abfebc5ba07c5b0e7",
      "name": "Test #2",
      "suite": "5967e6e7bfebc5ba07c5b0e3",
      "organization": "547fb82d92423992d52a4fea"
    },
    "suiteResult": null,
    "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:23:34.076Z",
    "executionHost": "prod012.ghostinspector.net",
    "dateExecutionFinished": "2017-07-13T22:23:45.252Z",
    "endUrl": "https://ghostinspector.com/docs/?q=frames",
    "executionTime": 11176,
    "extractions": {
      "pageTitle": "Documentation - Ghost Inspector"
    },
    "screenshot": {
      "small": {
        "path": "/screenshots/69897062-ebf1-4081-acfb-12fb0049bf78-small.png",
        "defaultUrl": "https://ghostinspector-prod.s3.amazonaws.com/screenshots/69897062-ebf1-4081-acfb-12fb0049bf78-small.png",
        "dims": {
          "w": 320,
          "h": 698
        },
        "size": 92211
      },
      "original": {
        "path": "/screenshots/69897062-ebf1-4081-acfb-12fb0049bf78-original.png",
        "defaultUrl": "https://ghostinspector-prod.s3.amazonaws.com/screenshots/69897062-ebf1-4081-acfb-12fb0049bf78-original.png",
        "dims": {
          "w": 1024,
          "h": 2232
        },
        "size": 237263
      }
    },
    "screenshotCompareBaselineResult": "5967f147bfebc5ba07c5b0f3",
    "dateCreated": "2017-07-13T22:23:31.747Z",
    "video": {
      "path": "/videos/69897062-ebf1-4081-acfb-12fb0049bf78.mp4",
      "url": "https://ghostinspector-prod.s3.amazonaws.com/videos/69897062-ebf1-4081-acfb-12fb0049bf78.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:23:38.238Z"
      }
    ],
    "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:23:37.408Z",
        "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:23:37.927Z",
        "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:23:39.169Z",
        "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:23:39.587Z",
        "passing": true,
        "optional": false,
        "private": false,
        "sequence": 3
      }
    ],
    "viewportSize": {
      "height": 768,
      "width": 1024
    },
    "user": {
      "_id": "52df0d27fbaced54db000006",
      "name": "Sample User"
    },
    "organization": {
      "_id": "547fb82d92423992d52a4fea",
      "name": "Sample Organization"
    },
    "suite": {
      "_id": "5967e6e7bfebc5ba07c5b0e3",
      "name": "API Samples"
    }
  }
}