Skip to main content

Import automation results

POST 

/automation

Import automated test results, automatically creating sources, test cases, test runs and test results

Request

Body

required

    projectId numberrequired

    Project id to import into

    source stringrequired

    Automation source name (e.g. myproject-unit)

    runGroupBy string[]

    results

    object[]

    required

    List of results to import

    Possible values: <= 10000

  • Array [

  • ts integer

    Optional timestamp in epoch-milliseconds. Current time if omitted

    title string

    Test case title - required if test case key is not present

    key string

    Test case key, a short unique identifier - required if test case title is not present

    path string[]

    Optional list of folder/suite paths for test case organization and identification

    Possible values: <= 1000 characters

    duration number

    Optional duration in seconds

    status stringrequired

    The result status from the list of allowed values

    Possible values: [passed, passed_warn, failed, blocked, skipped]

    error string

    A short error message if an error occurred

    detailMessage string

    A detailed message or error stack trace if an error occurred

    errorLocation

    object

    Metadata about the error location e.g. file,line,steps etc.

    file string

    The source file name where the error occurred, should be relative to repository root

    line integer

    Source line, starts with 1

    column integer

    Source column, starts with 1

    step string

    The name or id of the test step where the error occurred

    attachments

    object[]

    Possible values: <= 20

  • Array [

  • refId stringrequired

    Possible values: <= 1000 characters

    file stringrequired

    Possible values: <= 1000 characters

    type stringrequired

    Possible values: <= 80 characters

    title string
  • ]

  • fields

    object[]

    required

    Automation field values

  • Array [

  • oneOf

    string

  • ]

  • steps

    object[]

  • Array [

  • id string
    title stringrequired

    Possible values: <= 1000 characters

  • ]

  • ]

  • fieldNames string[]required

    Automation field names

    runTitlePattern string
    noFieldCreate boolean

    Do not ad-hoc create fields if they don't exist

    noSourceCreate boolean

    Do not ad-hoc create sources if they don't exist

    useServerTime boolean

    All ingested results are timestamped with current server time

Responses

Returns 'AutomationSubmitResult'

Schema

    preparedAttachments

    object[]

    A list of prepared attachments - use blobId to upload content from files

  • Array [

  • blobId numberrequired

    The entity id of the Blob for uploading data

    refId stringrequired

    User-defined value passed on import as refId for this attachment

    file stringrequired

    The file name/path for this attachment

    title string

    An optional title for the attachment (for reference)

  • ]

  • automationRunIds integer[]required

    A list of test run ids which were created or updated from the imported test results

    skippedResultIndices integer[]required

    A list of result indices from the import batch which where skipped because of completed or closed test runs

Loading...