Skip to content

HTTP Target Reference ​

Send test results to custom HTTP endpoints with automatic retry capabilities.

Configuration ​

json
{
  "name": "http",
  "condition": "fail",
  "inputs": {
    "url": "https://api.example.com/test-results",
    "method": "POST",
    "headers": {
      "Authorization": "Bearer your-api-key"
    }
  }
}

Properties ​

PropertyTypeDescriptionDefault
urlstringHTTP endpoint URLRequired
methodstringHTTP method (GET, POST, PUT, PATCH, DELETE)"POST"
headersobjectAdditional HTTP headers{}

Default headers: Content-Type: application/json

Examples ​

json
{
  "targets": [
    {
      "name": "http",
      "condition": "fail",
      "inputs": {
        "url": "https://api.example.com/test-results",
        "headers": { "Authorization": "Bearer your-api-key" }
      }
    }
  ],
  "results": [
    {
      "type": "testng",
      "files": [
        "path/to/testng-results.xml"
      ]
    }
  ]
}

Released under the MIT License.