TestRun

Upload blob data as an attachment to the given test case result in a given test run

Upload blob data (in the request body) as an attachment to the given test case in a test run, with the blob metadata specified in the query parameters

post/testrun/upload-attachment/{trId}/{tcId}

Request

Path parameters

trIdinteger required

The id of the Test Run

tcIdinteger required

The id of the Test Case in the specified run the attachment will be added to

Query parameters

titlestring required

The title for the attachment

filenamestring required

The file name for the attachment (must be a valid cross-platform file name without path)

mime_typestring

The mime type for the attachment - if not specified uses body content type

Request body application/octet-stream

string binary required

Response

Returns 'Blob'

idinteger

The unique entity id - must be a positive integer

titlestring

An optional descriptive title for the blob

is_deletedboolean

If the entity has been soft-deleted this value is true

project_idinteger

The project id this entity or mapping belongs to

created_atstring date-time

The creation time for this entity or mapping value

created_bynumber

The creator user id of this entity or mapping value - or zero if created by the system

modified_atstring date-time

The last modification time for this entity or mapping value

modified_bynumber

The id of the user who last modified or undeleted this entity or mapping value - or zero if modified by the system

deleted_atstring date-time

The soft-deletion time for this entity or mapping value

deleted_bynumber

The id of the user who deleted this entity or mapping value - or zero if deleted by the system

blob_idstring

A globally unique id for the blob

mime_typestring

The MIME type of the blob (e.g. image/jpeg)

filenamestring

The file name of the blob when it was uploaded. Should have an extension compatible with the 'mime_type'

sizenumber

The size in bytes of the final blob

external_keystring

An optional external key for identification

datastring

The base64 data of the blob when uploading - as an alternative to uploading the blob in a separate request (for small blobs)

Example response

{
  "created_at": "1970-01-01T00:00:00.000Z",
  "modified_at": "1970-01-01T00:00:00.000Z",
  "deleted_at": "1970-01-01T00:00:00.000Z",
  "external_key": "PROJ1_A123456",
  "data": "BASE64 BLOB DATA"
}

Changes

No recorded changes to this operation across all 1 revision of this API.