Test Reports
Repository identifier (org/repo)
Maximum number of results
10List of test results
No content
Forbidden - Requires role: member, owner, application
GET /sfp/api/testreports/apex-tests/results?repository=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Environment name
Repository identifier (org/repo)
Timestamp in ISO 8601 format
Total duration in seconds
Test execution time in seconds
Command overhead time in seconds
Test result stored successfully
No content
Invalid request body
Forbidden - Requires role: owner, application
POST /sfp/api/testreports/apex-tests/results HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 825
{
"environment": "text",
"repositoryIdentifier": "text",
"timestamp": "text",
"duration": 1,
"testExecutionTime": 1,
"commandTime": 1,
"summary": {
"totalTests": 1,
"passed": 1,
"failed": 1,
"skipped": 1,
"passingRate": 1,
"outcome": "Passed",
"overallCoverage": {},
"coveredLines": {},
"totalLines": {}
},
"testCases": [
{
"id": "text",
"name": "text",
"className": "text",
"methodName": "text",
"time": 1,
"status": "passed",
"failureMessage": "text",
"stackTrace": "text"
}
],
"metadata": {
"testRunId": "text",
"username": "text",
"testLevel": "RunLocalTests",
"scheduledRun": true
},
"coverage": {
"overallCoverage": 1,
"totalLines": 1,
"coveredLines": 1,
"classes": [
{
"name": "text",
"id": "text",
"coverage": 1,
"totalLines": 1,
"coveredLines": 1,
"status": "pass"
}
],
"uncoveredClasses": [
"text"
],
"belowThreshold": [
{
"name": "text",
"id": "text",
"coverage": 1,
"totalLines": 1,
"coveredLines": 1,
"status": "pass"
}
]
}
}No content
Environment name
Repository identifier (org/repo)
Latest test result for the environment
No content
Forbidden - Requires role: member, owner, application
No results found for environment
GET /sfp/api/testreports/apex-tests/results/{environmentName}?repository=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Environment name
Repository identifier (org/repo)
Maximum number of results
10Test result history for the environment
No content
Forbidden - Requires role: member, owner, application
GET /sfp/api/testreports/apex-tests/results/{environmentName}/history?repository=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Repository identifier (org/repo)
Dashboard summary with all environments
No content
Forbidden - Requires role: member, owner, application
GET /sfp/api/testreports/apex-tests/dashboard/summary?repository=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Environment name
Repository identifier (org/repo)
Detailed environment dashboard
No content
Forbidden - Requires role: member, owner, application
No results found for environment
GET /sfp/api/testreports/apex-tests/dashboard/{environmentName}?repository=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?