Test Reports

Get all apex test results for a repository

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
repositorystringRequired

Repository identifier (org/repo)

limitstringOptional

Maximum number of results

Example: 10
Responses
chevron-right
200

List of test results

No content

get
/sfp/api/testreports/apex-tests/results

No content

Store a new apex test result

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
environmentstringRequired

Environment name

repositoryIdentifierstringRequired

Repository identifier (org/repo)

timestampstringRequired

Timestamp in ISO 8601 format

durationnumberRequired

Total duration in seconds

testExecutionTimenumberRequired

Test execution time in seconds

commandTimenumberRequired

Command overhead time in seconds

Responses
post
/sfp/api/testreports/apex-tests/results

No content

Get latest apex test result for an environment

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
environmentNamestringRequired

Environment name

Query parameters
repositorystringRequired

Repository identifier (org/repo)

Responses
chevron-right
200

Latest test result for the environment

No content

get
/sfp/api/testreports/apex-tests/results/{environmentName}

No content

Get apex test result history for an environment

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
environmentNamestringRequired

Environment name

Query parameters
repositorystringRequired

Repository identifier (org/repo)

limitstringOptional

Maximum number of results

Example: 10
Responses
chevron-right
200

Test result history for the environment

No content

get
/sfp/api/testreports/apex-tests/results/{environmentName}/history

No content

Get dashboard summary for all environments in a repository

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
repositorystringRequired

Repository identifier (org/repo)

Responses
chevron-right
200

Dashboard summary with all environments

No content

get
/sfp/api/testreports/apex-tests/dashboard/summary

No content

Get detailed dashboard for a single environment

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
environmentNamestringRequired

Environment name

Query parameters
repositorystringRequired

Repository identifier (org/repo)

Responses
chevron-right
200

Detailed environment dashboard

No content

get
/sfp/api/testreports/apex-tests/dashboard/{environmentName}

No content

Last updated