Skip to main content
View as Markdown

Test Results

List test results

GET/api/v1/test-results

Test results in the selected organization, visible to every member of it. The organization is chosen by the X-Organization-Id header, or the organization the API key is bound to, otherwise the caller's default organization.

Header parameters
X-Organization-Idstring
Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.
Returns
objectstringrequired
dataarrayrequired
Show child attributes
idstring · uuidrequired
namestringrequired
userAgentstringrequired
createdAtstring · date-timerequired

Create a test result

POST/api/v1/test-results

Called by the mobilewright reporter once a test run completes. Returns the created record including its id, which is used for subsequent asset uploads. The result is filed under the organization the API key is bound to, or the X-Organization-Id header, otherwise the caller's default organization.

Header parameters
X-Organization-Idstring
Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.
Body parameters
namestringrequired
Human-readable name for this test run
userAgentstringrequired
Reporter name and version
Returns
idstring · uuidrequired
namestringrequired
userAgentstringrequired
createdAtstring · date-timerequired

Get a test result

GET/api/v1/test-results/{testResultId}
Path parameters
testResultIdstring · uuidrequired
Test result UUID
Header parameters
X-Organization-Idstring
Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.
Returns
idstring · uuidrequired
namestringrequired
userAgentstringrequired
createdAtstring · date-timerequired

List assets for a test result

GET/api/v1/test-results/{testResultId}/assets

Returns all uploaded assets (e.g. trace.zip, screenshots.zip) for this test result.

Path parameters
testResultIdstring · uuidrequired
Test result UUID
Header parameters
X-Organization-Idstring
Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.
Returns
objectstringrequired
dataarrayrequired
Show child attributes
idstring · uuidrequired
namestringrequired
contentTypestringrequired
sizeintegerrequired
File size in bytes
createdAtstring · date-timerequired

Upload an asset

POST/api/v1/test-results/{testResultId}/assets

Uploads a binary asset attached to a test result. Use multipart/form-data with the file and its name. In future, a presignedUrl parameter may be added to return an S3 pre-signed URL instead of accepting the upload directly.

Path parameters
testResultIdstring · uuidrequired
Test result UUID
Header parameters
X-Organization-Idstring
Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.
Returns
idstring · uuidrequired
namestringrequired
contentTypestringrequired
sizeintegerrequired
File size in bytes
createdAtstring · date-timerequired

Download an asset

GET/api/v1/test-results/{testResultId}/assets/{assetId}

Streams the raw binary content of a specific asset.

Path parameters
testResultIdstring · uuidrequired
Test result UUID
assetIdstring · uuidrequired
Asset UUID
Header parameters
X-Organization-Idstring
Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.