Import automation results
POST/automation
Import automated test results, automatically creating sources, test cases, test runs and test results
Request
- application/json
Body
required
Array [
Array [
]
Array [
- MOD1
- MOD2
- MOD3
]
Array [
]
]
Project id to import into
Automation source name (e.g. myproject-unit)
results
object[]
required
List of results to import
Possible values: <= 10000
Optional timestamp in epoch-milliseconds. Current time if omitted
Test case title - required if test case key is not present
Test case key, a short unique identifier - required if test case title is not present
Optional list of folder/suite paths for test case organization and identification
Possible values: <= 1000 characters
Optional duration in seconds
The result status from the list of allowed values
Possible values: [passed
, passed_warn
, failed
, blocked
, skipped
]
A short error message if an error occurred
A detailed message or error stack trace if an error occurred
errorLocation
object
Metadata about the error location e.g. file,line,steps etc.
The source file name where the error occurred, should be relative to repository root
Source line, starts with 1
Source column, starts with 1
The name or id of the test step where the error occurred
attachments
object[]
Possible values: <= 20
Possible values: <= 1000 characters
Possible values: <= 1000 characters
Possible values: <= 80 characters
fields
object[]
required
Automation field values
oneOf
string
number
boolean
steps
object[]
Possible values: <= 1000 characters
Automation field names
Do not ad-hoc create fields if they don't exist
Do not ad-hoc create sources if they don't exist
All ingested results are timestamped with current server time
Responses
- 200
- 4XX
- 5XX
Returns 'AutomationSubmitResult'
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
preparedAttachments
object[]
A list of prepared attachments - use blobId to upload content from files
The entity id of the Blob for uploading data
User-defined value passed on import as refId for this attachment
The file name/path for this attachment
An optional title for the attachment (for reference)
A list of test run ids which were created or updated from the imported test results
A list of result indices from the import batch which where skipped because of completed or closed test runs
{
"preparedAttachments": [
{
"blobId": 0,
"refId": "string",
"file": "string",
"title": "string"
}
],
"automationRunIds": [
0
],
"skippedResultIndices": [
0
]
}
The request failed because invalid request parameters or data were supplied or access was denied.
- application/json
- Schema
- Example (from schema)
Schema
The error code describing the general error category.
API_INVALID_INPUT_DATA
The HTTP status code.
The actual error message describing the error in more detail.
The request id for following up on specific errors.
{
"code": "API_INVALID_INPUT_DATA",
"status": 0,
"message": "string",
"reqid": "string"
}
The request failed because an error occurred during processing of the request.
- application/json
- Schema
- Example (from schema)
Schema
The error code describing the general error category.
API_INVALID_INPUT_DATA
The HTTP status code.
The actual error message describing the error in more detail.
The request id for following up on specific errors.
{
"code": "API_INVALID_INPUT_DATA",
"status": 0,
"message": "string",
"reqid": "string"
}