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 ​
Property | Type | Description | Default |
---|---|---|---|
url | string | HTTP endpoint URL | Required |
method | string | HTTP method (GET, POST, PUT, PATCH, DELETE) | "POST" |
headers | object | Additional 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"
]
}
]
}