Skip to main content

Add/remove/update mappings between 'TestRun' entities and other entities

POST 

/testrun/mapping/bulk/:otherEntities

Adds/Removes/Updates mappings between entities (e.g. test cases, test runs, etc.) if the mapping is defined. Id values are named by entity e.g. 'testcase_id', 'testrun_id' (see request schema)

Request

Path Parameters

    otherEntities stringrequired

    The name(s) of the other entities to map to, separated by colon ':'

Query Parameters

    op string

    Possible values: [add, update, add_or_update, delete]

Body

required

    oneOf

  • Array [

  • ids

    object

    An object of entity id keys for the member entities

    testcase_id integerrequired
    testrun_id integerrequired

    mapped

    object

    created_at date-time

    The creation time for this entity or mapping value

    Example: 1970-01-01T00:00:00.000Z
    created_by number

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

    Example: 0
    modified_at date-time

    The last modification time for this entity or mapping value

    Example: 1970-01-01T00:00:00.000Z
    modified_by number

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

    Example: 0
    deleted_at date-time

    The soft-deletion time for this entity or mapping value

    Example: 1970-01-01T00:00:00.000Z
    deleted_by number

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

    Example: 0
    testrun_id integer

    The associated test run id

    testcase_id integer

    The associated test case id

    testcase_source_query_id integer

    The id of the testcase source query if created from a test plan query

    Example: 0
    testcase_source_folder_id integer

    The id of the folder if created in a test plan from a folder

    Example: 0
    assigned_user_id integer

    The global user id of the user assigned to the associated test case in the associated test run if 'assigned_to' is 'USER'

    Example: 0
    assigned_to string

    The assignee of the associated test case in the associated test run - Can be USER,OWNER,ANY

    $assignee_name string

    The resolved display name of the test case assignee - readonly

    result_status string

    The result status of the associated test case in the associated test run - allowed values are: NOTRUN,PASSED,FAILED,BLOCKED,SKIPPED

    result_per_step string

    Result per step as json

    Example: [ { "rid": "fhuz", "idx": 1, "res": "PASSED" } ]
    result_at date-time

    The last modification time for the result status

    Example: 1970-01-01T00:00:00.000Z
    result_by number

    The id of the user who last changed the result status - or zero if modified by the system

    Example: 0
    $comment_count number

    The number of comments associated with this testcase/testrun - readonly

    $workitem_count number

    The number of work items associated with this testcase/testrun - readonly

  • ]

Responses

The request failed because invalid request parameters or data were supplied or access was denied.

Schema

    code string

    The error code describing the general error category.

    Example: API_INVALID_INPUT_DATA
    status integer

    The HTTP status code.

    message stringrequired

    The actual error message describing the error in more detail.

    reqid string

    The request id for following up on specific errors.

Loading...